mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-24 00:36:39 +00:00
18 lines
674 B
YAML
18 lines
674 B
YAML
version: 2
|
|
|
|
# The documentation is built with Zensical, which ReadTheDocs does not support
|
|
# natively, so a custom build is used. The output must be placed in
|
|
# $READTHEDOCS_OUTPUT/html (see https://docs.readthedocs.com/platform/stable/build-customization.html)
|
|
build:
|
|
os: "ubuntu-24.04"
|
|
tools:
|
|
python: "3.12"
|
|
commands:
|
|
- pip install -r docs/requirements.txt
|
|
- pip install -r src/backend/requirements.txt
|
|
- pip install -U invoke
|
|
# Generate the API schema and settings definitions, build the site and run the post-build checks
|
|
- invoke build-docs --build
|
|
- mkdir -p $READTHEDOCS_OUTPUT/html
|
|
- cp -r docs/site/. $READTHEDOCS_OUTPUT/html/
|