diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9202c65..cb95595 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -116,19 +116,9 @@ publish deb: - main - tags -pages: - image: debian:latest +docs.signald.org: stage: publish needs: ["build:x86"] - before_script: - - apt-get update && apt-get install -y hugo - script: - - mkdir -p docs/content/signaldctl - - SIGNALDCTL_PUBLIC_DOC_MODE=on ./signaldctl doc -o md ./docs/content/signaldctl - - cd docs - - hugo - - mv public ../ - artifacts: - paths: - - "public/" - expire_in: 1 month \ No newline at end of file + trigger: signald/docs.signald.org + only: + - main \ No newline at end of file diff --git a/cmd/signaldctl/cmd/doc.go b/cmd/signaldctl/cmd/doc.go index bb061b9..04091fb 100644 --- a/cmd/signaldctl/cmd/doc.go +++ b/cmd/signaldctl/cmd/doc.go @@ -58,8 +58,6 @@ func init() { const fmTemplate = `--- title: "%s" -slug: %s -url: %s --- ` diff --git a/docs/README.md b/docs/README.md deleted file mode 100644 index 59b6cc0..0000000 --- a/docs/README.md +++ /dev/null @@ -1 +0,0 @@ -# [docs are here](https://signaldctl.signald.org/) \ No newline at end of file diff --git a/docs/archetypes/default.md b/docs/archetypes/default.md deleted file mode 100644 index 00e77bd..0000000 --- a/docs/archetypes/default.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: "{{ replace .Name "-" " " | title }}" -date: {{ .Date }} -draft: true ---- - diff --git a/docs/config.toml b/docs/config.toml deleted file mode 100644 index b83d710..0000000 --- a/docs/config.toml +++ /dev/null @@ -1,3 +0,0 @@ -baseURL = "https://signaldctl.signald.org" -languageCode = "en-us" -title = "signaldctl" diff --git a/docs/content/_index.md b/docs/content/_index.md deleted file mode 100644 index bd71f6b..0000000 --- a/docs/content/_index.md +++ /dev/null @@ -1 +0,0 @@ -[signaldctl docs are here](signaldctl/) \ No newline at end of file diff --git a/docs/layouts/_default/baseof.html b/docs/layouts/_default/baseof.html deleted file mode 100644 index bed617a..0000000 --- a/docs/layouts/_default/baseof.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - {{ .Hugo.Generator }} - {{ block "title" . }}{{ .Site.Title }}{{ end }} - - - - {{ block "main" . }} - - {{ end }} - {{ block "footer" . }} - - {{ end }} - - diff --git a/docs/layouts/_default/list.html b/docs/layouts/_default/list.html deleted file mode 100644 index 4084b8a..0000000 --- a/docs/layouts/_default/list.html +++ /dev/null @@ -1,6 +0,0 @@ -{{ define "main" }} - -{{ end }} diff --git a/docs/layouts/_default/single.html b/docs/layouts/_default/single.html deleted file mode 100644 index a756d33..0000000 --- a/docs/layouts/_default/single.html +++ /dev/null @@ -1,5 +0,0 @@ - -{{ define "title" }}{{ .Site.Title }} | {{ .Title }}{{ end }} -{{ define "main" }} - {{ .Content }} -{{ end }} diff --git a/docs/layouts/index.html b/docs/layouts/index.html deleted file mode 100644 index b268e43..0000000 --- a/docs/layouts/index.html +++ /dev/null @@ -1,19 +0,0 @@ -{{ define "main" }} -
-
-

{{.Title}}

- {{ with .Params.subtitle }} - {{.}} - {{ end }} -
-
- - {{.Content}} -
-
- {{ range first 10 .Site.RegularPages }} - {{ .Render "summary"}} - {{ end }} -
-
-{{ end }}