Development Guide

How to test the local package?

Virtual environment

  • Create your virtual environment.
python -m venv venv

Environment activation

  • Activate the virtual environment.
source venv/bin/activate

Install Poetry

  • Install Poetry for dependency management and building.
pip install poetry

Or using the official installer:

curl -sSL https://install.python-poetry.org | python3 -

Install dependencies with Poetry

  • Install project dependencies using Poetry.
poetry install

This will install: - mkdocs (>=1.6.1,<2.0.0) - Main dependency - build (^1.3.0) - Development dependency for building packages

Development

  • Make your changes as desired in the ./mkdocs_dracula_theme folder. You can enjoy and change whatever you want, please have fun.
ls mkdocs_dracula_theme

The poetry install command installs the package in editable mode, so your changes will be reflected immediately without needing to rebuild.

Build package (optional)

  • If you want to build the distribution package:
poetry build

This creates distribution files in the dist/ directory.

Test

  • Run the following command to start the development server.
poetry run mkdocs serve

Or if you're already in the Poetry environment:

mkdocs serve

View Template


Commit Style

  • ⚙️ FEATURE
  • 📝 PEP8
  • 📌 ISSUE
  • 🪲 BUG
  • 📘 DOCS
  • 📦 PyPI
  • ❤️️ TEST
  • ⬆️ CI/CD
  • ⚠️ SECURITY