Giter VIP home page Giter VIP logo

Comments (3)

short-fall avatar short-fall commented on June 23, 2024 1

Found the issue.
We are removing files from the Files-collection in the on_files-hook using a regex that targets filenames beginning with a dot . or underscore _, preventing filenames with this pattern from being included in the build (we are using this to prepare content like news releases in advance without deploying them right away).
Up until version 2.9.2 this workflow caused no issues. But with the usage of the Files-collection by mkdocs-awesome-pages-plugin in PR 79 our alteration of the Files-collection effectively removes all .pages-files for the plugin since plugin hooks are executed before custom hooks.
Adapting the regex in our on_files-hook resolves this issue.
Sorry again for providing a faulty example and thanks for your time!

from mkdocs-awesome-pages-plugin.

lukasgeiter avatar lukasgeiter commented on June 23, 2024

It looks like you haven't enabled the plugin in mkdocs.yml. Installation instructions

from mkdocs-awesome-pages-plugin.

short-fall avatar short-fall commented on June 23, 2024

Sorry that was a stupid mistake!
I'm now working on trying to replicate the issue with a correct mkdocs.yml...

What I can tell so far is that the when I dump nav.items using pprint in the on_nav-hook in our mkdocs-project I get different results for plugin version 2.9.1 and 2.9.2 (versions for Python, mkdocs and other plugins unchanged).
The entries that appear in version 2.9.2 are folders containing .pages-files with hide: true.

I will try to reproduce it and report back!

mkdocs-awesome-pages-plugin 2.9.1:

[Page(title='Startseite', url='/'),
 Page(title='Software Engineering', url='/software-engineering/'),
 Section(title='News'),
 Section(title='Produkte'),
 Page(title='Über uns', url='/about/'),
 Page(title='Stellenangebote', url='/stellenangebote/'),
 Page(title='News', url='/news/')]

mkdocs-awesome-pages-plugin 2.9.2:

[Page(title='Startseite', url='/'),
 Page(title='Software Engineering', url='/software-engineering/'),
 Section(title='Contact'),
 Section(title='Legal'),
 Section(title='News'),
 Section(title='Produkte'),
 Page(title='Über uns', url='/about/'),
 Page(title='Stellenangebote', url='/stellenangebote/'),
 Page(title='News', url='/news/')]

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.