Skip to content

Commit a02d415

Browse files
committed
Merge branch 'release/v0.10.0'
2 parents d347cb0 + 410207d commit a02d415

File tree

784 files changed

+155863
-1135
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

784 files changed

+155863
-1135
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
language: go
2-
go: 1.5
2+
go: tip
33
install: make install

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ RUN apt-get update && apt-get install -qy pandoc
66

77
# Build
88
ADD . /go
9-
RUN go run make.go -crosscompile
10-
RUN go run make.go -install
9+
RUN make install
10+
RUN make crosscompile
1111

1212
# Data
1313
RUN mkdir /data

Makefile

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
# The normal way to build allmark is just "go run make.go", which
2-
# works everywhere, even on systems without Make.
1+
build:
2+
go build -o bin/files/allmark ./cli
33

44
install:
5-
go run make.go -install
5+
go build -o bin/files/allmark ./cli
66

77
test:
8+
go test ./cli ./common/... ./dataaccess/... ./model/... ./services/... ./web/...
89

9-
go run make.go -test
10-
11-
fmt:
12-
go run make.go -fmt
10+
crosscompile:
11+
GOOS=linux GOARCH=amd64 go build -o bin/files/allmark_linux_amd64 ./cli
12+
GOOS=linux GOARCH=arm GOARM=5 go build -o bin/files/allmark_linux_arm_5 ./cli
13+
GOOS=linux GOARCH=arm GOARM=6 go build -o bin/files/allmark_linux_arm_6 ./cli
14+
GOOS=linux GOARCH=arm GOARM=7 go build -o bin/files/allmark_linux_arm_7 ./cli
15+
GOOS=darwin GOARCH=amd64 go build -o bin/files/allmark_darwin_amd64 ./cli
16+
GOOS=windows GOARCH=amd64 go build -o bin/files/allmark_windows_amd64 ./cli

README.md

Lines changed: 9 additions & 17 deletions

bin/download.md

Lines changed: 16 additions & 0 deletions

src/allmark.io/cmd/allmark/allmark.go renamed to cli/allmark.go

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
package main
66

77
import (
8-
"allmark.io/modules/common/buildinfo"
9-
"allmark.io/modules/common/config"
10-
"allmark.io/modules/common/logger/console"
11-
"allmark.io/modules/common/logger/loglevel"
12-
"allmark.io/modules/common/shutdown"
13-
"allmark.io/modules/common/util/fsutil"
14-
"allmark.io/modules/dataaccess/filesystem"
15-
"allmark.io/modules/services/initialization"
16-
"allmark.io/modules/services/parser"
17-
"allmark.io/modules/services/thumbnail"
18-
"allmark.io/modules/web/server"
198
"fmt"
9+
10+
"github.com/andreaskoch/allmark/common/config"
11+
"github.com/andreaskoch/allmark/common/logger/console"
12+
"github.com/andreaskoch/allmark/common/logger/loglevel"
13+
"github.com/andreaskoch/allmark/common/shutdown"
14+
"github.com/andreaskoch/allmark/common/util/fsutil"
15+
"github.com/andreaskoch/allmark/dataaccess/filesystem"
16+
"github.com/andreaskoch/allmark/services/initialization"
17+
"github.com/andreaskoch/allmark/services/parser"
18+
"github.com/andreaskoch/allmark/services/thumbnail"
19+
"github.com/andreaskoch/allmark/web/server"
2020
// "github.com/davecheney/profile"
2121
"flag"
2222
"os"
@@ -37,6 +37,8 @@ const (
3737
CommandNameVersion = "version"
3838
)
3939

40+
var version = "v0.10.0-dev"
41+
4042
var (
4143
serveFlags = flag.NewFlagSet("serve-flags", flag.ContinueOnError)
4244
secure = serveFlags.Bool("secure", false, "Use HTTPs only")
@@ -141,7 +143,7 @@ func parseCommandLineArguments(args []string, commandHandler func(commandName, r
141143
func printUsageInformation(args []string) {
142144
executeableName := args[0]
143145

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

241243
func printVersionInformation() {
242-
fmt.Println(buildinfo.Version())
244+
fmt.Println(version)
243245
}
244246

245247
func isCommandlineFlag(argument string) bool {

src/allmark.io/modules/common/config/config.go renamed to common/config/config.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ import (
1515
"os/exec"
1616
"path/filepath"
1717

18-
"allmark.io/modules/common/certificates"
19-
"allmark.io/modules/common/logger/loglevel"
20-
"allmark.io/modules/common/ports"
21-
"allmark.io/modules/common/util/fsutil"
18+
"github.com/andreaskoch/allmark/common/certificates"
19+
"github.com/andreaskoch/allmark/common/logger/loglevel"
20+
"github.com/andreaskoch/allmark/common/ports"
21+
"github.com/andreaskoch/allmark/common/util/fsutil"
2222
"github.com/abbot/go-http-auth"
2323
"github.com/mitchellh/go-homedir"
2424
)
File renamed without changes.

src/allmark.io/modules/common/logger/console/console.go renamed to common/logger/console/console.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
package console
88

99
import (
10-
"allmark.io/modules/common/logger/loglevel"
10+
"github.com/andreaskoch/allmark/common/logger/loglevel"
1111
"fmt"
1212
"io"
1313
"log"

src/allmark.io/modules/common/logger/console/console_test.go renamed to common/logger/console/console_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
package console
66

77
import (
8-
"allmark.io/modules/common/logger/loglevel"
8+
"github.com/andreaskoch/allmark/common/logger/loglevel"
99
"bytes"
1010
"strings"
1111
"testing"

src/allmark.io/modules/common/logger/logger.go renamed to common/logger/logger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
package logger
66

77
import (
8-
"allmark.io/modules/common/logger/loglevel"
8+
"github.com/andreaskoch/allmark/common/logger/loglevel"
99
)
1010

1111
type Logger interface {

src/allmark.io/modules/common/paths/factory.go renamed to common/paths/factory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
package paths
66

77
import (
8-
"allmark.io/modules/common/route"
8+
"github.com/andreaskoch/allmark/common/route"
99
)
1010

1111
type PatherFactory interface {

src/allmark.io/modules/common/paths/paths.go renamed to common/paths/paths.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
package paths
66

77
import (
8-
"allmark.io/modules/common/route"
8+
"github.com/andreaskoch/allmark/common/route"
99
)
1010

1111
type Pather interface {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/allmark.io/modules/common/tree/util.go renamed to common/tree/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
package tree
66

77
import (
8-
"allmark.io/modules/common/route"
8+
"github.com/andreaskoch/allmark/common/route"
99
)
1010

1111
func RouteToPath(route route.Route) Path {

src/allmark.io/modules/common/tree/util_test.go renamed to common/tree/util_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
package tree
66

77
import (
8-
"allmark.io/modules/common/route"
8+
"github.com/andreaskoch/allmark/common/route"
99
"testing"
1010
)
1111

src/allmark.io/modules/dataaccess/file.go renamed to dataaccess/file.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
package dataaccess
66

77
import (
8-
"allmark.io/modules/common/content"
9-
"allmark.io/modules/common/route"
8+
"github.com/andreaskoch/allmark/common/content"
9+
"github.com/andreaskoch/allmark/common/route"
1010
)
1111

1212
// A File represents a file ressource that is associated with an Item.

src/allmark.io/modules/dataaccess/filesystem/contentprovider.go renamed to dataaccess/filesystem/contentprovider.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
package filesystem
66

77
import (
8-
"allmark.io/modules/common/content"
9-
"allmark.io/modules/common/route"
10-
"allmark.io/modules/common/util/fsutil"
11-
"allmark.io/modules/common/util/hashutil"
8+
"github.com/andreaskoch/allmark/common/content"
9+
"github.com/andreaskoch/allmark/common/route"
10+
"github.com/andreaskoch/allmark/common/util/fsutil"
11+
"github.com/andreaskoch/allmark/common/util/hashutil"
1212
"fmt"
1313
"io"
1414
"io/ioutil"

src/allmark.io/modules/dataaccess/filesystem/file.go renamed to dataaccess/filesystem/file.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
package filesystem
66

77
import (
8-
"allmark.io/modules/common/content"
9-
"allmark.io/modules/common/route"
10-
"allmark.io/modules/common/util/hashutil"
8+
"github.com/andreaskoch/allmark/common/content"
9+
"github.com/andreaskoch/allmark/common/route"
10+
"github.com/andreaskoch/allmark/common/util/hashutil"
1111
"fmt"
1212
)
1313

src/allmark.io/modules/dataaccess/filesystem/fileprovider.go renamed to dataaccess/filesystem/fileprovider.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
package filesystem
66

77
import (
8-
"allmark.io/modules/common/logger"
9-
"allmark.io/modules/common/route"
10-
"allmark.io/modules/common/util/fsutil"
11-
"allmark.io/modules/dataaccess"
8+
"github.com/andreaskoch/allmark/common/logger"
9+
"github.com/andreaskoch/allmark/common/route"
10+
"github.com/andreaskoch/allmark/common/util/fsutil"
11+
"github.com/andreaskoch/allmark/dataaccess"
1212
"fmt"
1313
"io/ioutil"
1414
"path/filepath"

src/allmark.io/modules/dataaccess/filesystem/index.go renamed to dataaccess/filesystem/index.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
package filesystem
66

77
import (
8-
"allmark.io/modules/common/route"
9-
"allmark.io/modules/dataaccess"
8+
"github.com/andreaskoch/allmark/common/route"
9+
"github.com/andreaskoch/allmark/dataaccess"
1010
"fmt"
1111
)
1212

src/allmark.io/modules/dataaccess/filesystem/item.go renamed to dataaccess/filesystem/item.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
package filesystem
66

77
import (
8-
"allmark.io/modules/common/content"
9-
"allmark.io/modules/common/route"
10-
"allmark.io/modules/common/util/hashutil"
11-
"allmark.io/modules/dataaccess"
8+
"github.com/andreaskoch/allmark/common/content"
9+
"github.com/andreaskoch/allmark/common/route"
10+
"github.com/andreaskoch/allmark/common/util/hashutil"
11+
"github.com/andreaskoch/allmark/dataaccess"
1212
"fmt"
1313
)
1414

src/allmark.io/modules/dataaccess/filesystem/itemprovider.go renamed to dataaccess/filesystem/itemprovider.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
package filesystem
66

77
import (
8-
"allmark.io/modules/common/config"
9-
"allmark.io/modules/common/logger"
10-
"allmark.io/modules/common/route"
11-
"allmark.io/modules/common/util/fsutil"
12-
"allmark.io/modules/dataaccess"
8+
"github.com/andreaskoch/allmark/common/config"
9+
"github.com/andreaskoch/allmark/common/logger"
10+
"github.com/andreaskoch/allmark/common/route"
11+
"github.com/andreaskoch/allmark/common/util/fsutil"
12+
"github.com/andreaskoch/allmark/dataaccess"
1313
"fmt"
1414
"path/filepath"
1515
)

src/allmark.io/modules/dataaccess/filesystem/itemtree.go renamed to dataaccess/filesystem/itemtree.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
package filesystem
66

77
import (
8-
"allmark.io/modules/common/route"
9-
"allmark.io/modules/common/tree"
10-
"allmark.io/modules/dataaccess"
8+
"github.com/andreaskoch/allmark/common/route"
9+
"github.com/andreaskoch/allmark/common/tree"
10+
"github.com/andreaskoch/allmark/dataaccess"
1111
"fmt"
1212
)
1313

src/allmark.io/modules/dataaccess/filesystem/repository.go renamed to dataaccess/filesystem/repository.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ import (
1010
"runtime"
1111
"time"
1212

13-
"allmark.io/modules/common/config"
14-
"allmark.io/modules/common/logger"
15-
"allmark.io/modules/common/route"
16-
"allmark.io/modules/common/util/fsutil"
17-
"allmark.io/modules/dataaccess"
13+
"github.com/andreaskoch/allmark/common/config"
14+
"github.com/andreaskoch/allmark/common/logger"
15+
"github.com/andreaskoch/allmark/common/route"
16+
"github.com/andreaskoch/allmark/common/util/fsutil"
17+
"github.com/andreaskoch/allmark/dataaccess"
1818
)
1919

2020
type Repository struct {

src/allmark.io/modules/dataaccess/filesystem/util.go renamed to dataaccess/filesystem/util.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
package filesystem
66

77
import (
8-
"allmark.io/modules/common/config"
9-
"allmark.io/modules/common/util/fsutil"
8+
"github.com/andreaskoch/allmark/common/config"
9+
"github.com/andreaskoch/allmark/common/util/fsutil"
1010
"io/ioutil"
1111
"path/filepath"
1212
"strings"

0 commit comments

Comments
 (0)