-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild_docs.sh
More file actions
executable file
·38 lines (28 loc) · 1.21 KB
/
build_docs.sh
File metadata and controls
executable file
·38 lines (28 loc) · 1.21 KB
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
#!/usr/bin/env bash
rm -rf doc/build/html
sphinx-apidoc --separate --implicit-namespaces -f -o doc/source/reference/materials_commons materials_commons
python3 setup.py build_sphinx
cd doc/build/html
ls *.html | xargs sed -i 's/_sources/site_sources/g'
ls *.html | xargs sed -i 's/_static/site_static/g'
ls *.html | xargs sed -i 's/_modules/site_modules/g'
ls *.html | xargs sed -i 's/_images/site_images/g'
ls *.js | xargs sed -i 's/_sources/site_sources/g'
ls *.js | xargs sed -i 's/_static/site_static/g'
ls *.js | xargs sed -i 's/_modules/site_modules/g'
cd reference/materials_commons
ls *.html | xargs sed -i 's/_sources/site_sources/g'
ls *.html | xargs sed -i 's/_static/site_static/g'
ls *.html | xargs sed -i 's/_modules/site_modules/g'
ls *.html | xargs sed -i 's/_images/site_images/g'
cd ../..
cd manual
ls *.html | xargs sed -i 's/_sources/site_sources/g'
ls *.html | xargs sed -i 's/_static/site_static/g'
ls *.html | xargs sed -i 's/_modules/site_modules/g'
ls *.html | xargs sed -i 's/_images/site_images/g'
cd ..
mv _sources site_sources
mv _static site_static
mv _modules site_modules
mv _images site_images