File tree Expand file tree Collapse file tree 3 files changed +14
-202
lines changed
Expand file tree Collapse file tree 3 files changed +14
-202
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ sdist: html
3838# Documentation
3939.PHONY : html
4040html :
41- (cd docs && $( MAKE) html SPHINXOPTS=" -c sphinx/pkg " LANGUAGE=" en" )
42- (cd docs && $( MAKE) html SPHINXOPTS=" -c sphinx/pkg " LANGUAGE=" es" )
41+ (cd docs && $( MAKE) html SPHINXOPTS=" -c sphinx" LANGUAGE=" en" )
42+ (cd docs && $( MAKE) html SPHINXOPTS=" -c sphinx" LANGUAGE=" es" )
4343
4444.PHONY : docclean
4545docclean :
@@ -50,8 +50,8 @@ docclean:
5050website :
5151 [ ~ /Devel/doughellmann/doughellmann/templates/base.html -nt docs/sphinx/web/templates/base.html ] && (echo " Updating base.html" ; cp ~ /Devel/doughellmann/doughellmann/templates/base.html docs/sphinx/web/templates/base.html) || exit 0
5252 rm -rf docs/website
53- (cd docs && $( MAKE) html SPHINXOPTS=" -c sphinx/web " BUILDDIR=" website/en" LANGUAGE=" en" )
54- (cd docs && $( MAKE) html SPHINXOPTS=" -c sphinx/web " BUILDDIR=" website/es" LANGUAGE=" es" )
53+ (cd docs && $( MAKE) html BUILDING_WEB=1 SPHINXOPTS=" -c sphinx" BUILDDIR=" website/en" LANGUAGE=" en" )
54+ (cd docs && $( MAKE) html BUILDING_WEB=1 SPHINXOPTS=" -c sphinx" BUILDDIR=" website/es" LANGUAGE=" es" )
5555
5656installwebsite : website
5757 (cd docs/website/en && rsync --rsh=ssh --archive --delete --verbose . www.doughellmann.com:/var/www/doughellmann/DocumentRoot/docs/virtualenvwrapper/)
Original file line number Diff line number Diff line change 1313
1414import sys , os
1515
16+ building_web = int (os .environ .get ('BUILDING_WEB' , '0' ))
17+
1618# If extensions (or modules to document with autodoc) are in another directory,
1719# add these directories to sys.path here. If the directory is relative to the
1820# documentation root, use os.path.abspath to make it absolute, like shown here.
2729bitbucket_project_url = 'http://bitbucket.org/dhellmann/virtualenvwrapper/'
2830
2931# Add any paths that contain templates here, relative to this directory.
30- templates_path = ['templates' ]
32+ if building_web :
33+ templates_path = ['web/templates' ]
34+ else :
35+ templates_path = ['pkg/templates' ]
3136
3237# The suffix of source filenames.
3338source_suffix = '.rst'
9398
9499# The theme to use for HTML and HTML Help pages. Major themes that come with
95100# Sphinx are currently 'default' and 'sphinxdoc'.
96- html_theme = 'sphinxdoc'
101+ if building_web :
102+ html_theme = 'default'
103+ else :
104+ html_theme = 'sphinxdoc'
97105
98106# Theme options are theme-specific and customize the look and feel of a theme
99107# further. For a list of options available for each theme, see the
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments