Skip to content

Commit 0df7593

Browse files
authored
Merge pull request #44 from anthraxx/feat/hugo-book-upgrade
hugo book upgrade and improvements
2 parents 12ca3c8 + 3066a53 commit 0df7593

File tree

8 files changed

+14
-147
lines changed

8 files changed

+14
-147
lines changed

website/assets/_custom.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
nav>ul:last-of-type>li:last-child::before {
2+
content: "";
3+
display: inline-block;
4+
margin: 0.5em 0;
5+
}

website/config.toml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,8 @@ theme = "hugo-book"
55

66
[[menu.before]]
77
name = "⬅️ Back to top"
8-
url = "https://uapi-group.org/"
8+
url = "/.."
99
weight = 1
10-
[[menu.before]]
11-
name = ""
12-
weight = 2
13-
14-
# Uncomment to show second separator after more content files were added
15-
#
16-
#[[menu.after]]
17-
# name = "⸻"
18-
# weight = 10
1910

2011
[[menu.after]]
2112
name = "Collaborate on Github"
@@ -29,8 +20,9 @@ theme = "hugo-book"
2920
BookPortableLinks = true
3021
BookRepo = 'https://github.com/uapi-group/kernel-features'
3122
BookCommitPath = 'commit'
32-
BookEditPath = 'edit/main'
23+
BookEditLink = '{{ .Site.Params.BookRepo }}/edit/main/{{ .Path }}'
3324
BookIndexPage = 'README.md'
25+
BookTheme = 'auto'
3426

3527
[modules]
3628
[[module.mounts]]

website/layouts/404.html

Lines changed: 0 additions & 35 deletions
This file was deleted.

website/layouts/partials/docs/footer.html

Lines changed: 0 additions & 25 deletions
This file was deleted.

website/layouts/partials/docs/html-head.html

Lines changed: 0 additions & 43 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{{- return (partial "docs/text/template" (dict "Template" .Site.Params.BookEditLink "Context" (dict
2+
"Site" .Site
3+
"Page" .Page
4+
"Path" (strings.TrimPrefix hugo.WorkingDir ( replace .Page.File.Path "_index.md" .Site.Params.BookIndexPage))
5+
)) | urls.JoinPath) -}}

website/layouts/partials/docs/menu-hugo.html

Lines changed: 0 additions & 32 deletions
This file was deleted.

website/themes/hugo-book

Submodule hugo-book updated 307 files

0 commit comments

Comments
 (0)