You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To have both side bar navigation and top navigation in Material for MkDocs, you can configure the navigation structure in the mkdocs.yml configuration file.
To enable side bar navigation, you can use the nav configuration option in the mkdocs.yml file. It allows you to define a hierarchical structure for your documentation. For example:
nav:
Home: index.md
Introduction:
Getting Started: getting-started.md
Installation: installation.md
Usage:
Configuration: configuration.md
Customization: customization.md
To enable top navigation, you can leverage the extra configuration option in the mkdocs.yml file. You can define custom links to be displayed in the header. For example:
extra:
top_navigation:
- text: Home
link: /
- text: GitHub
link: https://github.com/your-repo
By setting navigation.top to true and defining links in extra.top_navigation, you can achieve both side bar and top navigation in your Material for MkDocs documentation.
Remember to adjust the link paths and add more pages to suit your documentation structure.
The text was updated successfully, but these errors were encountered:
Respuesta de GPT mkdocs material
To have both side bar navigation and top navigation in Material for MkDocs, you can configure the navigation structure in the mkdocs.yml configuration file.
To enable side bar navigation, you can use the nav configuration option in the mkdocs.yml file. It allows you to define a hierarchical structure for your documentation. For example:
nav:
To enable top navigation, you can leverage the extra configuration option in the mkdocs.yml file. You can define custom links to be displayed in the header. For example:
theme:
name: 'material'
features:
- navigation.top: true
extra:
top_navigation:
- text: Home
link: /
- text: GitHub
link: https://github.com/your-repo
By setting navigation.top to true and defining links in extra.top_navigation, you can achieve both side bar and top navigation in your Material for MkDocs documentation.
Remember to adjust the link paths and add more pages to suit your documentation structure.
The text was updated successfully, but these errors were encountered: