
Hatch plugin to integrate MkDocs and infer dependencies into an env
If you're working with MkDocs to build documentation sites, the hatch-mkdocs plugin is a game changer that simplifies environment management and dependency resolution. This innovative tool effortlessly integrates MkDocs with Hatch, automatically populating virtual environments based on your mkdocs.yml configuration file. It takes the hassle out of specifying dependencies manually, allowing you to focus on crafting high-quality documentation.
With hatch-mkdocs, you can create a seamless workflow for managing your documentation projects. The plugin intelligently resolves dependencies by inspecting MkDocs plugins, streamlining the process of setting up and maintaining virtual environments. This not only saves time but also ensures that your environment is always up-to-date with the essential tools for building your documentation site.
Automatic Dependency Resolution: Infers and installs PyPI dependencies based solely on your mkdocs.yml file, eliminating the need for manual specification.
Seamless Environment Management: Creates an automatically managed virtual environment tailored specifically for MkDocs, making setup a breeze.
Efficient Installation Process: Requires just a single command to create the environment and run MkDocs, replacing cumbersome steps needed with traditional virtualenv setups.
Dynamic Dependency Updates: Automatically reinstalls dependencies when new MkDocs plugins are selected, ensuring that your environment stays current without extra effort.
Customizable Configuration: Compatible with existing configurations in either hatch.toml or pyproject.toml, allowing flexibility based on your project structure.
Isolated Installation Recommended: Designed to function best when installed via pipx, keeping your main Python environment clean and manageable.
Easy Reinstallation: If you ever need to reset your environment, simply remove the existing one, and all dependencies can be reinstalled fresh as needed.
With these features, hatch-mkdocs enhances your workflow and minimizes the overhead of managing Python environments for documentation projects.
