Add edit docs link

This commit is contained in:
Michael Barz
2020-03-02 21:36:28 +01:00
parent d6e70ea441
commit 515ad1cfe0
6 changed files with 23 additions and 9 deletions

View File

@@ -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',

View File

@@ -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 }}

1
docs/.gitignore vendored
View File

@@ -1 +0,0 @@
public/

View File

@@ -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.

View File

@@ -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 >}}

View File

@@ -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 >}}