forked from renode/renode-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.ci.yml
More file actions
26 lines (22 loc) · 632 Bytes
/
.ci.yml
File metadata and controls
26 lines (22 loc) · 632 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
image: $DOCKER_IMAGE
before_script:
- python3 -m pip install -r requirements.txt
variables:
DOCS_DIR: '.'
CONF_PY_STRING: '\nhtml_context = {"conf_py_path": "$DOCS_DIR/source/"}'
build-and-deploy:
tags:
- docs
script:
- cd $DOCS_DIR
- echo -e $CONF_PY_STRING >> source/conf.py
- make html
- rm -R build/html/_sources
- make text
- find build/text/ -type f -name '*.txt' -execdir rename 's/\.txt/\.rst\.txt/' {} \;
- mv build/text build/html/_sources
- mv build/html $CI_PROJECT_NAME
- cp -r $CI_PROJECT_NAME /opt/docs/
artifacts:
paths:
- $DOCS_DIR/$CI_PROJECT_NAME