From 515ad1cfe0ae9928857b2d581b42e1606b41f63b Mon Sep 17 00:00:00 2001 From: Michael Barz Date: Mon, 2 Mar 2020 21:36:28 +0100 Subject: [PATCH] Add edit docs link --- .drone.star | 4 ++-- changelog/CHANGELOG.tmpl | 9 ++++++--- docs/.gitignore | 1 - docs/_index.md | 6 +++++- docs/building.md | 7 ++++++- docs/getting-started.md | 5 ++++- 6 files changed, 23 insertions(+), 9 deletions(-) delete mode 100644 docs/.gitignore diff --git a/.drone.star b/.drone.star index 30a7cd204e..a204a15edb 100644 --- a/.drone.star +++ b/.drone.star @@ -485,7 +485,7 @@ def changelog(ctx): }, { 'name': 'diff', - 'image': 'webhippie/golang:1.13', + 'image': 'owncloud/alpine:latest', 'pull': 'always', 'commands': [ 'git diff', @@ -493,7 +493,7 @@ def changelog(ctx): }, { 'name': 'output', - 'image': 'webhippie/golang:1.13', + 'image': 'owncloud/alpine:latest', 'pull': 'always', 'commands': [ 'cat CHANGELOG.md', diff --git a/changelog/CHANGELOG.tmpl b/changelog/CHANGELOG.tmpl index e37d97181b..e6cb0e44c8 100644 --- a/changelog/CHANGELOG.tmpl +++ b/changelog/CHANGELOG.tmpl @@ -1,10 +1,10 @@ {{ $allVersions := . }} {{- range $index, $changes := . }}{{ with $changes -}} +{{ if gt (len $allVersions) 1 -}} # Changelog for [{{ .Version }}] ({{ .Date }}) -The following sections list the changes for {{ .Version }}. +The following sections list the changes in ocis-accounts {{ .Version }}. -{{ if gt (len $allVersions) 1 -}} {{/* creating version compare links */ -}} {{ $next := add1 $index -}} {{ if ne (len $allVersions) $next -}} @@ -23,7 +23,10 @@ The following sections list the changes for {{ .Version }}. [{{ .Version }}]: https://github.com/owncloud/ocis-accounts/compare/500e303cb544ed93d84153f01219d77eeee44929...v{{ .Version }} {{ end -}} -{{- end -}} +{{ else -}} +# Changes in {{ .Version }} + +{{ end -}} ## Summary {{ range $entry := .Entries }}{{ with $entry }} diff --git a/docs/.gitignore b/docs/.gitignore deleted file mode 100644 index 364fdec1aa..0000000000 --- a/docs/.gitignore +++ /dev/null @@ -1 +0,0 @@ -public/ diff --git a/docs/_index.md b/docs/_index.md index 94e2457dbb..c075dd2d92 100644 --- a/docs/_index.md +++ b/docs/_index.md @@ -1,6 +1,10 @@ --- title: Accounts -anchor: ocis-accounts +date: 2018-05-02T00:00:00+00:00 +weight: 10 +geekdocRepo: https://github.com/owncloud/ocis-accounts +geekdocEditPath: edit/master/docs +geekdocFilePath: _index.md --- This service provides an inter-operable accounts service that operates on the filesystem by default. diff --git a/docs/building.md b/docs/building.md index bbce525a1c..2d96c7ceb3 100644 --- a/docs/building.md +++ b/docs/building.md @@ -1,9 +1,14 @@ --- title: "Building" date: 2018-05-02T00:00:00+00:00 -weight: 20 +weight: 30 +geekdocRepo: https://github.com/owncloud/ocis-accounts +geekdocEditPath: edit/master/docs +geekdocFilePath: building.md --- +{{< toc >}} + As this project is built with Go, so you need to install that first. The installation of Go is out of the scope of this document, please follow the official documentation for [Go](https://golang.org/doc/install), to build this project you have to install Go >= v1.13. After the installation of the required tools you need to get the sources: {{< highlight txt >}} diff --git a/docs/getting-started.md b/docs/getting-started.md index 466842639b..5ca2d957df 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -1,7 +1,10 @@ --- title: "Getting Started" date: 2018-05-02T00:00:00+00:00 -weight: 10 +weight: 20 +geekdocRepo: https://github.com/owncloud/ocis-accounts +geekdocEditPath: edit/master/docs +geekdocFilePath: getting-started.md --- {{< toc >}}