Breaking changes, rewrite; add support for plain text output and single page mode

This commit is contained in:
Alex Shpak
2026-05-14 23:55:08 +02:00
parent 4018d4b51d
commit c6ef0a08c2
36 changed files with 165 additions and 72 deletions
+8
View File
@@ -0,0 +1,8 @@
{{/* returns the section to be rendered as menu */}}
{{ $bookSection := default "docs" .Params.BookSection }}
{{ $section := .GetPage (cond (eq $bookSection "*") "/" $bookSection) }}
{{ if $section }}
{{ return $section }}
{{ else }}
{{ errorf "%s: Section '%s' not found, check BookSection theme parameter" $ $bookSection }}
{{ end }}