Giter VIP home page Giter VIP logo

Comments (5)

lukasgeiter avatar lukasgeiter commented on June 17, 2024

I can't see any mistakes in your code, could you share a repo that reproduces the issue?


Be aware that the filtering inside a .pages file only works with all items on that "level" (in that folder essentially). I'm working on a new version that would remove this limitation, but until then you have 3 options:

  • (once you get it working) add the .pages file in every relevant folder
  • Use the nav attribute in mkdocs.yml instead (same syntax, but it filters the whole tree)
  • Use mkdocs-exclude if you're ok with completely excluding the file from the build and not only from the navigation.

from mkdocs-awesome-pages-plugin.

lin-ycv avatar lin-ycv commented on June 17, 2024

@lukasgeiter this would be a reppo that reproduces the issue:
https://github.com/lin-ycv/awesome-pages-test
as you can see, this page is in the nav bar
https://lin-ycv.github.io/awesome-pages-test/Rh/Gr/h_Un%20Cl/
even tho it starts with h
and I've configured .pages to exclude it here:
https://github.com/lin-ycv/awesome-pages-test/blob/main/docs/.pages

from mkdocs-awesome-pages-plugin.

lin-ycv avatar lin-ycv commented on June 17, 2024
  • (once you get it working) add the .pages file in every relevant folder
  • Use the nav attribute in mkdocs.yml instead (same syntax, but it filters the whole tree)

Tried these 2 options, they didn't work either, can't test the 3rd option since I'd prefer the pages to be built

from mkdocs-awesome-pages-plugin.

lukasgeiter avatar lukasgeiter commented on June 17, 2024

Thanks for the repo. This regex should work:

nav:
    - ... | regex=^[^h]

Side note: The None in the navigation is because your index.md has an empty title annotation.

from mkdocs-awesome-pages-plugin.

lin-ycv avatar lin-ycv commented on June 17, 2024

Thanks, that regex does work.

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.