Comments (3)
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.
It looks like you haven't enabled the plugin in mkdocs.yml
. Installation instructions
from mkdocs-awesome-pages-plugin.
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)
- [BUG] HOT 1
- Is it possible to hide a single file from nav? HOT 10
- issue with material for mkdocs when using navigation.prune HOT 3
- folder level .pages nav not working when top level .pages nav has sub-sections? HOT 2
- Installation was successful, but MKDOCS server spits out the error "plugin is not installed" HOT 11
- Version 2.9.2 regression in `.pages` handling HOT 3
- support for imported repositories (multirepo plugin) HOT 5
- Can nav be sorted by date? HOT 3
- Ordering breaks when rest pattern is used in mkdocs > nav HOT 7
- conda-forge distribution
- Full custom nav for pages in a directory HOT 1
- Deep `.pages.` files not respected HOT 3
- does not work in combination with monorepo HOT 6
- Possible to build full nav in directory? HOT 4
- An absolute path to '/...' is included in the 'nav' configuration, which presumably points to an external HOT 6
- Hide pages but still show left navigation? HOT 2
- Order does not take effect for subdirectory files HOT 2
- Custom styling on nav items HOT 2
- [FEATURE] `flat n` - How to include nested folders correctly? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mkdocs-awesome-pages-plugin.