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 with stages
in 16 seconds
......@@ -16,3 +16,7 @@ dist
*.tar.gz
*.whl
*.egg-info
# mkdocs
site
\ No newline at end of file
stages:
- pretest
- test
- deploy
linter:
stage: pretest
......@@ -23,3 +25,29 @@ typechecker:
- mypy src/pystencilssfg
tags:
- 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.
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!):
```shell
$ git clone https://i10git.cs.fau.de/da15siwa/pystencils-sfg.git
$ cd pystencils-sfg
$ pip install .
```bash
git clone https://i10git.cs.fau.de/da15siwa/pystencils-sfg.git
cd pystencils-sfg
pip install .
```
### From PyPI
......@@ -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:
```shell
$ python poisson_smoother.py
python poisson_smoother.py
```
This command will execute the code generator through the `SourceFileGenerator` context manager.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment