It would be great to be able to specify scripts relative to the mkdocs.yml file.
Use case
In my mkdocs.yml file:
plugins:
- gen-files:
scripts:
- gen_pages.py
If the current working directory is the folder containing mkdocs.yml, this works:
mkdocs build
But if I want to run this from somewhere else, this does not work:
mkdocs build -f /absolute/path/to/mkdocs.yml
This is very cumbersome for all kinds of CI/CD situations. It would be nice for mkdocs-gen-files to be consistent with the rest of the ecosystem, where everything is relative to the mkdocs.yml file.
It would be great to be able to specify scripts relative to the mkdocs.yml file.
Use case
In my
mkdocs.yml
file:If the current working directory is the folder containing
mkdocs.yml
, this works:But if I want to run this from somewhere else, this does not work:
This is very cumbersome for all kinds of CI/CD situations. It would be nice for mkdocs-gen-files to be consistent with the rest of the ecosystem, where everything is relative to the
mkdocs.yml
file.