Skip to content

Commit 6f1ac51

Browse files
Open menu items in same tab and remove installation menu point (#1219)
* Open menu items in same tab Fixing a Hugo vs Docsy incompatibility error. Signed-off-by: Gergely Csatari <gergely.csatari@nokia.com> * Addressing review comments Signed-off-by: Gergely Csatari <gergely.csatari@nokia.com> * Triggering a Netlify build Signed-off-by: Gergely Csatari <gergely.csatari@nokia.com> * Downgrading go, hugo and docsy versions Due ot a bug in Netlify it ignored the HUGO_VERSION directive in the config file what makes the deployment fail. Signed-off-by: Gergely Csatari <gergely.csatari@nokia.com> * Setting sidebar_cache_limit to false Signed-off-by: Gergely Csatari <gergely.csatari@nokia.com> * Setting ul_show to true Netlify build environment seems to require the explicit definition of a set of Docsy parameters. Signed-off-by: Gergely Csatari <gergely.csatari@nokia.com> * Adding more explicit parameters Signed-off-by: Gergely Csatari <gergely.csatari@nokia.com> * Adding a space to trigger the build Signed-off-by: Gergely Csatari <gergely.csatari@nokia.com> * Update go version Signed-off-by: Gergely Csatari <gergely.csatari@nokia.com> --------- Signed-off-by: Gergely Csatari <gergely.csatari@nokia.com>
1 parent 4b36ea7 commit 6f1ac51

File tree

7 files changed

+13
-7
lines changed

7 files changed

+13
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ More information and links about the CNCF Code of Conduct are [here](code-of-con
4141

4242
## CNCF
4343

44-
The kpt project including the KRM Functions Catalog is a [CNCF Sandbox](https://www.cncf.io/sandbox-projects/) project.
44+
The kpt project including the KRM Functions Catalog is a [CNCF Sandbox](https://www.cncf.io/sandbox-projects/) project.

documentation/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ Then run the site using `npm run serve`. To have the site run locally with a fun
2929
## License
3030

3131
Licensed under the [Creative Commons Attribution 4.0 International license](LICENSE-documentation)
32+

documentation/config.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@ sidebar_menu_compact = true
158158
# Set to true to hide the sidebar search box (the top nav search box will still be displayed if search is enabled)
159159
sidebar_search_disable = true
160160

161+
sidebar_cache_limit=true
162+
ul_show=true
163+
sidebar_menu_truncate=true
164+
sidebar_menu_foldable=false
165+
161166
# Adds a H2 section titled "Feedback" to the bottom of each doc. The responses are sent to Google Analytics as events.
162167
# This feature depends on [services.googleAnalytics] and will be disabled if "services.googleAnalytics.id" is not set.
163168
# If you want this feature, but occasionally need to remove the "Feedback" section from a single page,

documentation/go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
module github.com/krm-functions-catalog/docs
22

33
go 1.25.7
4+
5+
require github.com/google/docsy v0.10.0 // indirect

documentation/layouts/partials/navbar.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
{{ with .Page }}
1313
{{ $active = or $active ( $.IsDescendant .) }}
1414
{{ end }}
15-
{{ $url := urls.Parse .URL }}
16-
{{ $baseurl := urls.Parse $.Site.Params.Baseurl }}
17-
<a class="nav-link{{if $active }} active{{end}}" href="{{ with .Page }}{{ .RelPermalink }}{{ else }}{{ .URL | relLangURL }}{{ end }}"><span{{if $active }} class="active"{{end}}>{{ .Name }}</span></a>
15+
<a class="nav-link{{if $active }} active{{end}}" href="{{ with .Page }}{{ .RelPermalink }}{{ else }}{{ .URL | relLangURL }}{{ end }}" ><span{{if $active }} class="active"{{end}}>{{ .Name }}</span></a>
1816
</li>
1917
{{ end }}
2018
{{ if .Site.Params.versions }}

documentation/layouts/partials/sidebar-tree.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
{{ $pages_tmp := where (union $s.Pages $s.Sections).ByWeight ".Params.toc_hide" "!=" true -}}
6464
{{ $pages := $pages_tmp | first $sidebarMenuTruncate -}}
6565
{{ $withChild := gt (len $pages) 0 -}}
66-
{{ $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) -}}
67-
{{ $manualLinkTitle := cond (and $s.Params $s.Params.manualLinkTitle) $s.Params.manualLinkTitle $s.Title -}}
66+
{{ $manualLink := cond (isset $s.Params "manuallink") $s.Params.manualLink ( cond (isset $s.Params "manuallinkrelref") (relref $s $s.Params.manualLinkRelref) $s.RelPermalink) -}}
67+
{{ $manualLinkTitle := cond (isset $s.Params "manuallinktitle") $s.Params.manualLinkTitle $s.Title -}}
6868
<li class="td-sidebar-nav__section-title td-sidebar-nav__section{{ if $withChild }} with-child{{ else }} without-child{{ end }}{{ if $activePath }} active-path{{ end }}{{ if (not (or $show $p.Site.Params.ui.sidebar_menu_foldable )) }} collapse{{ end }}" id="{{ $mid }}-li">
6969
{{ if (and $p.Site.Params.ui.sidebar_menu_foldable (ge $ulNr 1)) -}}
7070
<input type="checkbox" id="{{ $mid }}-check"{{ if $activePath}} checked{{ end }}/>

documentation/netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
[build.environment]
55
GO_VERSION = "1.25.7"
6-
HUGO_VERSION = "v0.148.2"
6+
HUGO_VERSION = "0.127.0"
77

88

0 commit comments

Comments
 (0)