Development#
This page describes how to set up t-doc for development. It isn't necessary for creating and editing documents.
Install#
Install the required packages for your system.
Install Node.js, include the
npmpackage manager and make sure it's on the systemPATH.winget install --id OpenJS.NodeJS.LTSInstall Node.js manually or via a package manager like Homebrew
Install Node.js via your system's package manager.
Install the
build,hatchlinganduvpackages.python -m pip install build hatchling uvpython -m pip install --user build hatchling uvpython -m pip install --user build hatchling uvClone the
commonrepository.hg clone -u main https://rc.t-doc.org/hg/common cd common
Run the local server as usual. This installs the
t-doc-commonpackage as editable into the virtual environment_venv/dev.
Upgrade#
Pull missing changesets from the
commonrepository.hg pullUpdate to the branch head.
hg update --checkUpdate the generated files.
uv buildIf any Python dependencies need to be upgraded, delete the
_venv/devdirectory. It will be re-created when the local server is run the next time.