Installation¶
The plugin is published on PyPI as vexy-mkdocs-strip-number-prefix. The
import package is mkdocs_strip_number_prefix, and the MkDocs plugin name is
strip-number-prefix.
Prerequisites¶
- Python 3.9 or later.
- MkDocs 1.5.0 or later. Installing the plugin pulls in
mkdocs>=1.5.0if it is missing.
Install from PyPI¶
Install from source¶
To use the latest commit from the main branch:
To work on the plugin itself, clone the repository and install it in editable mode with the development extras:
git clone https://github.com/vexyart/vexy-mkdocs-strip-number-prefix
cd vexy-mkdocs-strip-number-prefix
python -m pip install -e ".[dev]"
The dev extra installs pytest, pytest-cov, pytest-mock, pyyaml,
ruff, black, mypy and pre-commit. See Development.
Check the installation¶
-
Print the installed version:
The version comes from the git tag the package was built from. A source checkout without the generated
_version.pyfile reports0.0.0+unknown. -
Confirm that MkDocs can find the plugin. The package registers this entry point in the
mkdocs.pluginsgroup:[project.entry-points."mkdocs.plugins"] strip-number-prefix = "mkdocs_strip_number_prefix.plugin:StripNumberPrefixPlugin"If MkDocs reports
The "strip-number-prefix" plugin is not installed, the plugin is installed in a different Python environment from the one that runsmkdocs. Install both into the same environment.
Next step¶
Continue with the Quickstart.