blob: 04d500733982cf3e4bf281b92a03f5427e1046cf (
plain)
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
|
#!/bin/bash
#
# Sphinx templater module.
#
# Parameters
SHARE="$1"
# Include basic functions
source $SHARE/templater/functions || exit 1
# Sphinx implementation
function templater_sphinx {
if [ ! -e "conf.py" ]; then
templater_echo "Setting up sphinx..."
#templater_checkout_develop
templater_copy_or_append sphinx .gitignore
cp $SHARE/sphinx/files/conf.py .
templater_install_makefile $SHARE/sphinx/files/Makefile.sphinx
if [ ! -d "_static" ]; then
cp -r $SHARE/sphinx/files/_static .
fi
if [ ! -d "_themes" ]; then
mkdir _themes
git submodule add https://github.com/snide/sphinx_rtd_theme _themes/sphinx_rtd_theme
fi
else
templater_echo "Sphinx already set"
fi
}
# Dispatch
templater_sphinx
|