Replies: 1 comment 4 replies
-
Hey Leah, this works exactly the same with myst as rst. You can see it working here: https://github.com/aiidateam/aiida-website/blob/main/docs/index.md |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey y'all. I have a nav bar question
in RST i can customize a toctree setup like so where i can assign a specific name to appear in the toc for each link. It will default to the H1 otherwise.
I've tried a few things with myST
I'm open to submitting a documentation PR update if there is a way to do this? Or am I missing the correct documentation page perhaps?
Many thanks
Leah
ANSWER:
make sure you only have one h1 level element on your markdown page.
# Title here
no more h1 's after. h2, h3 ... etc are all fine. but sphinx book theme expects only one h1 which is best practice for website design anyway. but the behavior surprised me.
Beta Was this translation helpful? Give feedback.
All reactions