diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b58abd7..ecefd13 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,12 +1,16 @@ # The Docker image that will be used to build your app -image: python:3.10-slim +image: python:3.10 # Functions that should be executed before the build script is run before_script: - pip install poetry + - poetry config virtualenvs.in-project true - poetry install pages: script: - - make docs + - cp ./README.md ./docs/source/README.md && cp -r ./data ./docs/source/data/ + - poetry run sphinx-apidoc ./src -o ./docs/source/modules --no-toc + --module-first --follow-links --separate --force + - poetry run sphinx-build -b html docs/source/ public/ -E -a artifacts: paths: # The folder that contains the files to be exposed at the Page URL @@ -14,4 +18,4 @@ pages: rules: # This ensures that only pushes to the default branch will trigger # a pages deploy - - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH + - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH \ No newline at end of file