Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better support with macros plugin to override extras #130

Open
Fokko opened this issue May 30, 2024 · 0 comments
Open

Better support with macros plugin to override extras #130

Fokko opened this issue May 30, 2024 · 0 comments

Comments

@Fokko
Copy link

Fokko commented May 30, 2024

I'm not sure if I should ask this here, or at the macros repository.

Consider the following setup:

# /mkdocs.yml
site_name: Cats API

nav:
  - Intro: 'index.md'
  - Authentication: 'authentication.md'
  - API:
    - v1: '!include ./v1/mkdocs.yml'
    - v2: '!include ./v2/mkdocs.yml'

plugins:
  - monorepo

extras:
    version: v2  # default
# /src/v1/mkdocs.yml
site_name: versions/v1

nav:
  - Reference: "reference.md"
  - Changelog: "changelog.md"

extras:
    version: v1
# /src/v2/mkdocs.yml
site_name: versions/v2

nav:
  - Migrating to v2: "migrating.md"
  - Reference: "reference.md"
  - Changelog: "changelog.md"

I would love to have the version variable be overridden by the v1 in the earlier version, but it looks like the included extras are not evaluated.

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

No branches or pull requests

1 participant