From 957e26a6f30d40e2bff042d76a327d0a2cfbabae Mon Sep 17 00:00:00 2001 From: Adin Scannell Date: Mon, 18 Nov 2019 13:40:27 -0800 Subject: Move website to a simpler jekyll-based template This will allow us to merge the site into the main repository. This merge allows the documentation to be kept up-to-date and synchronized with the main project. Builds will be triggered on any update, removing the need for the cron-based reploy. --- themes/docsy/layouts/404.html | 8 --- themes/docsy/layouts/_default/baseof.html | 18 ------- themes/docsy/layouts/_default/content.html | 14 ------ themes/docsy/layouts/_default/list.html | 5 -- themes/docsy/layouts/_default/list.rss.xml | 43 ---------------- themes/docsy/layouts/_default/search.html | 22 --------- themes/docsy/layouts/_default/single.html | 5 -- themes/docsy/layouts/blog/baseof.html | 34 ------------- themes/docsy/layouts/blog/content.html | 16 ------ themes/docsy/layouts/blog/list.html | 36 -------------- themes/docsy/layouts/blog/single.html | 3 -- themes/docsy/layouts/community/list.html | 19 -------- themes/docsy/layouts/docs/baseof.html | 30 ------------ themes/docsy/layouts/docs/list.html | 17 ------- themes/docsy/layouts/docs/single.html | 3 -- themes/docsy/layouts/home.html | 5 -- themes/docsy/layouts/partials/breadcrumb.html | 18 ------- themes/docsy/layouts/partials/community_links.html | 29 ----------- themes/docsy/layouts/partials/disqus-comment.html | 23 --------- themes/docsy/layouts/partials/favicons.html | 12 ----- themes/docsy/layouts/partials/featured-image.html | 14 ------ themes/docsy/layouts/partials/feedback.html | 57 ---------------------- themes/docsy/layouts/partials/footer.html | 39 --------------- themes/docsy/layouts/partials/head-css.html | 11 ----- themes/docsy/layouts/partials/head.html | 26 ---------- themes/docsy/layouts/partials/hooks/body-end.html | 3 -- themes/docsy/layouts/partials/hooks/head-end.html | 3 -- .../layouts/partials/navbar-lang-selector.html | 10 ---- .../layouts/partials/navbar-version-selector.html | 8 --- themes/docsy/layouts/partials/navbar.html | 33 ------------- .../docsy/layouts/partials/page-meta-lastmod.html | 1 - themes/docsy/layouts/partials/page-meta-links.html | 24 --------- themes/docsy/layouts/partials/pager.html | 7 --- themes/docsy/layouts/partials/scripts.html | 14 ------ themes/docsy/layouts/partials/search-input.html | 3 -- themes/docsy/layouts/partials/section-index.html | 29 ----------- themes/docsy/layouts/partials/sidebar-tree.html | 47 ------------------ themes/docsy/layouts/partials/sidebar.html | 14 ------ themes/docsy/layouts/partials/toc.html | 8 --- themes/docsy/layouts/shortcodes/alert.html | 6 --- themes/docsy/layouts/shortcodes/blocks/cover.html | 40 --------------- .../docsy/layouts/shortcodes/blocks/feature.html | 10 ---- themes/docsy/layouts/shortcodes/blocks/lead.html | 12 ----- .../docsy/layouts/shortcodes/blocks/link-down.html | 7 --- .../docsy/layouts/shortcodes/blocks/section.html | 12 ----- themes/docsy/layouts/shortcodes/imgproc.html | 21 -------- themes/docsy/layouts/shortcodes/pageinfo.html | 5 -- themes/docsy/layouts/shortcodes/readfile.md | 8 --- themes/docsy/layouts/shortcodes/swaggerui.html | 16 ------ themes/docsy/layouts/swagger/baseof.html | 33 ------------- themes/docsy/layouts/swagger/list.html | 17 ------- themes/docsy/layouts/swagger/single.html | 3 -- 52 files changed, 901 deletions(-) delete mode 100644 themes/docsy/layouts/404.html delete mode 100644 themes/docsy/layouts/_default/baseof.html delete mode 100644 themes/docsy/layouts/_default/content.html delete mode 100644 themes/docsy/layouts/_default/list.html delete mode 100644 themes/docsy/layouts/_default/list.rss.xml delete mode 100644 themes/docsy/layouts/_default/search.html delete mode 100644 themes/docsy/layouts/_default/single.html delete mode 100644 themes/docsy/layouts/blog/baseof.html delete mode 100644 themes/docsy/layouts/blog/content.html delete mode 100644 themes/docsy/layouts/blog/list.html delete mode 100644 themes/docsy/layouts/blog/single.html delete mode 100644 themes/docsy/layouts/community/list.html delete mode 100644 themes/docsy/layouts/docs/baseof.html delete mode 100644 themes/docsy/layouts/docs/list.html delete mode 100644 themes/docsy/layouts/docs/single.html delete mode 100644 themes/docsy/layouts/home.html delete mode 100644 themes/docsy/layouts/partials/breadcrumb.html delete mode 100644 themes/docsy/layouts/partials/community_links.html delete mode 100644 themes/docsy/layouts/partials/disqus-comment.html delete mode 100644 themes/docsy/layouts/partials/favicons.html delete mode 100644 themes/docsy/layouts/partials/featured-image.html delete mode 100644 themes/docsy/layouts/partials/feedback.html delete mode 100644 themes/docsy/layouts/partials/footer.html delete mode 100644 themes/docsy/layouts/partials/head-css.html delete mode 100644 themes/docsy/layouts/partials/head.html delete mode 100644 themes/docsy/layouts/partials/hooks/body-end.html delete mode 100644 themes/docsy/layouts/partials/hooks/head-end.html delete mode 100644 themes/docsy/layouts/partials/navbar-lang-selector.html delete mode 100644 themes/docsy/layouts/partials/navbar-version-selector.html delete mode 100644 themes/docsy/layouts/partials/navbar.html delete mode 100644 themes/docsy/layouts/partials/page-meta-lastmod.html delete mode 100644 themes/docsy/layouts/partials/page-meta-links.html delete mode 100644 themes/docsy/layouts/partials/pager.html delete mode 100644 themes/docsy/layouts/partials/scripts.html delete mode 100644 themes/docsy/layouts/partials/search-input.html delete mode 100644 themes/docsy/layouts/partials/section-index.html delete mode 100644 themes/docsy/layouts/partials/sidebar-tree.html delete mode 100644 themes/docsy/layouts/partials/sidebar.html delete mode 100644 themes/docsy/layouts/partials/toc.html delete mode 100644 themes/docsy/layouts/shortcodes/alert.html delete mode 100644 themes/docsy/layouts/shortcodes/blocks/cover.html delete mode 100644 themes/docsy/layouts/shortcodes/blocks/feature.html delete mode 100644 themes/docsy/layouts/shortcodes/blocks/lead.html delete mode 100644 themes/docsy/layouts/shortcodes/blocks/link-down.html delete mode 100644 themes/docsy/layouts/shortcodes/blocks/section.html delete mode 100644 themes/docsy/layouts/shortcodes/imgproc.html delete mode 100644 themes/docsy/layouts/shortcodes/pageinfo.html delete mode 100644 themes/docsy/layouts/shortcodes/readfile.md delete mode 100644 themes/docsy/layouts/shortcodes/swaggerui.html delete mode 100644 themes/docsy/layouts/swagger/baseof.html delete mode 100644 themes/docsy/layouts/swagger/list.html delete mode 100644 themes/docsy/layouts/swagger/single.html (limited to 'themes/docsy/layouts') diff --git a/themes/docsy/layouts/404.html b/themes/docsy/layouts/404.html deleted file mode 100644 index f648800b5..000000000 --- a/themes/docsy/layouts/404.html +++ /dev/null @@ -1,8 +0,0 @@ -{{ define "main"}} -
-
-

Not found

-

Oops! This page doesn't exist. Try going back to our home page.

-
-
-{{ end }} diff --git a/themes/docsy/layouts/_default/baseof.html b/themes/docsy/layouts/_default/baseof.html deleted file mode 100644 index 5767a951f..000000000 --- a/themes/docsy/layouts/_default/baseof.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - {{ partial "head.html" . }} - - -
- {{ partial "navbar.html" . }} -
-
-
- {{ block "main" . }}{{ end }} -
- {{ partial "footer.html" . }} -
- {{ partialCached "scripts.html" . }} - - \ No newline at end of file diff --git a/themes/docsy/layouts/_default/content.html b/themes/docsy/layouts/_default/content.html deleted file mode 100644 index b574ad29c..000000000 --- a/themes/docsy/layouts/_default/content.html +++ /dev/null @@ -1,14 +0,0 @@ -
-

{{ .Title }}

- {{ with .Params.description }}
{{ . | markdownify }}
{{ end }} - {{ .Content }} - {{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }} - {{ partial "feedback.html" .Site.Params.ui.feedback }} -
- {{ end }} - {{ if (.Site.DisqusShortname) }} -
- {{ partial "disqus-comment.html" . }} - {{ end }} -
{{ partial "page-meta-lastmod.html" . }}
-
diff --git a/themes/docsy/layouts/_default/list.html b/themes/docsy/layouts/_default/list.html deleted file mode 100644 index b2e137af6..000000000 --- a/themes/docsy/layouts/_default/list.html +++ /dev/null @@ -1,5 +0,0 @@ -{{ define "main" }} -{{ with .Content }} -{{ . }} -{{ end }} -{{ end }} \ No newline at end of file diff --git a/themes/docsy/layouts/_default/list.rss.xml b/themes/docsy/layouts/_default/list.rss.xml deleted file mode 100644 index b74bc3579..000000000 --- a/themes/docsy/layouts/_default/list.rss.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - {{ .Site.Title }} – {{ .Title }} - {{ .Permalink }} - Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} - Hugo -- gohugo.io{{ with .Site.LanguageCode }} - {{.}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} - {{.}}{{end}}{{ if not .Date.IsZero }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} - {{ with .OutputFormats.Get "RSS" }} - {{ printf "" .Permalink .MediaType | safeHTML }} - {{ end }} - {{ if not $.Section }} - {{ $sections := .Site.Params.rss_sections | default (slice "blog") }} - {{ .Scratch.Set "rss_pages" (first 50 (where $.Site.RegularPages "Type" "in" $sections )) }} - {{ else }} - {{ if $.Parent.IsHome }} - {{ .Scratch.Set "rss_pages" (first 50 (where $.Site.RegularPages "Type" $.Section )) }} - {{ else }} - {{ .Scratch.Set "rss_pages" (first 50 $.Pages) }} - {{ end }} - {{ end }} - {{ range (.Scratch.Get "rss_pages") }} - - {{ .Section | title }}: {{ .Title }} - {{ .Permalink }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} - {{ .Permalink }} - - {{ $img := (.Resources.ByType "image").GetMatch "*featured*" }} - {{ with $img }} - {{ $img := .Resize "640x" }} - {{ printf "]]>" $img.Permalink $img.Width $img.Height | safeHTML }} - {{ end }} - {{ .Content | html }} - - - {{ end }} - - diff --git a/themes/docsy/layouts/_default/search.html b/themes/docsy/layouts/_default/search.html deleted file mode 100644 index 395c398df..000000000 --- a/themes/docsy/layouts/_default/search.html +++ /dev/null @@ -1,22 +0,0 @@ -{{ define "main" }} -
-
-

{{ .Title }}

-{{ with .Site.Params.gcs_engine_id }} - - -{{ end }} -
-
- -{{ end }} \ No newline at end of file diff --git a/themes/docsy/layouts/_default/single.html b/themes/docsy/layouts/_default/single.html deleted file mode 100644 index b2e137af6..000000000 --- a/themes/docsy/layouts/_default/single.html +++ /dev/null @@ -1,5 +0,0 @@ -{{ define "main" }} -{{ with .Content }} -{{ . }} -{{ end }} -{{ end }} \ No newline at end of file diff --git a/themes/docsy/layouts/blog/baseof.html b/themes/docsy/layouts/blog/baseof.html deleted file mode 100644 index e679ff75f..000000000 --- a/themes/docsy/layouts/blog/baseof.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - {{ partial "head.html" . }} - {{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }} - - -
- {{ partial "navbar.html" . }} -
-
-
-
-
- {{ partial "sidebar.html" . }} -
-
- {{ partial "toc.html" . }} -
-
- {{ with .CurrentSection.OutputFormats.Get "rss" -}} - - RSS - - {{ end -}} - {{ block "main" . }}{{ end }} -
-
-
- {{ partial "footer.html" . }} -
- {{ partial "scripts.html" . }} - - \ No newline at end of file diff --git a/themes/docsy/layouts/blog/content.html b/themes/docsy/layouts/blog/content.html deleted file mode 100644 index 7193b191d..000000000 --- a/themes/docsy/layouts/blog/content.html +++ /dev/null @@ -1,16 +0,0 @@ -
-

{{ .Title }}

- {{ with .Params.description }}
{{ . | markdownify }}
{{ end }} - - {{ .Content }} - {{ if (.Site.DisqusShortname) }} -
- {{ partial "disqus-comment.html" . }} -
- {{ end }} - - {{ partial "pager.html" . }} -
diff --git a/themes/docsy/layouts/blog/list.html b/themes/docsy/layouts/blog/list.html deleted file mode 100644 index 1480cfcdd..000000000 --- a/themes/docsy/layouts/blog/list.html +++ /dev/null @@ -1,36 +0,0 @@ -{{ define "main" }} -{{ if .Parent.IsHome }} -{{ $.Scratch.Set "blog-pages" (where .Site.RegularPages "Section" .Section) }} -{{ else }} -{{$.Scratch.Set "blog-pages" .Pages }} -{{ end }} -{{ $pag := .Paginate (( $.Scratch.Get "blog-pages").GroupByDate "2006")}} -{{ $pageGroups := $pag.PageGroups}} -{{ if eq $pag.PageNumber 1 }} -{{ end }} -
-
- {{ range $pageGroups }} -

{{ T "post_posts_in" }} {{ .Key }}

-
    - {{ range .Pages }} -
  • -
    -
    {{ .LinkTitle }}
    -

    {{ .Date.Format ($.Param "time_format_blog") }} {{ T "ui_in"}} {{ .CurrentSection.LinkTitle }}

    - {{ partial "featured-image.html" (dict "p" . "w" 250 "h" 125 "class" "float-left mr-3 pt-1 d-none d-md-block") }} -

    {{ .Plain | safeHTML | truncate 250 }}

    -

    {{ T "ui_read_more"}}

    -
    -
  • - {{ end }} -
- {{ end }} -
-
-
-
- {{ template "_internal/pagination.html" . }} -
-
-{{ end }} \ No newline at end of file diff --git a/themes/docsy/layouts/blog/single.html b/themes/docsy/layouts/blog/single.html deleted file mode 100644 index 00cb3ab91..000000000 --- a/themes/docsy/layouts/blog/single.html +++ /dev/null @@ -1,3 +0,0 @@ -{{ define "main" }} -{{ .Render "content" }} -{{ end }} \ No newline at end of file diff --git a/themes/docsy/layouts/community/list.html b/themes/docsy/layouts/community/list.html deleted file mode 100644 index d66a50ed6..000000000 --- a/themes/docsy/layouts/community/list.html +++ /dev/null @@ -1,19 +0,0 @@ -{{ define "main" }} - - -
-
- -

Join the {{ .Site.Title }} community

- -

{{ .Site.Title }} is an open source project that anyone in the community can use, improve, and enjoy. We'd love you to join us! Here's a few ways to find out what's happening and get involved. - -

-
-{{ partial "community_links.html" . }} - -
-{{ .Content }} -
- -{{ end }} diff --git a/themes/docsy/layouts/docs/baseof.html b/themes/docsy/layouts/docs/baseof.html deleted file mode 100644 index 108ea7a41..000000000 --- a/themes/docsy/layouts/docs/baseof.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - {{ partial "head.html" . }} - {{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }} - - -
- {{ partial "navbar.html" . }} -
-
-
-
-
- {{ partial "sidebar.html" . }} -
-
- {{ partial "toc.html" . }} -
-
- {{ if not .Site.Params.ui.breadcrumb_disable }}{{ partial "breadcrumb.html" . }}{{ end }} - {{ block "main" . }}{{ end }} -
-
-
- {{ partial "footer.html" . }} -
- {{ partial "scripts.html" . }} - - \ No newline at end of file diff --git a/themes/docsy/layouts/docs/list.html b/themes/docsy/layouts/docs/list.html deleted file mode 100644 index 712247801..000000000 --- a/themes/docsy/layouts/docs/list.html +++ /dev/null @@ -1,17 +0,0 @@ -{{ define "main" }} -
-

{{ .Title }}

- {{ with .Params.description }}
{{ . | markdownify }}
{{ end }} - {{ .Content }} - {{ partial "section-index.html" . }} - {{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }} - {{ partial "feedback.html" .Site.Params.ui.feedback }} -
- {{ end }} - {{ if (.Site.DisqusShortname) }} -
- {{ partial "disqus-comment.html" . }} - {{ end }} -
{{ partial "page-meta-lastmod.html" . }}
-
-{{ end }} diff --git a/themes/docsy/layouts/docs/single.html b/themes/docsy/layouts/docs/single.html deleted file mode 100644 index 00cb3ab91..000000000 --- a/themes/docsy/layouts/docs/single.html +++ /dev/null @@ -1,3 +0,0 @@ -{{ define "main" }} -{{ .Render "content" }} -{{ end }} \ No newline at end of file diff --git a/themes/docsy/layouts/home.html b/themes/docsy/layouts/home.html deleted file mode 100644 index b2e137af6..000000000 --- a/themes/docsy/layouts/home.html +++ /dev/null @@ -1,5 +0,0 @@ -{{ define "main" }} -{{ with .Content }} -{{ . }} -{{ end }} -{{ end }} \ No newline at end of file diff --git a/themes/docsy/layouts/partials/breadcrumb.html b/themes/docsy/layouts/partials/breadcrumb.html deleted file mode 100644 index 0403f6a56..000000000 --- a/themes/docsy/layouts/partials/breadcrumb.html +++ /dev/null @@ -1,18 +0,0 @@ - -{{ define "breadcrumbnav" }} -{{ if .p1.Parent }} -{{ if not .p1.Parent.IsHome }} -{{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2 ) }} -{{ end }} -{{ else if not .p1.IsHome }} -{{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }} -{{ end }} -{{ $isActive := eq .p1 .p2 }} - -{{ end }} \ No newline at end of file diff --git a/themes/docsy/layouts/partials/community_links.html b/themes/docsy/layouts/partials/community_links.html deleted file mode 100644 index 48d64584a..000000000 --- a/themes/docsy/layouts/partials/community_links.html +++ /dev/null @@ -1,29 +0,0 @@ -{{ $links := .Site.Params.links }} - - - -{{ define "community-links-list" }} - -{{ end }} diff --git a/themes/docsy/layouts/partials/disqus-comment.html b/themes/docsy/layouts/partials/disqus-comment.html deleted file mode 100644 index c3ae3f91b..000000000 --- a/themes/docsy/layouts/partials/disqus-comment.html +++ /dev/null @@ -1,23 +0,0 @@ -
- -
- - -
diff --git a/themes/docsy/layouts/partials/favicons.html b/themes/docsy/layouts/partials/favicons.html deleted file mode 100644 index 43897755e..000000000 --- a/themes/docsy/layouts/partials/favicons.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/themes/docsy/layouts/partials/featured-image.html b/themes/docsy/layouts/partials/featured-image.html deleted file mode 100644 index 5756999db..000000000 --- a/themes/docsy/layouts/partials/featured-image.html +++ /dev/null @@ -1,14 +0,0 @@ -{{ $w := .w | default 480 }} -{{ $h := .h | default 180 }} -{{ $p := .p }} -{{ $class := .class | default "ml-3" }} -{{ $image := ($p.Resources.ByType "image").GetMatch "**featured*" }} -{{ with $image }} -{{ $image := .Fill (printf "%dx%d" $w $h ) }} -
-Featured Image for {{ $p.Title }} -{{ with $image.Params.byline }} -
{{ . | html }}
-{{ end }} -
-{{ end }} \ No newline at end of file diff --git a/themes/docsy/layouts/partials/feedback.html b/themes/docsy/layouts/partials/feedback.html deleted file mode 100644 index 097832190..000000000 --- a/themes/docsy/layouts/partials/feedback.html +++ /dev/null @@ -1,57 +0,0 @@ - -

Feedback

-

Was this page helpful?

- - -

- {{ .yes | safeHTML }} -

-

- {{ .no | safeHTML }} -

- diff --git a/themes/docsy/layouts/partials/footer.html b/themes/docsy/layouts/partials/footer.html deleted file mode 100644 index dfb1f64d7..000000000 --- a/themes/docsy/layouts/partials/footer.html +++ /dev/null @@ -1,39 +0,0 @@ -{{ $links := .Site.Params.links }} - -{{ define "footer-links-block" }} - -{{ end }} diff --git a/themes/docsy/layouts/partials/head-css.html b/themes/docsy/layouts/partials/head-css.html deleted file mode 100644 index 603da3861..000000000 --- a/themes/docsy/layouts/partials/head-css.html +++ /dev/null @@ -1,11 +0,0 @@ - -{{ $scssMain := "scss/main.scss"}} -{{ if .Site.IsServer }} -{{/* Note the missing postCSS. This makes it snappier to develop in Chrome, but makes it look sub-optimal in other browsers. */}} -{{ $css := resources.Get $scssMain | toCSS (dict "enableSourceMap" true) }} - -{{ else }} -{{ $css := resources.Get $scssMain | toCSS (dict "enableSourceMap" false) | postCSS | minify | fingerprint }} - - -{{ end }} \ No newline at end of file diff --git a/themes/docsy/layouts/partials/head.html b/themes/docsy/layouts/partials/head.html deleted file mode 100644 index 303eb8b8f..000000000 --- a/themes/docsy/layouts/partials/head.html +++ /dev/null @@ -1,26 +0,0 @@ - - -{{ hugo.Generator }} -{{ if eq (getenv "HUGO_ENV") "production" }} - -{{ else }} - -{{ end }} -{{ range .AlternativeOutputFormats -}} - -{{ end -}} -{{ partialCached "favicons.html" . }} -{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }} -{{- template "_internal/opengraph.html" . -}} -{{- template "_internal/google_news.html" . -}} -{{- template "_internal/schema.html" . -}} -{{- template "_internal/twitter_cards.html" . -}} -{{ if eq (getenv "HUGO_ENV") "production" }} -{{ template "_internal/google_analytics_async.html" . }} -{{ end }} -{{ partialCached "head-css.html" . "asdf" }} - -{{ partial "hooks/head-end.html" . }} diff --git a/themes/docsy/layouts/partials/hooks/body-end.html b/themes/docsy/layouts/partials/hooks/body-end.html deleted file mode 100644 index 3e09f7aa1..000000000 --- a/themes/docsy/layouts/partials/hooks/body-end.html +++ /dev/null @@ -1,3 +0,0 @@ -{{ with .Site.Params.algolia_docsearch }} - -{{ end }} \ No newline at end of file diff --git a/themes/docsy/layouts/partials/hooks/head-end.html b/themes/docsy/layouts/partials/hooks/head-end.html deleted file mode 100644 index e25d67d4b..000000000 --- a/themes/docsy/layouts/partials/hooks/head-end.html +++ /dev/null @@ -1,3 +0,0 @@ -{{ with .Site.Params.algolia_docsearch }} - -{{ end }} \ No newline at end of file diff --git a/themes/docsy/layouts/partials/navbar-lang-selector.html b/themes/docsy/layouts/partials/navbar-lang-selector.html deleted file mode 100644 index dc592947f..000000000 --- a/themes/docsy/layouts/partials/navbar-lang-selector.html +++ /dev/null @@ -1,10 +0,0 @@ -{{/* Link directly to documentation etc., if possible. */}} -{{ $langPage := cond (gt (len .Translations) 0) . .Site.Home }} - - \ No newline at end of file diff --git a/themes/docsy/layouts/partials/navbar-version-selector.html b/themes/docsy/layouts/partials/navbar-version-selector.html deleted file mode 100644 index 6ac1ef63e..000000000 --- a/themes/docsy/layouts/partials/navbar-version-selector.html +++ /dev/null @@ -1,8 +0,0 @@ - - diff --git a/themes/docsy/layouts/partials/navbar.html b/themes/docsy/layouts/partials/navbar.html deleted file mode 100644 index 284283b3c..000000000 --- a/themes/docsy/layouts/partials/navbar.html +++ /dev/null @@ -1,33 +0,0 @@ -{{ $cover := .HasShortcode "blocks/cover" }} - diff --git a/themes/docsy/layouts/partials/page-meta-lastmod.html b/themes/docsy/layouts/partials/page-meta-lastmod.html deleted file mode 100644 index b24e62d1f..000000000 --- a/themes/docsy/layouts/partials/page-meta-lastmod.html +++ /dev/null @@ -1 +0,0 @@ -{{ T "post_last_mod"}} {{ .Lastmod.Format .Site.Params.time_format_default }}{{ with .GitInfo }}: {{ .Subject }} ({{ .AbbreviatedHash }}){{end }} diff --git a/themes/docsy/layouts/partials/page-meta-links.html b/themes/docsy/layouts/partials/page-meta-links.html deleted file mode 100644 index 8e2650f81..000000000 --- a/themes/docsy/layouts/partials/page-meta-links.html +++ /dev/null @@ -1,24 +0,0 @@ -{{ if .Path }} -{{ $gh_repo := ($.Param "github_repo") }} -{{ $gh_subdir := ($.Param "github_subdir") }} -{{ $gh_project_repo := ($.Param "github_project_repo") }} -{{ if $gh_repo }} -
-{{ $editURL := printf "%s/edit/master/content/%s" $gh_repo .Path }} -{{ if and ($gh_subdir) (.Site.Language.Lang) }} -{{ $editURL = printf "%s/edit/master/%s/content/%s/%s" $gh_repo $gh_subdir ($.Site.Language.Lang) $.Path }} -{{ else if .Site.Language.Lang }} -{{ $editURL = printf "%s/edit/master/content/%s/%s" $gh_repo ($.Site.Language.Lang) .Path }} -{{ else if $gh_subdir }} -{{ $editURL = printf "%s/edit/master/%s/content/%s" $gh_repo $gh_subdir $.Path }} -{{ end }} -{{ $issuesURL := printf "%s/issues/new?title=%s" $gh_repo (htmlEscape $.Title )}} - {{ T "post_edit_this" }} - {{ T "post_create_issue" }} -{{ if $gh_project_repo }} -{{ $project_issueURL := printf "%s/issues/new" $gh_project_repo }} - {{ T "post_create_project_issue" }} -{{ end }} -
-{{ end }} -{{ end }} diff --git a/themes/docsy/layouts/partials/pager.html b/themes/docsy/layouts/partials/pager.html deleted file mode 100644 index fd547c5dc..000000000 --- a/themes/docsy/layouts/partials/pager.html +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/themes/docsy/layouts/partials/scripts.html b/themes/docsy/layouts/partials/scripts.html deleted file mode 100644 index cc8dc071e..000000000 --- a/themes/docsy/layouts/partials/scripts.html +++ /dev/null @@ -1,14 +0,0 @@ - - - -{{ $jsBase := resources.Get "js/base.js" }} -{{ $jsAnchor := resources.Get "js/anchor.js" }} -{{ $jsSearch := resources.Get "js/search.js" | resources.ExecuteAsTemplate "js/search.js" .Site.Home }} -{{ $js := (slice $jsBase $jsAnchor $jsSearch) | resources.Concat "js/main.js" }} -{{ if .Site.IsServer }} - -{{ else }} -{{ $js := $js | minify | fingerprint }} - -{{ end }} -{{ partial "hooks/body-end.html" . }} diff --git a/themes/docsy/layouts/partials/search-input.html b/themes/docsy/layouts/partials/search-input.html deleted file mode 100644 index ee82a6988..000000000 --- a/themes/docsy/layouts/partials/search-input.html +++ /dev/null @@ -1,3 +0,0 @@ -{{ with or .Site.Params.gcs_engine_id .Site.Params.algolia_docsearch }} - -{{ end }} \ No newline at end of file diff --git a/themes/docsy/layouts/partials/section-index.html b/themes/docsy/layouts/partials/section-index.html deleted file mode 100644 index be3cbcd9c..000000000 --- a/themes/docsy/layouts/partials/section-index.html +++ /dev/null @@ -1,29 +0,0 @@ -
- {{ $pages := (where .Site.Pages "Section" .Section).ByWeight }} - {{ $parent := .Page }} - {{ if $parent.Params.no_list }} - {{/* If no_list is true we don't show a list of subpages */}} - {{ else if $parent.Params.simple_list }} - {{/* If simple_list is true we show a bulleted list of subpages */}} - - {{ else }} - {{/* Otherwise we show a nice formatted list of subpages with page descriptions */}} -
- {{ range $pages }} - {{ if eq .Parent $parent }} -
-
- {{- .Title -}} -
-

{{ .Description | markdownify }}

-
- {{ end }} - {{ end }} - {{ end }} -
diff --git a/themes/docsy/layouts/partials/sidebar-tree.html b/themes/docsy/layouts/partials/sidebar-tree.html deleted file mode 100644 index a3eeb2a45..000000000 --- a/themes/docsy/layouts/partials/sidebar-tree.html +++ /dev/null @@ -1,47 +0,0 @@ -{{/* We cache this partial for bigger sites and set the active class client side. */}} -{{ $shouldDelayActive := ge (len .Site.Pages) 2000 }} -
- {{ if not .Site.Params.ui.sidebar_search_disable }} - - {{ end }} - -
-{{ define "section-tree-nav-section" }} -{{ $s := .section }} -{{ $p := .page }} -{{ $shouldDelayActive := .delayActive }} -{{ $active := eq $p.CurrentSection $s }} -{{ $show := or (and (not $p.Site.Params.ui.sidebar_menu_compact) ($p.IsAncestor $s)) ($p.IsDescendant $s) }} -{{ $sid := $s.RelPermalink | anchorize }} - -{{ end }} diff --git a/themes/docsy/layouts/partials/sidebar.html b/themes/docsy/layouts/partials/sidebar.html deleted file mode 100644 index bf568e210..000000000 --- a/themes/docsy/layouts/partials/sidebar.html +++ /dev/null @@ -1,14 +0,0 @@ -{{/* The "active" toggle here may delay rendering, so we only cache this side bar menu for bigger sites. */}} -{{ $shouldCache := ge (len .Site.Pages) 2000 }} -{{ if $shouldCache }} -{{ $mid := printf "m-%s" (.RelPermalink | anchorize) }} - -{{ partialCached "sidebar-tree.html" . .CurrentSection.RelPermalink }} -{{ else }} -{{ partial "sidebar-tree.html" . }} -{{ end }} diff --git a/themes/docsy/layouts/partials/toc.html b/themes/docsy/layouts/partials/toc.html deleted file mode 100644 index f155f8b13..000000000 --- a/themes/docsy/layouts/partials/toc.html +++ /dev/null @@ -1,8 +0,0 @@ -{{ partial "page-meta-links.html" . }} -{{ if not .Params.notoc }} -{{ with .TableOfContents }} -{{ if ge (len .) 200 }} -{{ . }} -{{ end }} -{{ end }} -{{ end }} \ No newline at end of file diff --git a/themes/docsy/layouts/shortcodes/alert.html b/themes/docsy/layouts/shortcodes/alert.html deleted file mode 100644 index ff3b0b342..000000000 --- a/themes/docsy/layouts/shortcodes/alert.html +++ /dev/null @@ -1,6 +0,0 @@ -{{ $_hugo_config := `{ "version": 1 }` }} -{{ $color := .Get "color" | default "primary" }} - diff --git a/themes/docsy/layouts/shortcodes/blocks/cover.html b/themes/docsy/layouts/shortcodes/blocks/cover.html deleted file mode 100644 index 5e14d6dca..000000000 --- a/themes/docsy/layouts/shortcodes/blocks/cover.html +++ /dev/null @@ -1,40 +0,0 @@ -{{ $_hugo_config := `{ "version": 1 }` }} -{{ $blockID := printf "td-cover-block-%d" .Ordinal }} -{{ $promo_image := (.Page.Resources.ByType "image").GetMatch "**background*" }} -{{ $logo_image := (.Page.Resources.ByType "image").GetMatch "**logo*" }} -{{ $col_id := .Get "color" | default "dark" }} -{{ $image_anchor := .Get "image_anchor" | default "smart" }} -{{ $logo_anchor := .Get "logo_anchor" | default "smart" }} -{{/* Height can be one of: auto, min, med, max, full. */}} -{{ $height := .Get "height" | default "max" }} -{{ with $promo_image }} -{{ $promo_image_big := (.Fill (printf "1920x1080 %s" $image_anchor)) }} -{{ $promo_image_small := (.Fill (printf "960x540 %s" $image_anchor)) }} - - - -{{ end }} -
-
-
-
-
- {{ with .Get "title" }}

{{ $title := . }}{{ with $logo_image }}{{ $logo_image_resized := (.Fit (printf "70x70 %s" $logo_anchor)) }}{{ end }}{{ $title | html }}

{{ end }} - {{ with .Get "subtitle" }}

{{ . | html }}

{{ end }} -
- {{ .Inner | markdownify}} -
-
-
-
-
-
diff --git a/themes/docsy/layouts/shortcodes/blocks/feature.html b/themes/docsy/layouts/shortcodes/blocks/feature.html deleted file mode 100644 index d734dfb66..000000000 --- a/themes/docsy/layouts/shortcodes/blocks/feature.html +++ /dev/null @@ -1,10 +0,0 @@ -{{ $icon := .Get "icon" | default "fa-lightbulb" }} -{{ $url_text := .Get "url_text" }} -
-
- -
-

{{ .Get "title" | markdownify }}

-

{{ .Inner }}

- {{ with .Get "url" }}

{{ with $url_text }}{{ $url_text }}{{ else }}{{ T "ui_read_more" }}{{ end }} …

{{ end }} -
diff --git a/themes/docsy/layouts/shortcodes/blocks/lead.html b/themes/docsy/layouts/shortcodes/blocks/lead.html deleted file mode 100644 index f57ebb155..000000000 --- a/themes/docsy/layouts/shortcodes/blocks/lead.html +++ /dev/null @@ -1,12 +0,0 @@ -{{ $_hugo_config := `{ "version": 1 }` }} -{{ $col_id := .Get "color" | default .Ordinal }} -{{ $height := .Get "height" | default "auto" }} -{{/* Height can be one of: auto, min, med, max, full. */}} - -
-
- - {{ .Inner | markdownify }} - -
-
diff --git a/themes/docsy/layouts/shortcodes/blocks/link-down.html b/themes/docsy/layouts/shortcodes/blocks/link-down.html deleted file mode 100644 index 639586633..000000000 --- a/themes/docsy/layouts/shortcodes/blocks/link-down.html +++ /dev/null @@ -1,7 +0,0 @@ -{{ with .Parent }} -{{ $id := $.Get "id" | default (printf "td-block-%d" ( add .Ordinal 1 )) }} -{{ $color := $.Get "color" | default "blue" }} - -{{ else }} -{{ errorf "The link-down shortcode is supposed to be nested inside a shortcode"}} -{{ end }} \ No newline at end of file diff --git a/themes/docsy/layouts/shortcodes/blocks/section.html b/themes/docsy/layouts/shortcodes/blocks/section.html deleted file mode 100644 index d5897f648..000000000 --- a/themes/docsy/layouts/shortcodes/blocks/section.html +++ /dev/null @@ -1,12 +0,0 @@ -{{ $_hugo_config := `{ "version": 1 }` }} -{{ $col_id := .Get "color" | default .Ordinal }} -{{ $height := .Get "height" | default "auto" }} -{{ $type := .Get "type" | default "" }} - -
-
-
- {{ .Inner | markdownify}} -
-
-
diff --git a/themes/docsy/layouts/shortcodes/imgproc.html b/themes/docsy/layouts/shortcodes/imgproc.html deleted file mode 100644 index bb80a8502..000000000 --- a/themes/docsy/layouts/shortcodes/imgproc.html +++ /dev/null @@ -1,21 +0,0 @@ -{{ $original := .Page.Resources.GetMatch (printf "**%s*" (.Get 0)) }} -{{ $command := .Get 1 }} -{{ $options := .Get 2 }} -{{ if eq $command "Fit"}} -{{ .Scratch.Set "image" ($original.Fit $options) }} -{{ else if eq $command "Resize"}} -{{ .Scratch.Set "image" ($original.Resize $options) }} -{{ else if eq $command "Fill"}} -{{ .Scratch.Set "image" ($original.Fill $options) }} -{{ else }} -{{ errorf "Invalid image processing command: Must be one of Fit, Fill or Resize."}} -{{ end }} -{{ $image := .Scratch.Get "image" }} -
- - {{ with .Inner }} -
-

{{ . }}{{ with $image.Params.byline }}
{{ . | html }}
{{ end }}

-
- {{ end }} -
\ No newline at end of file diff --git a/themes/docsy/layouts/shortcodes/pageinfo.html b/themes/docsy/layouts/shortcodes/pageinfo.html deleted file mode 100644 index 303f8c5fd..000000000 --- a/themes/docsy/layouts/shortcodes/pageinfo.html +++ /dev/null @@ -1,5 +0,0 @@ -{{ $_hugo_config := `{ "version": 1 }` }} -{{ $color := .Get "color" | default "primary" }} -
-{{ .Inner }} -
diff --git a/themes/docsy/layouts/shortcodes/readfile.md b/themes/docsy/layouts/shortcodes/readfile.md deleted file mode 100644 index 117c7e870..000000000 --- a/themes/docsy/layouts/shortcodes/readfile.md +++ /dev/null @@ -1,8 +0,0 @@ -{{$file := .Get "file"}} -{{- if eq (.Get "markdown") "true" -}} -{{- $file | readFile | markdownify -}} -{{- else if (.Get "highlight") -}} -{{- highlight ($file | readFile) (.Get "highlight") "" -}} -{{- else -}} -{{ $file | readFile | safeHTML }} -{{- end -}} diff --git a/themes/docsy/layouts/shortcodes/swaggerui.html b/themes/docsy/layouts/shortcodes/swaggerui.html deleted file mode 100644 index f0d59a158..000000000 --- a/themes/docsy/layouts/shortcodes/swaggerui.html +++ /dev/null @@ -1,16 +0,0 @@ -{{ $original := .Get "src" }} -
- \ No newline at end of file diff --git a/themes/docsy/layouts/swagger/baseof.html b/themes/docsy/layouts/swagger/baseof.html deleted file mode 100644 index 160ef0ca1..000000000 --- a/themes/docsy/layouts/swagger/baseof.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - {{ partial "head.html" . }} - {{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }} - - - -
- {{ partial "navbar.html" . }} -
-
-
-
-
- {{ partial "sidebar.html" . }} -
-
- {{ partial "toc.html" . }} -
-
- {{ if not .Site.Params.ui.breadcrumb_disable }}{{ partial "breadcrumb.html" . }}{{ end }} - - - {{ block "main" . }}{{ end }} -
-
-
- {{ partial "footer.html" . }} -
- {{ partial "scripts.html" . }} - - \ No newline at end of file diff --git a/themes/docsy/layouts/swagger/list.html b/themes/docsy/layouts/swagger/list.html deleted file mode 100644 index 712247801..000000000 --- a/themes/docsy/layouts/swagger/list.html +++ /dev/null @@ -1,17 +0,0 @@ -{{ define "main" }} -
-

{{ .Title }}

- {{ with .Params.description }}
{{ . | markdownify }}
{{ end }} - {{ .Content }} - {{ partial "section-index.html" . }} - {{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }} - {{ partial "feedback.html" .Site.Params.ui.feedback }} -
- {{ end }} - {{ if (.Site.DisqusShortname) }} -
- {{ partial "disqus-comment.html" . }} - {{ end }} -
{{ partial "page-meta-lastmod.html" . }}
-
-{{ end }} diff --git a/themes/docsy/layouts/swagger/single.html b/themes/docsy/layouts/swagger/single.html deleted file mode 100644 index 00cb3ab91..000000000 --- a/themes/docsy/layouts/swagger/single.html +++ /dev/null @@ -1,3 +0,0 @@ -{{ define "main" }} -{{ .Render "content" }} -{{ end }} \ No newline at end of file -- cgit v1.2.3