-
Notifications
You must be signed in to change notification settings - Fork 37
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
Having trouble using multiple .pages files in different directories #71
Comments
Hi, in your nav:
- index.md
- Introduction: general
- Book Design: book_design
- Figure Design: figure_design or if you're using the nav:
- ... | index*.md
- Introduction: general
- Book Design: book_design
- Figure Design: figure_design I'm using the It breaks at the navigation tab level since it's a feature of the material theme that could get the link before the EDIT: I removed the copy-paste typo example, which I later explain doesn't work 😅 |
You beautiful genius! Thank you, it works! |
MkDocs always navigates to the first page of a section (folder). Therefore, as @kamilkrzyskow suggested, you need some sort of index page if you don't want users to go straight to the introduction. @jeffjg I assume your question has been answered and this issue can be closed? |
Hello!
I'm having trouble with using multiple
.pages
files in multiple directories. I have one.pages
file in the root directory that's intended to be used for the main navigation, and then another.pages
file in a directory calleddesign
that's intended to be used for the navigation of the pages within the design section.Here's the folder directory:
And here's what the .pages files look like. This is the first one, in the root
/docs
directory:And here's the content in the .pages file within the
design
directory:The issue is when I click on the Design link in the top nav on my website, it goes to the
design/general
location. What I'm hoping to have it do is instead go to thedesign/index.md
file, and then once theIntroduction
link in Design is clicked, then it goes to thedesign/general
location.Does anyone have any idea how I can it to function like this?
Thank you!!!
The text was updated successfully, but these errors were encountered: