Skip to content

Persist left-menu fold state with first-level defaults#48

Merged
MariusStorhaug merged 1 commit into
mainfrom
pages-validation-main
Jul 19, 2026
Merged

Persist left-menu fold state with first-level defaults#48
MariusStorhaug merged 1 commit into
mainfrom
pages-validation-main

Conversation

@MariusStorhaug

Copy link
Copy Markdown
Owner

Summary

  • remove
    avigation.expand so the menu is not force-expanded globally
  • add a global nav-state script in .github/docs/nav-state.js`n- load the script through �xtra_javascript with repo placeholders so each repo resolves its own main-branch asset

Behavior

  • first-level groups expand by default when no saved state exists
  • user fold/unfold choices persist in localStorage across navigation

Load a global nav-state script via Zensical extra_javascript so first-level nav groups open by default and fold/unfold state persists across navigation. Remove navigation.expand to avoid force-expanding all levels.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@MariusStorhaug
MariusStorhaug force-pushed the pages-validation-main branch from f1cd2af to 689ca9b Compare July 19, 2026 00:13
@github-actions

Copy link
Copy Markdown

No Significant Changes Detected

This PR does not contain changes to files that would trigger a new release:

Pattern Description
^src/ Matches files where path matches this pattern
^README\.md$ Matches files where path matches this pattern

Build, test, and publish stages will be skipped for this PR.

If you believe this is incorrect, please verify that your changes are in the correct locations.

@github-actions

Copy link
Copy Markdown

Super-linter summary

Language Validation result
CHECKOV Pass ✅
GITHUB_ACTIONS Pass ✅
GITLEAKS Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
JAVASCRIPT_ES Pass ✅
JAVASCRIPT_PRETTIER Fail ❌
MARKDOWN Pass ✅
NATURAL_LANGUAGE Pass ✅
POWERSHELL Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅

Super-linter detected linting errors

For more information, see the GitHub Actions workflow run

Powered by Super-linter

JAVASCRIPT_PRETTIER
Checking formatting...[�[33mwarn�[39m] .github/docs/nav-state.js
[�[33mwarn�[39m] Code style issues found in the above file. Run Prettier with --write to fix.

@MariusStorhaug
MariusStorhaug merged commit e5985b9 into main Jul 19, 2026
26 of 28 checks passed
@MariusStorhaug
MariusStorhaug deleted the pages-validation-main branch July 19, 2026 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant