diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6fcd50118a50ac8cc79399e814fef7371342c430..812912b75eda090924c70fed91d3015249700800 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -20,11 +20,27 @@ site: paths: - "./output/" + +docs: + stage: build + before_script: + - apt-get update && apt-get install -y --no-install-recommends python3-pip python3 make git wget software-properties-common + - wget -O pandoc.deb https://github.com/jgm/pandoc/releases/download/2.18/pandoc-2.18-1-amd64.deb && dpkg -i pandoc.deb && rm --interactive=never pandoc.deb + - pip3 install -r requirements.txt + script: + - make docs + artifacts: + paths: + - "./docs-output/" + pages: stage: deploy - needs: [ "site" ] + needs: [ "site", "docs" ] script: - - mv -v ./output ./public + - mkdir -p ./public + - cp -v ./index.html ./public/ + - mv -v ./output/ ./public/ + - mv -v ./docs-output/ ./public/ artifacts: paths: - "./public/" diff --git a/Makefile b/Makefile index aa07fdc4e7484ced087fe1932f5ebc04df801f79..74de51efcab06dc6e69b2fa2b9af0b85bf654d65 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ html: docs build .PHONY: publish -publish: docs build +publish: build .PHONY: build build: mathjax diff --git a/index.html b/index.html new file mode 100644 index 0000000000000000000000000000000000000000..7f081319ab3c262ac7acece95b05a69611cf280e --- /dev/null +++ b/index.html @@ -0,0 +1,4 @@ +<ul> + <li><a href="./docs-output">Dokumentation</a></li> + <li><a href="./content">Preview Seite</a></li> +</ul>