forked from magmaindia/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
59 lines (49 loc) · 1.37 KB
/
docker-compose.yaml
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: "3.9"
services:
build:
image: python
working_dir: /var/opt/build/
volumes:
- "./build/:/var/opt/build/"
- "./static/:/var/opt/static/"
- "./docs/:/var/opt/docs/"
command:
- bash
- -c
- |
apt update
apt install -y python3-sphinx python3-sphinx-rtd-theme
sphinx-quickstart \
--no-sep \
--project "Magma India Documentation" \
--author "Magma India" \
--release "0.1.0" \
--language "en" \
--ext-autodoc \
--ext-doctest \
--ext-intersphinx \
--ext-todo \
--ext-coverage \
--ext-imgmath \
--ext-mathjax \
--ext-ifconfig \
--ext-viewcode \
--ext-githubpages
sed -i 's/alabaster/sphinx_rtd_theme/' conf.py
cat << EOF >> conf.py
html_context = {
'display_github': True,
'github_user': 'magmaindia',
'github_repo': 'docs',
'github_version': 'master/docs/'
}
html_logo = "_static/magma-logo.png"
html_theme_options = {
'navigation_depth': 10
}
EOF
cp -r ../docs/* .
cp -r ../static/* _static/
make html
sed -i 's/2980B9/5500a6/g' _build/html/_static/css/theme.css
echo "docs.magmaindia.org" > _build/html/CNAME