diff --git a/assets/_custom.scss b/assets/_custom.scss new file mode 100644 index 0000000..3859722 --- /dev/null +++ b/assets/_custom.scss @@ -0,0 +1,5 @@ +nav>ul:last-of-type>li:last-child::before { + content: "⸻"; + display: inline-block; + margin: 0.5em 0; +} diff --git a/config.toml b/config.toml index 8f128a3..6abc7d2 100644 --- a/config.toml +++ b/config.toml @@ -5,20 +5,17 @@ theme = "hugo-book" [[menu.after]] name = "Specifications" - url = "https://uapi-group.org/specifications" + url = "/specifications" weight = 10 [[menu.after]] name = "General Documentation" - url = "https://uapi-group.org/docs" + url = "/docs" weight = 11 [[menu.after]] name = "Kernel Feature Ideas" - url = "https://uapi-group.org/kernel-features" + url = "/kernel-features" weight = 12 -[[menu.after]] - name = "⸻" - weight = 20 [[menu.after]] name = "Collaborate on Github" url = "https://github.com/uapi-group" @@ -29,3 +26,6 @@ theme = "hugo-book" [params] BookSearch = false + BookRepo = 'https://github.com/uapi-group/uapi-group.github.io' + BookEditLink = '{{ .Site.Params.BookRepo }}/edit/main/{{ .Path }}' + BookTheme = 'auto' diff --git a/layouts/404.html b/layouts/404.html deleted file mode 100644 index 60dcdc6..0000000 --- a/layouts/404.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - {{ partial "docs/html-head" . }} - {{ partial "docs/inject/head" . }} - - - - - -
-
-

404

-

Page Not Found

-

- {{ .Site.Title }} -

-
-
- - {{ partial "docs/inject/body" . }} - {{ template "_internal/google_analytics.html" . }} - - - diff --git a/layouts/partials/docs/footer.html b/layouts/partials/docs/footer.html deleted file mode 100644 index c97b67f..0000000 --- a/layouts/partials/docs/footer.html +++ /dev/null @@ -1,25 +0,0 @@ -
-{{ if hugo.IsMultilingual }} - {{ partial "docs/languages" . }} -{{ end }} - -{{ if and .GitInfo .Site.Params.BookRepo }} -
- {{- $date := partial "docs/date" (dict "Date" .GitInfo.AuthorDate.Local "Format" .Site.Params.BookDateFormat) -}} - {{- $commitPath := default "commit" .Site.Params.BookCommitPath -}} - - Calendar - {{ $date }} - -
-{{ end }} - -{{ if and .File .Site.Params.BookRepo .Site.Params.BookEditPath }} -
- - Edit - {{ i18n "Edit this page" }} - -
-{{ end }} -
diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html deleted file mode 100644 index b24730d..0000000 --- a/layouts/partials/docs/html-head.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - -{{- template "_internal/opengraph.html" . -}} - -{{ partial "docs/title" . }} | {{ .Site.Title -}} - -{{- $manifest := resources.Get "manifest.json" | resources.ExecuteAsTemplate "manifest.json" . }} - - - -{{- range .Translations }} - -{{ end -}} - - -{{- $styles := resources.Get "book.scss" | resources.ExecuteAsTemplate "book.scss" . | css.Sass | resources.Minify | resources.Fingerprint }} - - -{{- if default true .Site.Params.BookSearch }} -{{- $searchJSFile := printf "%s.search.js" .Language.Lang }} -{{- $searchJS := resources.Get "search.js" | resources.ExecuteAsTemplate $searchJSFile . | resources.Minify | resources.Fingerprint }} - -{{ end -}} - -{{- if .Site.Params.BookServiceWorker }} -{{- $swJS := resources.Get "sw-register.js" | resources.ExecuteAsTemplate "sw.js" . | resources.Minify | resources.Fingerprint }} - -{{ end -}} - -{{- template "_internal/google_analytics.html" . -}} - - -{{- with .OutputFormats.Get "rss" -}} - {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} -{{ end -}} - -{{ "" | safeHTML }} diff --git a/layouts/partials/docs/menu-hugo.html b/layouts/partials/docs/menu-hugo.html deleted file mode 100644 index 168d24c..0000000 --- a/layouts/partials/docs/menu-hugo.html +++ /dev/null @@ -1,32 +0,0 @@ - -{{ if . }} - {{ template "book-menu-hugo" . }} -{{ end }} - -{{ define "book-menu-hugo" }} - -{{ end }} diff --git a/static/uapi-group.png b/static/uapi-group.png index 46d341f..fd63fbe 100644 Binary files a/static/uapi-group.png and b/static/uapi-group.png differ diff --git a/themes/hugo-book b/themes/hugo-book index 9e9c7d3..b7f9c8c 160000 --- a/themes/hugo-book +++ b/themes/hugo-book @@ -1 +1 @@ -Subproject commit 9e9c7d34038a830d22397bbec08e7ec64eb0a0d7 +Subproject commit b7f9c8cb0f51523f316777a27abba64b10e247f5