Skip to content

Commit

Permalink
Remove build-docs from .gitlab-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CFD-Xing authored Jan 24, 2025
1 parent e472d95 commit 35cdf1d
Showing 1 changed file with 0 additions and 39 deletions.
39 changes: 0 additions & 39 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: []
Expand All @@ -128,7 +93,3 @@ build-and-test-cuda:
check-formatting:
<<: *check-formatting-template
needs: []

#build-docs:
# <<: *build-docs-template
# needs: []

0 comments on commit 35cdf1d

Please sign in to comment.