Skip to content
Discussion options

You must be logged in to vote

Is it possible to move the data to a separate yaml file?

I guess you might be able to use MkDocs configuration inheritance mechanism.

If so, are there restrictions on where it needs to be located and any adjustements I need to make to the site's config file?

AFAIK, only the path must be correct.

And, finally, what variables would I use in the content block instead of the global config.variable ones when iterating over the dataset?

If you define your configuration in mkdocs.yml, it will be global, so that's the way to go. Other options are using the macros plugin (possibly also global), or putting your data into front matter to scope it to a specific page.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by squidfunk
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants