freestruct docs

Navigation

Freestruct’s docs menu is a single data file: docs/_data/nav.yml. The default.html layout renders site.data.nav into the sidebar (there is no separate top nav), so there is exactly one place nav can live and it cannot drift.

The Shape

# docs/_data/nav.yml
- title: Start
  items:
    - title: Home
      url: /
    - title: Getting Started
      url: /getting-started

- title: Guides
  items:
    - title: Cache Busting
      url: /guides/cache-busting

Why Not Auto-Generated?

An earlier build auto-collected nav from the folder tree with a Jekyll generator (_plugins/nav_generator.rb). It was removed:

Adding a Page

  1. Create the markdown file with complete frontmatter (title, description, nav_order, plus permalink if the path needs to be explicit).
  2. Add its entry to docs/_data/nav.yml under the right section.
  3. The audit gate verifies both halves match before anything deploys.

Using Your Own SSG Menu

Jekyll builds this frame, but Freestruct itself never touches your nav - the injection layer only writes post-build SEO/URL/output artifacts into the rendered HTML. If you run Freestruct over your own site, your existing menu is untouched.