-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade Hugo and Docsy to latest versions (#731)
- Loading branch information
Showing
21 changed files
with
259 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
public/ | ||
resources/ | ||
node_modules/ | ||
# Ignore old theme submodule folder | ||
themes/ | ||
tech-doc-hugo | ||
|
||
.DS_Store | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module github.com/medic/cht-docs | ||
|
||
go 1.13 | ||
|
||
require github.com/google/docsy v0.4.0 // indirect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
github.com/FortAwesome/Font-Awesome v0.0.0-20210804190922-7d3d774145ac/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo= | ||
github.com/google/docsy v0.4.0 h1:Eyt2aiDC1fnw/Qq/9xnIqUU5n5Yyk4c8gX3nBDdTv/4= | ||
github.com/google/docsy v0.4.0/go.mod h1:vJjGkHNaw9bO42gpFTWwAUzHZWZEVlK46Kx7ikY5c7Y= | ||
github.com/google/docsy/dependencies v0.4.0/go.mod h1:2zZxHF+2qvkyXhLZtsbnqMotxMukJXLaf8fAZER48oo= | ||
github.com/twbs/bootstrap v4.6.1+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0= |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
{{/* Layout from docsy theme's /docs */}} | ||
<!-- Modified from docsy theme to show related content --> | ||
<!-- https://github.com/google/docsy/blob/c65715725ee992cd4e59aeefe0f66df80b2eb4ea/layouts/_default/content.html --> | ||
<div class="td-content"> | ||
<h1>{{ .Title }}</h1> | ||
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }} | ||
{{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) }} | ||
{{ partial "reading-time.html" . }} | ||
{{ end }} | ||
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }} | ||
<header class="article-meta"> | ||
{{ partial "taxonomy_terms_article_wrapper.html" . }} | ||
{{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) }} | ||
{{ partial "reading-time.html" . }} | ||
{{ end }} | ||
</header> | ||
{{ .Content }} | ||
{{ partial "related.html" . }}{{/* This line is the only addition to theme's file, moved from /docs */}} | ||
<!-- Show related content - https://github.com/medic/cht-docs/commit/7daf27fe8e58c225759276a0284043dfcafde550 --> | ||
{{ partial "related.html" . }} | ||
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }} | ||
{{ partial "feedback.html" .Site.Params.ui.feedback }} | ||
<br /> | ||
{{ partial "feedback.html" .Site.Params.ui.feedback }} | ||
<br /> | ||
{{ end }} | ||
{{ if (.Site.DisqusShortname) }} | ||
<br /> | ||
{{ partial "disqus-comment.html" . }} | ||
{{ if (.Site.Params.DisqusShortname) }} | ||
<br /> | ||
{{ partial "disqus-comment.html" . }} | ||
{{ end }} | ||
<div class="text-muted mt-5 pt-3 border-top">{{ partial "page-meta-lastmod.html" . }}</div> | ||
{{ partial "page-meta-lastmod.html" . }} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,27 @@ | ||
{{/* Layout from docsy theme's /docs */}} | ||
<!-- Modified from docsy theme to show related content --> | ||
<!-- https://github.com/google/docsy/blob/c65715725ee992cd4e59aeefe0f66df80b2eb4ea/layouts/docs/list.html --> | ||
{{ define "main" }} | ||
<div class="td-content"> | ||
<h1>{{ .Title }}</h1> | ||
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }} | ||
{{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) }} | ||
{{ partial "reading-time.html" . }} | ||
{{ end }} | ||
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }} | ||
<header class="article-meta"> | ||
{{ partial "taxonomy_terms_article_wrapper.html" . }} | ||
{{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) }} | ||
{{ partial "reading-time.html" . }} | ||
{{ end }} | ||
</header> | ||
{{ .Content }} | ||
{{ partial "section-index.html" . }} | ||
{{ partial "related.html" . }}{{/* This line is the only addition to theme's file, moved from /docs */}} | ||
{{ partial "section-index.html" . }} | ||
<!-- Show related content - https://github.com/medic/cht-docs/commit/7daf27fe8e58c225759276a0284043dfcafde550 --> | ||
{{ partial "related.html" . }} | ||
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }} | ||
{{ partial "feedback.html" .Site.Params.ui.feedback }} | ||
<br /> | ||
{{ partial "feedback.html" .Site.Params.ui.feedback }} | ||
<br /> | ||
{{ end }} | ||
{{ if (.Site.DisqusShortname) }} | ||
<br /> | ||
{{ partial "disqus-comment.html" . }} | ||
<br /> | ||
{{ partial "disqus-comment.html" . }} | ||
{{ end }} | ||
<div class="text-muted mt-5 pt-3 border-top">{{ partial "page-meta-lastmod.html" . }}</div> | ||
{{ partial "page-meta-lastmod.html" . }} | ||
</div> | ||
{{ end }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,14 @@ | ||
{{ T "post_last_mod"}} {{ .Lastmod.Format .Site.Params.time_format_default }}{{ with .GitInfo }}: <a href="{{ $.Site.Params.github_repo }}/commit/{{ .Hash }}">{{ .Subject }} ({{ .AbbreviatedHash }})</a>{{end }} | ||
<!-- Modified from docsy theme to show meta links --> | ||
<!-- https://github.com/google/docsy/blob/c65715725ee992cd4e59aeefe0f66df80b2eb4ea/layouts/partials/page-meta-lastmod.html --> | ||
{{ if and (.GitInfo) (.Site.Params.github_repo) -}} | ||
<div class="text-muted mt-5 pt-3 border-top"> | ||
{{ T "post_last_mod" }} {{ .Lastmod.Format .Site.Params.time_format_default -}} | ||
{{ with .GitInfo }}: {{/* Trim WS */ -}} | ||
<a href="{{ $.Site.Params.github_repo }}/commit/{{ .Hash }}"> | ||
{{- .Subject }} ({{ .AbbreviatedHash }}) {{- /* Trim WS */ -}} | ||
</a> | ||
{{- end }} | ||
</div> | ||
{{ end -}} | ||
<!-- Show meta links when not displayed in right pane - https://github.com/medic/cht-docs/commit/05d9fffe77fa4dadd55ddc83b72c32fda569b40e --> | ||
<div class="d-xl-none d-print-none meta-links">{{ partial "page-meta-links" . }}</div> |
Oops, something went wrong.