Closed SoumayaMauthoorMOJ closed 2 years ago
This is possible using navigation.indexes
with mkdocs materials: https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#section-index-pages
Hi @SoumayaMauthoorMOJ, might you have a sample of what your mkdocs.yml
files look like now ? I am trying to achieve exactly this but unable to get the desired result. Thanks!
Unfortunately I can't share the repo because it's internal but here's the relevant mkdocs section:
features:
- navigation.tabs
- navigation.tabs.sticky
- navigation.indexes
nav:
- Home:
- 'README.md'
- Architecture: 'architecture.md'
- Deployment: 'cicd.md'
- Components:
- 'components/README.md'
- Networking: '!include ./core/mkdocs.yml'
- Metadata: '!include ./metadata/mkdocs.yml'
- Extraction: '!include ./pipelines/mkdocs.yml'
- Glue: '!include ./glue_database/mkdocs.yml'
- Contributing:
- 'contributing/README.md'
- Using Pulumi: contributing/using_pulumi.md
Here's a screenshot of the repo structure:
And here's the link to the website which is public: https://ministryofjustice.github.io/analytical-platform-data-engineering/
The sub-pages under the Components page are all merged as desired:
Hope that helps!
thanks so much!
I have a repo with multiple directories with individual READMEs and mkdocs.yml e.g.:
I have included them in my nav so that it looks like:
This creates the following output:
I was wondering if there was a way of merging contents into a single output tree so that the individual headers are not duplicated e.g.: