Git Product home page Git Product logo

Comments (5)

squidfunk avatar squidfunk commented on May 20, 2024 1

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.

squidfunk avatar squidfunk commented on May 20, 2024 1

Released as part of 9.5.17+insiders-4.53.6.

from mkdocs-material.

leandrolerena avatar leandrolerena commented on May 20, 2024 1

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.

squidfunk avatar squidfunk commented on May 20, 2024

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.

leandrolerena avatar leandrolerena commented on May 20, 2024

Thanks for looking into it. I totally understand. Feel free to ping me to test it!

from mkdocs-material.

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.