diff --git a/README.md b/README.md index ea4239938..a455d5a35 100644 --- a/README.md +++ b/README.md @@ -41,4 +41,4 @@ More information and links about the CNCF Code of Conduct are [here](code-of-con ## CNCF -The kpt project including the KRM Functions Catalog is a [CNCF Sandbox](https://www.cncf.io/sandbox-projects/) project. +The kpt project including the KRM Functions Catalog is a [CNCF Sandbox](https://www.cncf.io/sandbox-projects/) project. diff --git a/documentation/README.md b/documentation/README.md index ba7580cbf..c18411795 100644 --- a/documentation/README.md +++ b/documentation/README.md @@ -29,3 +29,4 @@ Then run the site using `npm run serve`. To have the site run locally with a fun ## License Licensed under the [Creative Commons Attribution 4.0 International license](LICENSE-documentation) + diff --git a/documentation/config.toml b/documentation/config.toml index ac95ef297..37664c59d 100644 --- a/documentation/config.toml +++ b/documentation/config.toml @@ -158,6 +158,11 @@ sidebar_menu_compact = true # Set to true to hide the sidebar search box (the top nav search box will still be displayed if search is enabled) sidebar_search_disable = true +sidebar_cache_limit=true +ul_show=true +sidebar_menu_truncate=true +sidebar_menu_foldable=false + # Adds a H2 section titled "Feedback" to the bottom of each doc. The responses are sent to Google Analytics as events. # This feature depends on [services.googleAnalytics] and will be disabled if "services.googleAnalytics.id" is not set. # If you want this feature, but occasionally need to remove the "Feedback" section from a single page, diff --git a/documentation/go.mod b/documentation/go.mod index bad9ce57b..2ec511ccf 100644 --- a/documentation/go.mod +++ b/documentation/go.mod @@ -1,3 +1,5 @@ module github.com/krm-functions-catalog/docs go 1.25.7 + +require github.com/google/docsy v0.10.0 // indirect diff --git a/documentation/layouts/partials/navbar.html b/documentation/layouts/partials/navbar.html index e7c4cfd97..55e2bbb95 100644 --- a/documentation/layouts/partials/navbar.html +++ b/documentation/layouts/partials/navbar.html @@ -12,9 +12,7 @@ {{ with .Page }} {{ $active = or $active ( $.IsDescendant .) }} {{ end }} - {{ $url := urls.Parse .URL }} - {{ $baseurl := urls.Parse $.Site.Params.Baseurl }} - {{ .Name }} + {{ .Name }} {{ end }} {{ if .Site.Params.versions }} diff --git a/documentation/layouts/partials/sidebar-tree.html b/documentation/layouts/partials/sidebar-tree.html index 091894647..f85bc9959 100644 --- a/documentation/layouts/partials/sidebar-tree.html +++ b/documentation/layouts/partials/sidebar-tree.html @@ -63,8 +63,8 @@ {{ $pages_tmp := where (union $s.Pages $s.Sections).ByWeight ".Params.toc_hide" "!=" true -}} {{ $pages := $pages_tmp | first $sidebarMenuTruncate -}} {{ $withChild := gt (len $pages) 0 -}} -{{ $manualLink := cond (and $s.Params $s.Params.manualLink) $s.Params.manualLink ( cond (and $s.Params $s.Params.manualLinkRelref) (relref $s $s.Params.manualLinkRelref) $s.RelPermalink) -}} -{{ $manualLinkTitle := cond (and $s.Params $s.Params.manualLinkTitle) $s.Params.manualLinkTitle $s.Title -}} +{{ $manualLink := cond (isset $s.Params "manuallink") $s.Params.manualLink ( cond (isset $s.Params "manuallinkrelref") (relref $s $s.Params.manualLinkRelref) $s.RelPermalink) -}} +{{ $manualLinkTitle := cond (isset $s.Params "manuallinktitle") $s.Params.manualLinkTitle $s.Title -}}
  • {{ if (and $p.Site.Params.ui.sidebar_menu_foldable (ge $ulNr 1)) -}} diff --git a/documentation/netlify.toml b/documentation/netlify.toml index 7bef72661..6f4735733 100644 --- a/documentation/netlify.toml +++ b/documentation/netlify.toml @@ -3,6 +3,6 @@ [build.environment] GO_VERSION = "1.25.7" - HUGO_VERSION = "v0.148.2" + HUGO_VERSION = "0.127.0"