ci: run sphinx-build in docs directory

This commit is contained in:
Iain Learmonth 2022-04-27 14:32:12 +01:00
parent 8f708072e8
commit 9f7cd85713

View file

@ -8,7 +8,7 @@ test:
- pip install -r requirements.txt - pip install -r requirements.txt
- pip install -U sphinx sphinx-press-theme sphinx-jsonschema - pip install -U sphinx sphinx-press-theme sphinx-jsonschema
- pushd scripts && python update_schemas.py && popd - pushd scripts && python update_schemas.py && popd
- sphinx-build -b html docs public - pushd docs && sphinx-build -b html . ../public && popd
rules: rules:
- if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH - if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
@ -20,7 +20,7 @@ pages:
- pip install -r requirements.txt - pip install -r requirements.txt
- pip install -U sphinx sphinx-press-theme sphinx-jsonschema - pip install -U sphinx sphinx-press-theme sphinx-jsonschema
- pushd scripts && python update_schemas.py && popd - pushd scripts && python update_schemas.py && popd
- sphinx-build -b html docs public - pushd docs && sphinx-build -b html . ../public && popd
artifacts: artifacts:
paths: paths:
- public - public