Skip to content

Commit

Permalink
Merge branch 'release/v0.10.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaskoch committed Feb 11, 2017
2 parents d347cb0 + 410207d commit a02d415
Show file tree
Hide file tree
Showing 784 changed files with 155,863 additions and 1,135 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
language: go
go: 1.5
go: tip
install: make install
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ RUN apt-get update && apt-get install -qy pandoc

# Build
ADD . /go
RUN go run make.go -crosscompile
RUN go run make.go -install
RUN make install
RUN make crosscompile

# Data
RUN mkdir /data
Expand Down
18 changes: 11 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# The normal way to build allmark is just "go run make.go", which
# works everywhere, even on systems without Make.
build:
go build -o bin/files/allmark ./cli

install:
go run make.go -install
go build -o bin/files/allmark ./cli

test:
go test ./cli ./common/... ./dataaccess/... ./model/... ./services/... ./web/...

go run make.go -test

fmt:
go run make.go -fmt
crosscompile:
GOOS=linux GOARCH=amd64 go build -o bin/files/allmark_linux_amd64 ./cli
GOOS=linux GOARCH=arm GOARM=5 go build -o bin/files/allmark_linux_arm_5 ./cli
GOOS=linux GOARCH=arm GOARM=6 go build -o bin/files/allmark_linux_arm_6 ./cli
GOOS=linux GOARCH=arm GOARM=7 go build -o bin/files/allmark_linux_arm_7 ./cli
GOOS=darwin GOARCH=amd64 go build -o bin/files/allmark_darwin_amd64 ./cli
GOOS=windows GOARCH=amd64 go build -o bin/files/allmark_windows_amd64 ./cli
26 changes: 9 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,38 +128,32 @@ In hac habitasse platea dictumst. Nulla vestibulum lacinia tincidunt.

## Download / Installation

You can download the **latest binaries** of allmark for your operating system from [allmark.io/bin](HTTPS://allmark.io/bin)
You can download the **latest binaries** of allmark for your operating system from [allmark.io/bin](https://allmark.io/bin)

**Linux (amd64)**
**Linux**

```bash
sudo curl https://allmark.io/bin/linux/amd64/allmark -o /usr/local/bin/allmark
chmod +x /usr/local/bin/allmark
```

**Linux (arm)**

```bash
sudo curl https://allmark.io/bin/linux/arm/allmark -o /usr/local/bin/allmark
sudo su
curl -s --insecure https://allmark.io/bin/allmark > /usr/local/bin/allmark
chmod +x /usr/local/bin/allmark
```

**Mac OS**

```bash
sudo curl "HTTPS://allmark.io/bin/darwin_amd64/allmark" -o "/usr/local/bin/allmark"
sudo curl "https://allmark.io/bin/darwin_amd64/allmark" -o "/usr/local/bin/allmark"
sudo chmod +x /usr/local/bin/allmark
```

**Windows**

```powershell
Invoke-WebRequest HTTPS://allmark.io/bin/windows_amd64/allmark.exe -OutFile allmark.exe
Invoke-WebRequest https://allmark.io/bin/windows_amd64/allmark.exe -OutFile allmark.exe
```

All binaries at [allmark.io](HTTPS://allmark.io) are up-to-date builds of the **master**-branch.
All binaries at [allmark.io](https://allmark.io) are up-to-date builds of the **master**-branch.

If you want to download and install binaries from the **develop**-branch you can go to [develop.allmark.io/bin](HTTPS://develop.allmark.io).
If you want to download and install binaries from the **develop**-branch you can go to [develop.allmark.io/bin](https://develop.allmark.io).

## Features

Expand All @@ -182,9 +176,7 @@ If you want to see **allmark in action** you can visit my blog [AndyK Docs](http

## Build

[![Build Status](HTTPS://travis-ci.org/andreaskoch/allmark.png)](HTTPS://travis-ci.org/andreaskoch/allmark)

There is also an automated docker build at [registry.hub.docker.com/u/andreaskoch/allmark/](HTTPS://registry.hub.docker.com/u/andreaskoch/allmark/) which builds the develop and master branch every time a commit is pushed.
[![Build Status](https://travis-ci.org/andreaskoch/allmark.png)](https://travis-ci.org/andreaskoch/allmark)

Or you can build allmark yourself if you have [go installed](http://golang.org/doc/install) (see: [documentation/development/build](documentation/development/build)).

Expand Down
16 changes: 16 additions & 0 deletions bin/download.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,25 @@

Here you can download the latest binaries for your platform

## Linux

- [allmark (Linux, 64bit)](files/allmark_linux_amd64)
- [allmark (Linux, ARM5)](files/allmark_linux_arm_5)
- [allmark (Linux, ARM6)](files/allmark_linux_arm_6)
- [allmark (Linux, ARM7)](files/allmark_linux_arm_7)

## Windows

- [allmark (Windows, 64bit)](files/allmark_windows_amd64)

## macOS

- [allmark (Darwin, 64bit)](files/allmark_darwin_amd64)

---

created at: 2015-08-03
modified at: 2016-12-18
tags: Download, Windows, Linux, Mac
alias: bin, download, binaries
author: Andreas Koch
28 changes: 15 additions & 13 deletions src/allmark.io/cmd/allmark/allmark.go → cli/allmark.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
package main

import (
"allmark.io/modules/common/buildinfo"
"allmark.io/modules/common/config"
"allmark.io/modules/common/logger/console"
"allmark.io/modules/common/logger/loglevel"
"allmark.io/modules/common/shutdown"
"allmark.io/modules/common/util/fsutil"
"allmark.io/modules/dataaccess/filesystem"
"allmark.io/modules/services/initialization"
"allmark.io/modules/services/parser"
"allmark.io/modules/services/thumbnail"
"allmark.io/modules/web/server"
"fmt"

"github.com/andreaskoch/allmark/common/config"
"github.com/andreaskoch/allmark/common/logger/console"
"github.com/andreaskoch/allmark/common/logger/loglevel"
"github.com/andreaskoch/allmark/common/shutdown"
"github.com/andreaskoch/allmark/common/util/fsutil"
"github.com/andreaskoch/allmark/dataaccess/filesystem"
"github.com/andreaskoch/allmark/services/initialization"
"github.com/andreaskoch/allmark/services/parser"
"github.com/andreaskoch/allmark/services/thumbnail"
"github.com/andreaskoch/allmark/web/server"
// "github.com/davecheney/profile"
"flag"
"os"
Expand All @@ -37,6 +37,8 @@ const (
CommandNameVersion = "version"
)

var version = "v0.10.0-dev"

var (
serveFlags = flag.NewFlagSet("serve-flags", flag.ContinueOnError)
secure = serveFlags.Bool("secure", false, "Use HTTPs only")
Expand Down Expand Up @@ -141,7 +143,7 @@ func parseCommandLineArguments(args []string, commandHandler func(commandName, r
func printUsageInformation(args []string) {
executeableName := args[0]

fmt.Fprintf(os.Stderr, "%s - %s (Version: %s)\n", executeableName, "The standalone markdown webserver", buildinfo.Version())
fmt.Fprintf(os.Stderr, "%s - %s (Version: %s)\n", executeableName, "The standalone markdown webserver", version)
fmt.Fprintf(os.Stderr, "\nUsage:\n%s %s %s\n", executeableName, "<command>", "<repository path>")
fmt.Fprintf(os.Stderr, "\nAvailable commands:\n")
fmt.Fprintf(os.Stderr, " %7s %s\n", CommandNameInit, "Initialize the configuration")
Expand Down Expand Up @@ -239,7 +241,7 @@ func initialize(repositoryPath string) bool {
}

func printVersionInformation() {
fmt.Println(buildinfo.Version())
fmt.Println(version)
}

func isCommandlineFlag(argument string) bool {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import (
"os/exec"
"path/filepath"

"allmark.io/modules/common/certificates"
"allmark.io/modules/common/logger/loglevel"
"allmark.io/modules/common/ports"
"allmark.io/modules/common/util/fsutil"
"github.com/andreaskoch/allmark/common/certificates"
"github.com/andreaskoch/allmark/common/logger/loglevel"
"github.com/andreaskoch/allmark/common/ports"
"github.com/andreaskoch/allmark/common/util/fsutil"
"github.com/abbot/go-http-auth"
"github.com/mitchellh/go-homedir"
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
package console

import (
"allmark.io/modules/common/logger/loglevel"
"github.com/andreaskoch/allmark/common/logger/loglevel"
"fmt"
"io"
"log"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package console

import (
"allmark.io/modules/common/logger/loglevel"
"github.com/andreaskoch/allmark/common/logger/loglevel"
"bytes"
"strings"
"testing"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package logger

import (
"allmark.io/modules/common/logger/loglevel"
"github.com/andreaskoch/allmark/common/logger/loglevel"
)

type Logger interface {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package paths

import (
"allmark.io/modules/common/route"
"github.com/andreaskoch/allmark/common/route"
)

type PatherFactory interface {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package paths

import (
"allmark.io/modules/common/route"
"github.com/andreaskoch/allmark/common/route"
)

type Pather interface {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package tree

import (
"allmark.io/modules/common/route"
"github.com/andreaskoch/allmark/common/route"
)

func RouteToPath(route route.Route) Path {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package tree

import (
"allmark.io/modules/common/route"
"github.com/andreaskoch/allmark/common/route"
"testing"
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
package dataaccess

import (
"allmark.io/modules/common/content"
"allmark.io/modules/common/route"
"github.com/andreaskoch/allmark/common/content"
"github.com/andreaskoch/allmark/common/route"
)

// A File represents a file ressource that is associated with an Item.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
package filesystem

import (
"allmark.io/modules/common/content"
"allmark.io/modules/common/route"
"allmark.io/modules/common/util/fsutil"
"allmark.io/modules/common/util/hashutil"
"github.com/andreaskoch/allmark/common/content"
"github.com/andreaskoch/allmark/common/route"
"github.com/andreaskoch/allmark/common/util/fsutil"
"github.com/andreaskoch/allmark/common/util/hashutil"
"fmt"
"io"
"io/ioutil"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
package filesystem

import (
"allmark.io/modules/common/content"
"allmark.io/modules/common/route"
"allmark.io/modules/common/util/hashutil"
"github.com/andreaskoch/allmark/common/content"
"github.com/andreaskoch/allmark/common/route"
"github.com/andreaskoch/allmark/common/util/hashutil"
"fmt"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
package filesystem

import (
"allmark.io/modules/common/logger"
"allmark.io/modules/common/route"
"allmark.io/modules/common/util/fsutil"
"allmark.io/modules/dataaccess"
"github.com/andreaskoch/allmark/common/logger"
"github.com/andreaskoch/allmark/common/route"
"github.com/andreaskoch/allmark/common/util/fsutil"
"github.com/andreaskoch/allmark/dataaccess"
"fmt"
"io/ioutil"
"path/filepath"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
package filesystem

import (
"allmark.io/modules/common/route"
"allmark.io/modules/dataaccess"
"github.com/andreaskoch/allmark/common/route"
"github.com/andreaskoch/allmark/dataaccess"
"fmt"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
package filesystem

import (
"allmark.io/modules/common/content"
"allmark.io/modules/common/route"
"allmark.io/modules/common/util/hashutil"
"allmark.io/modules/dataaccess"
"github.com/andreaskoch/allmark/common/content"
"github.com/andreaskoch/allmark/common/route"
"github.com/andreaskoch/allmark/common/util/hashutil"
"github.com/andreaskoch/allmark/dataaccess"
"fmt"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
package filesystem

import (
"allmark.io/modules/common/config"
"allmark.io/modules/common/logger"
"allmark.io/modules/common/route"
"allmark.io/modules/common/util/fsutil"
"allmark.io/modules/dataaccess"
"github.com/andreaskoch/allmark/common/config"
"github.com/andreaskoch/allmark/common/logger"
"github.com/andreaskoch/allmark/common/route"
"github.com/andreaskoch/allmark/common/util/fsutil"
"github.com/andreaskoch/allmark/dataaccess"
"fmt"
"path/filepath"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
package filesystem

import (
"allmark.io/modules/common/route"
"allmark.io/modules/common/tree"
"allmark.io/modules/dataaccess"
"github.com/andreaskoch/allmark/common/route"
"github.com/andreaskoch/allmark/common/tree"
"github.com/andreaskoch/allmark/dataaccess"
"fmt"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import (
"runtime"
"time"

"allmark.io/modules/common/config"
"allmark.io/modules/common/logger"
"allmark.io/modules/common/route"
"allmark.io/modules/common/util/fsutil"
"allmark.io/modules/dataaccess"
"github.com/andreaskoch/allmark/common/config"
"github.com/andreaskoch/allmark/common/logger"
"github.com/andreaskoch/allmark/common/route"
"github.com/andreaskoch/allmark/common/util/fsutil"
"github.com/andreaskoch/allmark/dataaccess"
)

type Repository struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
package filesystem

import (
"allmark.io/modules/common/config"
"allmark.io/modules/common/util/fsutil"
"github.com/andreaskoch/allmark/common/config"
"github.com/andreaskoch/allmark/common/util/fsutil"
"io/ioutil"
"path/filepath"
"strings"
Expand Down
Loading

0 comments on commit a02d415

Please sign in to comment.