diff --git a/docs/assets/scss/extend.scss b/docs/assets/scss/extend.scss new file mode 100644 index 00000000..343adf16 --- /dev/null +++ b/docs/assets/scss/extend.scss @@ -0,0 +1,31 @@ +:root { + --gap: 1rem; +} + +body { + display: grid; + grid-template-columns: [sidebar] 1fr [content] 3fr; + grid-gap: var(--gap); + overflow: hidden; + padding: 0; + margin: 0; + + max-width: unset; + width: 100vw; + height: 100vh; +} + +.book.sidebar { + padding: 0 var(--gap); + overflow-y: auto; + resize: horizontal; +} + +.book.content { + padding: var(--gap); + overflow-y: auto; +} + +article h1 { + font-size: 2rem; +} diff --git a/docs/layouts/_default/baseof.html b/docs/layouts/_default/baseof.html new file mode 100644 index 00000000..da64c0ec --- /dev/null +++ b/docs/layouts/_default/baseof.html @@ -0,0 +1,17 @@ + + + + {{- partial "head.html" . -}} + + + +
+ {{ block "main" . }}{{ end }} + {{- partial "footer.html" . -}} +
+ + diff --git a/docs/layouts/index.html b/docs/layouts/index.html new file mode 100644 index 00000000..72497ca9 --- /dev/null +++ b/docs/layouts/index.html @@ -0,0 +1,5 @@ +{{ define "main" }} +
+
{{ .Content }}
+
+{{ end }} diff --git a/docs/layouts/partials/chapters.html b/docs/layouts/partials/chapters.html new file mode 100644 index 00000000..f51f58f9 --- /dev/null +++ b/docs/layouts/partials/chapters.html @@ -0,0 +1,3 @@ +{{ with .Site.GetPage "/menu" }} + {{ .Content | safeHTML }} +{{ end }}