Customize Sphinx theme

This commit is contained in:
vitaut
2015-05-19 08:13:13 -07:00
parent 4c1a0303aa
commit 18a55cdb27
83 changed files with 8602 additions and 56 deletions
+5 -4
View File
@@ -3,11 +3,13 @@
from __future__ import print_function
import os, shutil, tempfile
from subprocess import check_call, Popen, PIPE
from subprocess import check_call, check_output, Popen, PIPE
def pip_install(package, commit=None):
"Install package using pip."
if commit:
if check_output(['pip', 'show', package.split('/')[1]]):
return # Already installed
package = 'git+git://github.com/{0}.git@{1}'.format(package, commit)
check_call(['pip', 'install', '-q', package])
@@ -17,12 +19,11 @@ def build_docs(workdir, travis):
check_call(['virtualenv', virtualenv_dir])
activate_this_file = os.path.join(virtualenv_dir, 'bin', 'activate_this.py')
execfile(activate_this_file, dict(__file__=activate_this_file))
# Install Sphinx, Breathe and the Bootstrap theme.
# Install Sphinx and Breathe.
pip_install('sphinx==1.3.1')
pip_install('michaeljones/breathe', '18bd461b4e29dde0adf5df4b3da7e5473e2c2983')
pip_install('cppformat/sphinx-bootstrap-theme', '534ba82ef51c17e0f13e8e57b9fa133fa1926c80')
# Build docs.
doc_dir = os.path.dirname(__file__)
doc_dir = os.path.dirname(os.path.realpath(__file__))
p = Popen(['doxygen', '-'], stdin=PIPE)
p.communicate(input=r'''
PROJECT_NAME = C++ Format