Rip out local hugo generation, move it to docs.signald.org

This commit is contained in:
Finn 2021-03-24 19:27:23 -07:00
parent c1daa731f3
commit ebc72472c0
10 changed files with 4 additions and 74 deletions

View file

@ -116,19 +116,9 @@ publish deb:
- main - main
- tags - tags
pages: docs.signald.org:
image: debian:latest
stage: publish stage: publish
needs: ["build:x86"] needs: ["build:x86"]
before_script: trigger: signald/docs.signald.org
- apt-get update && apt-get install -y hugo only:
script: - main
- 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

View file

@ -58,8 +58,6 @@ func init() {
const fmTemplate = `--- const fmTemplate = `---
title: "%s" title: "%s"
slug: %s
url: %s
--- ---
` `

View file

@ -1 +0,0 @@
# [docs are here](https://signaldctl.signald.org/)

View file

@ -1,6 +0,0 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

View file

@ -1,3 +0,0 @@
baseURL = "https://signaldctl.signald.org"
languageCode = "en-us"
title = "signaldctl"

View file

@ -1 +0,0 @@
[signaldctl docs are here](signaldctl/)

View file

@ -1,17 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
{{ .Hugo.Generator }}
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
</head>
<body>
<!-- Code that all your templates share, like a header -->
{{ block "main" . }}
<!-- The part of the page that begins to differ between templates -->
{{ end }}
{{ block "footer" . }}
<!-- More shared code, perhaps a footer but that can be overridden if need be in -->
{{ end }}
</body>
</html>

View file

@ -1,6 +0,0 @@
{{ define "main" }}
<ul>
{{ range .Pages }}<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
{{ end }}

View file

@ -1,5 +0,0 @@
{{ define "title" }}{{ .Site.Title }} | {{ .Title }}{{ end }}
{{ define "main" }}
{{ .Content }}
{{ end }}

View file

@ -1,19 +0,0 @@
{{ define "main" }}
<main aria-role="main">
<header class="homepage-header">
<h1>{{.Title}}</h1>
{{ with .Params.subtitle }}
<span class="subtitle">{{.}}</span>
{{ end }}
</header>
<div class="homepage-content">
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
{{.Content}}
</div>
<div>
{{ range first 10 .Site.RegularPages }}
{{ .Render "summary"}}
{{ end }}
</div>
</main>
{{ end }}