Skip to content
Snippets Groups Projects

Fix/missing_API_documentation

Merged Alfin Johny requested to merge fix/delete_artifacts into main
Compare and
4 files
+ 38
2941
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 10
4
@@ -35,9 +35,7 @@ clone:
- apk update && apk --no-cache add git doxygen graphviz ttf-freefont texmf-dist texmf-dist-latexextra texlive texlive-dvi
script:
# clone repos
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@git.rwth-aachen.de/unicado/aircraft-design
- cd aircraft-design
- git clone --recurse-submodules https://gitlab-ci-token:${CI_JOB_TOKEN}@git.rwth-aachen.de/unicado/libraries libs/
- git clone --recurse-submodules https://gitlab-ci-token:${CI_JOB_TOKEN}@git.rwth-aachen.de/unicado/aircraft-design
# Change to the project directory (useful for multi-directory repositories)
- cd $CI_PROJECT_DIR
- ls -la $CI_PROJECT_DIR
@@ -47,6 +45,7 @@ clone:
- $CI_PROJECT_DIR/aircraft-design
- $CI_PROJECT_DIR/libraries
- $CI_PROJECT_DIR/docs/documentation
expire_in: 5 Minutes
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' # Run when the commit is on the default branch
when: on_success # Only run if the previous jobs are successful
@@ -72,13 +71,20 @@ pages:
- pipenv install --dev # Install all necessary dependencies
script:
# Build the MkDocs documentation site
- pipenv run mkdocs build --verbose --site-dir $CI_PROJECT_DIR/public
- pipenv run mkdocs build --quiet --site-dir $CI_PROJECT_DIR/public
# Delete .doxy directory if it exists
- if [ -d "$CI_PROJECT_DIR/public/assets/.doxy" ]; then rm -rf $CI_PROJECT_DIR/public/assets/.doxy; fi
# Delete all folders ending with _source in the public directory
- find $CI_PROJECT_DIR/public -type d -name '*_source' -exec rm -rf {} +
needs:
- clone # This job depends on the successful completion of the clone job
artifacts:
# Save the generated static website files as artifacts
paths:
- $CI_PROJECT_DIR/public
expire_in: 5 Minutes #Artifacts will be stored for 5 Minutes
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' # Run when the commit is on the default branch
when: on_success # Only run if the previous jobs are successful
Loading