-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove build-docs from .gitlab-ci.yml
- Loading branch information
Showing
1 changed file
with
0 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,6 @@ workflow: | |
stages: | ||
- build-and-test | ||
- check-policies | ||
- build-docs | ||
|
||
.build-and-test-template: &build-and-test-template | ||
image: ubuntu:22.04 | ||
|
@@ -77,40 +76,6 @@ stages: | |
paths: | ||
- fprettify.log | ||
|
||
.build-docs-template: &build-docs-template | ||
image: python:3.9.19-slim-bookworm | ||
stage: build-docs | ||
variables: | ||
PUBLISH_DIR: api/ | ||
FORD_OUTPUT_DIR: api-docs | ||
FORD_CFG: ford.md | ||
script: | ||
- cd $CI_PROJECT_DIR | ||
- apt update | ||
- apt install -y git | ||
- echo Install sphinx, ford and ghp-import | ||
- pip install -r docs/docs-requirements.txt | ||
- echo Install graphviz | ||
- apt install graphviz -y | ||
- echo Build sphinx docs | ||
- apt-get install make -y | ||
- make -C docs html | ||
- echo Deploy sphinx docs | ||
- git config user.name 'github-action' | ||
- git config user.email 'github-action' | ||
- git remote add upstream [email protected]:xcompact3d/x3d2.git | ||
- ghp-import -m 'Update sphinx docs' --push --remote upstream --branch gh-pages docs/build/html --no-jekyll --force | ||
- echo Build API docs with ford | ||
- ford $FORD_CFG -o $FORD_OUTPUT_DIR | ||
- echo Deploy api-docs | ||
- ghp-import -m 'Update API docs' --prefix $PUBLISH_DIR --push --remote upstream --branch gh-pages $FORD_OUTPUT_DIR --no-jekyll --force | ||
rules: | ||
- if: '$CI_COMMIT_BRANCH == "main"' | ||
when: on_success | ||
- when: never | ||
allow_failure: false | ||
timeout: 15m | ||
|
||
build-and-test: | ||
<<: *build-and-test-template | ||
needs: [] | ||
|
@@ -128,7 +93,3 @@ build-and-test-cuda: | |
check-formatting: | ||
<<: *check-formatting-template | ||
needs: [] | ||
|
||
#build-docs: | ||
# <<: *build-docs-template | ||
# needs: [] |