|
|
|
@ -21,20 +21,17 @@ pipeline:
|
|
|
|
- make api-docs
|
|
|
|
- make api-docs
|
|
|
|
|
|
|
|
|
|
|
|
slate-docs:
|
|
|
|
slate-docs:
|
|
|
|
image: 'slatedocs/slate'
|
|
|
|
image: 'slatedocs/slate:v2.13.0'
|
|
|
|
group: 'generate'
|
|
|
|
group: 'generate'
|
|
|
|
# Slate requires a specific directory to run in
|
|
|
|
# Slate requires a specific directory to run in
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- rm -rf /srv/slate/source
|
|
|
|
- cd docs/api
|
|
|
|
- mv "$CI_WORKSPACE/docs/api" /srv/slate/source
|
|
|
|
- bundle exec middleman build --clean
|
|
|
|
- cd /srv/slate
|
|
|
|
|
|
|
|
- /srv/slate/slate.sh build
|
|
|
|
|
|
|
|
- mv /srv/slate/build "$CI_WORKSPACE/docs/api-build"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
archive:
|
|
|
|
archive:
|
|
|
|
image: 'alpine'
|
|
|
|
image: 'alpine'
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- cp -r docs/api-build docs/public/api
|
|
|
|
- cp -r docs/api/build docs/public/api
|
|
|
|
- 'cd docs/public && tar czvf ../../docs.tar.gz *'
|
|
|
|
- 'cd docs/public && tar czvf ../../docs.tar.gz *'
|
|
|
|
- 'cd ../../src/_docs && tar czvf ../../api-docs.tar.gz *'
|
|
|
|
- 'cd ../../src/_docs && tar czvf ../../api-docs.tar.gz *'
|
|
|
|
when:
|
|
|
|
when:
|
|
|
|
|