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)
- Default value for search-plugin separator has a typo HOT 1
- Version selector is not displayed correctly after enabling showing version alias HOT 4
- Mermaid Viewer Control box? How can we use it? HOT 5
- Insiders tag plugin conflicts with markdown_extensions.toc HOT 5
- Section display text alias overridden with same .md files HOT 2
- Add tab index to `.md-search__scrollwrap` in the `search` plugin HOT 11
- [change(feature) request] Page Subtitle for Blog Posts HOT 3
- Annotation doesn't work inside markdown tables HOT 2
- Running "mkdocs serve" through Docker results in "Connection reset by peer" HOT 6
- Comment: The comment page must be refreshed to appear. HOT 4
- included in the 'nav' configuration, which is not found in the documentation files. HOT 1
- Blog issue - TypeError: unsupported operand type(s) for |: 'ABCMeta' and 'NoneType' HOT 1
- Cannot use numbers as titles HOT 2
- Social cards: Using a custom background image HOT 2
- Table display โflickersโ when refreshing the page HOT 9
- Version switcher fails to stay on the same page when `canonical_version` is set in mike HOT 3
- Allow ignoring some version aliases when showing the version selector HOT 6
- Blog: allow post author avatar to reference local files HOT 2
- Extra tabs in case content.tabs.link is enabled, get switched to another tab while scrolling. HOT 7
- Missing built-in typeset plugin on fresh install
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.