diff --git a/gitlab-ci.yml b/gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..c892a4c40050a9c53d8823528e425c149d537703 --- /dev/null +++ b/gitlab-ci.yml @@ -0,0 +1,24 @@ +image: python:3.8-buster + +before_script: + - pip install -r requirements.txt + +test: + stage: test + script: + - mkdocs build --strict --verbose --site-dir test + artifacts: + paths: + - test + rules: + - if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH + +pages: + stage: deploy + script: + - mkdocs build --strict --verbose + artifacts: + paths: + - public + rules: + - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..c18b9e9414b8f5471a2d438f31088030dfd5edb8 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +# Documentation static site generator & deployment tool +mkdocs>=1.1.2 + +# Add your custom theme if not inside a theme_dir +# (https://github.com/mkdocs/mkdocs/wiki/MkDocs-Themes) +# mkdocs-material>=5.4.0