Deploy docs to gitlab pages
This commit is contained in:
parent
62eb758157
commit
7c9301117d
@ -34,7 +34,7 @@ stages:
|
|||||||
# Create documentation in all available languages so we'll have it at http://socializer.su/documentation
|
# Create documentation in all available languages so we'll have it at http://socializer.su/documentation
|
||||||
# this job is triggered on every commit to master, so we always will display the latest available version of the documentation in the website.
|
# this job is triggered on every commit to master, so we always will display the latest available version of the documentation in the website.
|
||||||
# We are not using the configure_environment job cause it adds all the dependencies, which are not needed for this to work.
|
# We are not using the configure_environment job cause it adds all the dependencies, which are not needed for this to work.
|
||||||
documentation:
|
pages:
|
||||||
stage: generate_docs
|
stage: generate_docs
|
||||||
image: python
|
image: python
|
||||||
interruptible: true
|
interruptible: true
|
||||||
@ -45,16 +45,17 @@ documentation:
|
|||||||
- python -m pip install --upgrade markdown
|
- python -m pip install --upgrade markdown
|
||||||
# generate all html documents.
|
# generate all html documents.
|
||||||
- cp changelog.md doc/changelog.md
|
- cp changelog.md doc/changelog.md
|
||||||
|
- mkdir public
|
||||||
- cd doc
|
- cd doc
|
||||||
- python documentation_importer.py
|
- python documentation_importer.py
|
||||||
- cd ../src
|
- cd ../src
|
||||||
- python ../doc/generator.py
|
- python ../doc/generator.py
|
||||||
- mv -f documentation ../
|
- mv -f documentation ../public
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- documentation
|
- public
|
||||||
name: socializer_documentation
|
name: socializer_documentation
|
||||||
expire_in: 1 day
|
expire_in: 1 day
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user