MkDocs Get Deps

0.2.2 · active · verified Sun Apr 05

mkdocs-get-deps is an extra command-line tool for MkDocs that simplifies dependency management by inferring required PyPI packages from `plugins`, `themes`, and `markdown_extensions` listed in an `mkdocs.yml` configuration file. It outputs the names of these packages, making it easy to pipe them directly to `pip install`. The current version is 0.2.2. It's a low-cadence utility, typically updated in sync with MkDocs or its dependency catalog.

Warnings

Install

Quickstart

This quickstart demonstrates how to use `mkdocs get-deps` to identify and then install the Python packages required by your MkDocs project based on its `mkdocs.yml` configuration. It's often chained with `pip install` to automate the setup of a documentation environment.

# Create a sample MkDocs project (if you don't have one)
# mkdocs new my-docs
# cd my-docs

# Assuming you have an mkdocs.yml in the current directory, e.g., with a plugin configured:
# plugins:
#   - search

# Print the inferred dependencies
mkdocs get-deps

# Install the inferred dependencies
pip install $(mkdocs get-deps)

view raw JSON →