#!/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