An extra command for MkDocs that infers required PyPI packages from `plugins` in mkdocs.yml
Low maintenance activity. Last release 9 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install mkdocs-get-depsmkdocs-get-deps
An extra command for MkDocs that infers required PyPI packages from plugins in mkdocs.yml.
| Installation: | Alternatively through MkDocs itself: |
|
|
This command guesses the Python dependencies that a MkDocs site requires in order to build. It simply prints the PyPI packages that need to be installed. In the terminal it can be combined directly with a pip install command, as per the last example below:
| Usage: | Alternatively through MkDocs itself: |
|
|
The idea is that right after running this command, you can directly follow it up with mkdocs build and it will almost always "just work", without needing to think which dependencies to install.
The way it works is by scanning mkdocs.yml for themes:, plugins:, markdown_extensions: items and doing a reverse lookup based on a large list of known projects (catalog, see below).
Of course, you're encouraged to use a "virtualenv" with such a command. Also note that for environments that require stability (for example CI) directly installing deps in this way is not a very reliable approach as it precludes dependency pinning.