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
38
38
# Documentation
39
39
.PHONY : html
40
40
html :
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" )
43
43
44
44
.PHONY : docclean
45
45
docclean :
@@ -50,8 +50,8 @@ docclean:
50
50
website :
51
51
[ ~ /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
52
52
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" )
55
55
56
56
installwebsite : website
57
57
(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 13
13
14
14
import sys , os
15
15
16
+ building_web = int (os .environ .get ('BUILDING_WEB' , '0' ))
17
+
16
18
# If extensions (or modules to document with autodoc) are in another directory,
17
19
# add these directories to sys.path here. If the directory is relative to the
18
20
# documentation root, use os.path.abspath to make it absolute, like shown here.
27
29
bitbucket_project_url = 'http://bitbucket.org/dhellmann/virtualenvwrapper/'
28
30
29
31
# 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' ]
31
36
32
37
# The suffix of source filenames.
33
38
source_suffix = '.rst'
93
98
94
99
# The theme to use for HTML and HTML Help pages. Major themes that come with
95
100
# Sphinx are currently 'default' and 'sphinxdoc'.
96
- html_theme = 'sphinxdoc'
101
+ if building_web :
102
+ html_theme = 'default'
103
+ else :
104
+ html_theme = 'sphinxdoc'
97
105
98
106
# Theme options are theme-specific and customize the look and feel of a theme
99
107
# 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