Skip to content
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

Añadir vanegacion estructurada #1

Open
JesusJMUJI opened this issue Oct 25, 2023 · 0 comments
Open

Añadir vanegacion estructurada #1

JesusJMUJI opened this issue Oct 25, 2023 · 0 comments
Assignees

Comments

@JesusJMUJI
Copy link
Owner

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:

  • 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:

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.

@JesusJMUJI JesusJMUJI self-assigned this Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant