Giter VIP home page Giter VIP logo

Comments (3)

jeffjg avatar jeffjg commented on September 25, 2024 1

You beautiful genius! Thank you, it works!

from mkdocs-awesome-pages-plugin.

kamilkrzyskow avatar kamilkrzyskow commented on September 25, 2024

Hi, in your design .pages file try:

nav:
    - index.md
    - Introduction: general
    - Book Design: book_design
    - Figure Design: figure_design

or if you're using the i18n plugin:

nav:
    - ... | index*.md
    - Introduction: general
    - Book Design: book_design
    - Figure Design: figure_design

I'm using the material theme with index pages and navigation tabs features on, together with the i18n plugin:
For the top level (root -> tab) I have to use the third method in the tab directories to directly set index at the top.
Apart of that in deeper directories I just use ... in the nav and it does include the index at the top.

It breaks at the navigation tab level since it's a feature of the material theme that could get the link before the ... is processed by the plugin 🤔, but I never investigated it 🤷.

EDIT: I removed the copy-paste typo example, which I later explain doesn't work 😅

from mkdocs-awesome-pages-plugin.

lukasgeiter avatar lukasgeiter commented on September 25, 2024

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?

from mkdocs-awesome-pages-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.