Comments (5)
Thanks for reporting. Fixed in f2f919c
. The projects plugin will now set the current working directory to the directory the mkdocs.yml
is located in and build the project from there. This should resolve all known issues with relative paths used in plugins and extensions when using the projects plugin.
There's a problem with your reproduction however that makes it crash regardless whether you're using the projects plugin or not. Snippets are stored inside docs
, but the path is incorrect in index.md
:
...
Reference the whole python file
```python
--8<-- "dummyproject-snippets/local.py" # <- incorrect
--8<-- "docs/dummyproject-snippets/local.py" # <- correct
```
...
After prepending docs/
to both local.py
snippet URLs, the build succeeds with and without the plugin.
from mkdocs-material.
Released as part of 9.5.17+insiders-4.53.6.
from mkdocs-material.
Thanks @squidfunk , that was a lot faster than anticipated!
And yes, even though the reproduction works on my side, it contains a nasty hack to circumvent an issue with paths for snippets (duplicate paths) which you just fixed.
I'll be happy to test everything in a clean environment. Have a good start into the week!
from mkdocs-material.
Thanks for reporting. @alexvoss I'm pretty sure this is related to the cwd issue you encountered. We'll look into it, but please understand that it might take some time – it is tricky to fix and will require us to rewrite some things, but I agree that this should definitely work.
from mkdocs-material.
Thanks for looking into it. I totally understand. Feel free to ping me to test it!
from mkdocs-material.
Related Issues (20)
- hyphen in tag extras file tag list breaks build HOT 6
- Documentation for User Provided Logo not working HOT 1
- Privacy plugin misbehave with query parameters in script-src HOT 4
- Social cards broke after opting in for the insiders program HOT 1
- ⚠️ Social cards broken – update to 9.5.17 HOT 45
- Update Serbian translations HOT 2
- Blog post date-only format HOT 2
- Color palette toggle's keyboard operation is confusing HOT 2
- `content.tooltips` feature breaks abbreviation hover in tab titles HOT 3
- Google font loading breaks build on v9.5.7 (resolved in current release) HOT 1
- Allow title of social cards to respect MkDocs hooks HOT 2
- Mermaid sequence diagram box coloring overridden by material CSS HOT 3
- Search not working in Safari HOT 4
- Group plugin, but for markdown extensions HOT 1
- Code block highlighting issue on mobile resolution HOT 14
- CSS border-radius animation issue on document contributors with Chrome and Edge HOT 8
- Instant preview is enabled on footnotes HOT 8
- Instant previews: default configuration adds previews for all pages HOT 2
- Search is not present when privacy plugin is enabled HOT 2
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-material.