Skip to content
Snippets Groups Projects
Commit 1c7da922 authored by Frederik Hennig's avatar Frederik Hennig
Browse files

publish docs to gitlab-pages

parent 734b370a
Branches
Tags
No related merge requests found
Pipeline #57465 failed
...@@ -16,3 +16,7 @@ dist ...@@ -16,3 +16,7 @@ dist
*.tar.gz *.tar.gz
*.whl *.whl
*.egg-info *.egg-info
# mkdocs
site
\ No newline at end of file
stages: stages:
- pretest - pretest
- test
- deploy
linter: linter:
stage: pretest stage: pretest
...@@ -23,3 +25,29 @@ typechecker: ...@@ -23,3 +25,29 @@ typechecker:
- mypy src/pystencilssfg - mypy src/pystencilssfg
tags: tags:
- docker - docker
build-documentation:
stage: test
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/documentation
script:
- pip install mkdocs mkdocs-material mkdocstrings[python]
- mkdocs build
tags:
- docker
artifacts:
paths:
- site
pages:
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/full
stage: deploy
script:
- ls -l
- mv site public # folder has to be named "public" for gitlab to publish it
artifacts:
paths:
- public
tags:
- docker
only:
- master@da15siwa/pystencils-sfg
...@@ -10,10 +10,10 @@ and your C/C++/Cuda/HIP framework. ...@@ -10,10 +10,10 @@ and your C/C++/Cuda/HIP framework.
Clone the [repository](https://i10git.cs.fau.de/da15siwa/pystencils-sfg) and install the package into your current Python environment Clone the [repository](https://i10git.cs.fau.de/da15siwa/pystencils-sfg) and install the package into your current Python environment
(usage of virtual environments is strongly encouraged!): (usage of virtual environments is strongly encouraged!):
```shell ```bash
$ git clone https://i10git.cs.fau.de/da15siwa/pystencils-sfg.git git clone https://i10git.cs.fau.de/da15siwa/pystencils-sfg.git
$ cd pystencils-sfg cd pystencils-sfg
$ pip install . pip install .
``` ```
### From PyPI ### From PyPI
...@@ -55,7 +55,7 @@ with SourceFileGenerator() as sfg: ...@@ -55,7 +55,7 @@ with SourceFileGenerator() as sfg:
Take this code, store it into a file `poisson_smoother.py`, and enter the magic words into a terminal: Take this code, store it into a file `poisson_smoother.py`, and enter the magic words into a terminal:
```shell ```shell
$ python poisson_smoother.py python poisson_smoother.py
``` ```
This command will execute the code generator through the `SourceFileGenerator` context manager. This command will execute the code generator through the `SourceFileGenerator` context manager.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment