Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

History
71 lines (49 loc) · 1.9 KB

File metadata and controls

71 lines (49 loc) · 1.9 KB

Quick development

The fastest way to start with development is to use pixi. If you don't have pixi installed, you can install it by following the instructions at pixi documentation. On macOS, you can use brew install pixi.

To use pixi, run the following commands:

$ pixi task list        # List all available tasks
$ pixi run build        # Build the documentation
$ pixi run serve        # Build and serve the docs locally (with auto-reload)
$ pixi run build-check  # Build and validate all links
$ pixi run validate     # Validate links in the built site

pixi handles everything for you, including setting up a temporary virtual environment with all required dependencies (zensical, plugins, lychee, etc.).

Post setup

You should prepare pre-commit, which will help you by checking that commits pass required checks:

pip install pre-commit # or brew install pre-commit on macOS
pre-commit install # Will install a pre-commit hook into the git repo

You can also/alternatively run pre-commit run (changes only) or pre-commit run --all-files to check even without installing the hook.

Building docs

This project uses Zensical for documentation. The documentation is automatically built and published via GitHub Pages when changes are pushed to the main branch.

You can build the docs locally using pixi:

pixi run build

You can see a preview with live reload (great for iterating on documentation):

pixi run serve

Then open http://127.0.0.1:8000 in your browser.

To validate all links in the documentation:

pixi run build-check

This will build the documentation without directory URLs and run lychee to validate all links (note: requires a lychee.toml configuration file).

Pre-commit

This project uses pre-commit for all style checking and linting. Install pre-commit and run:

pre-commit run -a

to check all files.