Replies: 2 comments 5 replies
-
I don't think that would work by itself, since the data are loaded into the namespace of If you wish to influence the navigation, you might have to write a piece of code in I see more questions on navigation, lately. 🤔 What is the issue you wish to solve concerning it? More generally, do you have any insight on why others would want to influence navigation? |
Beta Was this translation helpful? Give feedback.
-
I'm working on a multirepo site where I needed to dynamically define the navigation. I was able to do it like that in my macro file: def define_env(env):
BASEPATPH = Path("some/base/path/for/files/")
env.conf["docs_dir"] = BASEPATH
env.conf["nav"] = [
{"Section A": BASEPATH / "index.md"}, # dict, where key is the Title
"foo.md", # just path, where markdown title is the Title
] This way you can programmatically generate the nav, so it may help with part of your project. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to load the navigation from an external file.
I included
where the file includes the 'nav:' tag.
The file is loaded, because other tags like variables in the extra section were loaded but unfortunately the nav section seems to be ignored.
Has anyone successfully managed to load the nav from an external file? Do you know why this might not work properly?
Beta Was this translation helpful? Give feedback.
All reactions