Set up a development environment¶
You need uv and Node.js 20 or later. Node compiles the stylesheet. Nobody who only uses the theme needs it.
Clone the repository:
git clone https://github.com/SamuelJennings/sphinx-daisyui.git cd sphinx-daisyui
Install the Python dependencies, the documentation’s and the hooks. Installing the package compiles the stylesheet with npm the first time:
uv sync --group docs uv run pre-commit install
Serve the documentation, which is built with the theme, and rebuild it on every change:
uv run sphinx-autobuild docs docs/_build/html
While you change templates or
assets/, recompile the stylesheet on every change in a second terminal:npm run watch