Change:
{{ $show := cond (or (lt $ulNr $ulShow) $activePath (and (not $shouldDelayActive) (eq $s.Parent $p.Parent)) (and (not $shouldDelayActive) (eq $s.Parent $p)) (and (not $shouldDelayActive) ($p.IsDescendant $s.Parent))) true false -}} {{ $mid := printf "m-%s" ($s.RelPermalink | anchorize) -}} {{ $pages_tmp := where (union $s.Pages $s.Sections).ByWeight ".Params.toc_hide" "!=" true -}} <ins> {{/* We get untranslated subpages below to make sure we build all levels of the sidenav in localizationed docs sets */}} {{ with site.Params.language_alternatives -}} {{ range . }} {{ with (where $.section.Translations ".Lang" . ) -}} {{ $p := index . 0 -}} {{ $pages_tmp = where ( $pages_tmp | lang.Merge (union $p.Pages $p.Sections)) ".Params.toc_hide" "!=" true -}} {{ end -}} {{ end -}} {{ end -}} </ins> {{ $pages := $pages_tmp | first $sidebarMenuTruncate -}} {{ $withChild := gt (len $pages) 0 -}} {{ $manualLink := cond (isset $s.Params "manuallink") $s.Params.manualLink ( cond (isset $s.Params "manuallinkrelref") (relref $s $s.Params.manualLinkRelref) $s.RelPermalink) -}}

Discussion:
This is a Bug Report <!-- Thanks for filing an issue! Before submitting, please fill in the following information. --<!-- See for guidance on writing an actionable issue description. --<!--Required Information--Problem: In , sub-items are not displayed in sidebar tree. ! FYI Chinese version: ! Japanese version: ! English version: ! Proposed Solution: Page to Update: <!--Optional Information (remove the comment tags around information you would like to include)--<!--Kubernetes Version:--<!--Additional Information:--
zh: Some Chinese-translated files exist in ko: No Korean-translated file exists in I guess this is the reason why the sidebars of version and version are displayed differently. FYI: On 2021-03-19, the -version sidebar was like this: (screenshot is from the issue ) Even if no Korean-translated file exists in , sub-items are displayed (which are the links to the English version of subcommands). !
/triage accepted
This will affect all localizations /priority important-soon
/retitle [l10n] Sub-items are not displayed in sidebar tree
/area web-development
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules: After 90d of inactivity, is applied After 30d of inactivity since was applied, is applied After 30d of inactivity since was applied, the issue is closed You can: Mark this issue or PR as fresh with Mark this issue or PR as rotten with Close this issue or PR with Offer to help out with [Issue Triage][1] Please send feedback to sig-contributor-experience at . /lifecycle stale [1]:
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules: After 90d of inactivity, is applied After 30d of inactivity since was applied, is applied After 30d of inactivity since was applied, the issue is closed You can: Mark this issue or PR as fresh with Close this issue or PR with Offer to help out with [Issue Triage][1] Please send feedback to sig-contributor-experience at . /lifecycle rotten [1]:
Can I work on this issue?
Sure! Please go ahead!

/remove-lifecycle rotten
/assign
/lifecycle frozen
/unassign
/assign I'd like to take a look at this
To summarize: Localizations should have the same links listed in their side nav as in the english language docs, regardless of whether the pages have been translated. This is because there is a "fallback" set up to display a link to the english language docs if a page has not yet been translated. The fallback links to english docs for generated reference docs (kubeadm docs) are missing in localize docs sets. (or anyone else), does this sound accurate? I'd like to make sure i understand whats broken before trying to troubleshoot hugo/docsy/mystery code section :)
I've been spending time investigating this and learning how the navigation is built :) I believe i've found the issue. I'll try to summarize below, but I think this is a template issue which should be addressed by docsy. There is a check in () that compares all the pages and sections and then filters out pages that have . We then test for the number of child pages, to determine if we continue to build the next level down in the navigation tree. At this point, because some localizations have the Kubeadm page translated, this check will only find the translated file (files in the kubeadm/generated folder are filtered out bc the file has ). The logic as written determines that kubeadm has no child pages, because it doesn't know about the English pages at this point. This means the rest of the kubadm sub pages links will not be built in the navigation. Theres There is a check later in that merges the localized pages with the missing the English language pages and to inserts links to untranslated pages in the side nav. (). But it only gets to this point if there are child pages, because its wrapped in a conditional (). In my testing i the checking for untranslated pages, replacing lines 49-51 to be the following. This appears to add in the links that were missing. <img width="1569" alt="Screen Shot 2022-09-09 at 11 27 38 AM" src="https://user-"If we agree that this looks and is a docsy issue, I can open an issue there and propose the solution. cc: I would appreciated your thoughts on this, thanks!