diff --git a/website/assets/_custom.scss b/website/assets/_custom.scss
new file mode 100644
index 0000000..3859722
--- /dev/null
+++ b/website/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/website/config.toml b/website/config.toml
index 23c9dd1..8702d75 100644
--- a/website/config.toml
+++ b/website/config.toml
@@ -5,17 +5,8 @@ theme = "hugo-book"
[[menu.before]]
name = "⬅️ Back to top"
- url = "https://uapi-group.org/"
+ url = "/.."
weight = 1
-[[menu.before]]
- name = "⸻"
- weight = 2
-
-# Uncomment to show second separator after more content files were added
-#
-#[[menu.after]]
-# name = "⸻"
-# weight = 10
[[menu.after]]
name = "Collaborate on Github"
@@ -29,8 +20,9 @@ theme = "hugo-book"
BookPortableLinks = true
BookRepo = 'https://github.com/uapi-group/kernel-features'
BookCommitPath = 'commit'
- BookEditPath = 'edit/main'
+ BookEditLink = '{{ .Site.Params.BookRepo }}/edit/main/{{ .Path }}'
BookIndexPage = 'README.md'
+ BookTheme = 'auto'
[modules]
[[module.mounts]]
diff --git a/website/layouts/404.html b/website/layouts/404.html
deleted file mode 100644
index 60dcdc6..0000000
--- a/website/layouts/404.html
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
-
- {{ partial "docs/html-head" . }}
- {{ partial "docs/inject/head" . }}
-
-
-
-
-
-
-
-
404
-
Page Not Found
-
-
-
-
- {{ partial "docs/inject/body" . }}
- {{ template "_internal/google_analytics.html" . }}
-
-
-
diff --git a/website/layouts/partials/docs/footer.html b/website/layouts/partials/docs/footer.html
deleted file mode 100644
index defbd70..0000000
--- a/website/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 -}}
-
-
- {{ $date }}
-
-
-{{ end }}
-
-{{ if and .File .Site.Params.BookRepo .Site.Params.BookEditPath }}
-
-{{ end }}
-
diff --git a/website/layouts/partials/docs/html-head.html b/website/layouts/partials/docs/html-head.html
deleted file mode 100644
index b24730d..0000000
--- a/website/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/website/layouts/partials/docs/links/edit.html b/website/layouts/partials/docs/links/edit.html
new file mode 100644
index 0000000..02e8501
--- /dev/null
+++ b/website/layouts/partials/docs/links/edit.html
@@ -0,0 +1,5 @@
+{{- return (partial "docs/text/template" (dict "Template" .Site.Params.BookEditLink "Context" (dict
+"Site" .Site
+"Page" .Page
+"Path" (strings.TrimPrefix hugo.WorkingDir ( replace .Page.File.Path "_index.md" .Site.Params.BookIndexPage))
+)) | urls.JoinPath) -}}
diff --git a/website/layouts/partials/docs/menu-hugo.html b/website/layouts/partials/docs/menu-hugo.html
deleted file mode 100644
index 168d24c..0000000
--- a/website/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/website/themes/hugo-book b/website/themes/hugo-book
index 9e9c7d3..b7f9c8c 160000
--- a/website/themes/hugo-book
+++ b/website/themes/hugo-book
@@ -1 +1 @@
-Subproject commit 9e9c7d34038a830d22397bbec08e7ec64eb0a0d7
+Subproject commit b7f9c8cb0f51523f316777a27abba64b10e247f5