thuliteio / doks

Everything you need to build a stellar documentation website. Fast, accessible, and easy to use.
https://getdoks.org
MIT License
2.1k stars 359 forks source link

No Guides and Reference dropdown if language is != defaultContentLanguage #1104

Open JanKru opened 1 year ago

JanKru commented 1 year ago

Expected behaviour

GUIDES and REFERENCE dropdown should also appear on other languages then german.

Bildschirmfoto 2023-10-02 um 14 50 37

Current behavior

No dropdowns are shown

Bildschirmfoto 2023-10-02 um 14 52 53

Who to reproduce

  1. Create new doks npm create hyas@latest -- --template doks
  2. Change multilingualModein doks.toml to multilingualMode = true
  3. Change disableLanguages in hugo.toml to disableLanguages = [ "nl"]
  4. Create german content `npm run create docs/guides/lang-example.de.md``
  5. Create english content npm run create docs/guides/lang-example.en.md

I guess for what reason over when the language is changed the Site.Sections in auto-collapsible-menu.html in node_modules/@hyas/doks-core/layouts/partials/sidebar/auto-collapsible-menu.htmlis empty?