Skip to content

Commit e733a71

Browse files
committed
set version in Makefile before building html
--HG-- rename : sphinx/pkg/conf.py => docs/sphinx/pkg/conf.py rename : sphinx/web/conf.py => docs/sphinx/web/conf.py rename : sphinx/web/templates/layout.html => docs/sphinx/web/templates/layout.html
1 parent 024a049 commit e733a71

File tree

5 files changed

+15
-11
lines changed

5 files changed

+15
-11
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
export VERSION=$(shell python setup.py --version)
12

23
.PHONY: sdist
34
sdist: html
@@ -9,6 +10,9 @@ html:
910
(cd docs && $(MAKE) html)
1011
cp -r docs/build/html virtualenvwrapper/docs
1112

13+
.PHONY: website
14+
website:
15+
1216
TEST_SCRIPTS=$(wildcard tests/test*.sh)
1317

1418
.PHONY: test test-bash test-sh test-zsh test-loop

docs/source/conf.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
#
33
# virtualenvwrapper documentation build configuration file, created by
4-
# sphinx-quickstart on Wed Mar 31 21:25:16 2010.
4+
# sphinx-quickstart on Thu May 28 22:35:13 2009.
55
#
66
# This file is execfile()d with the current directory set to its containing dir.
77
#
@@ -22,10 +22,10 @@
2222

2323
# Add any Sphinx extension module names here, as strings. They can be extensions
2424
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
25-
extensions = ['sphinx.ext.autodoc']
25+
extensions = []
2626

2727
# Add any paths that contain templates here, relative to this directory.
28-
templates_path = ['_templates']
28+
templates_path = ['templates']
2929

3030
# The suffix of source filenames.
3131
source_suffix = '.rst'
@@ -38,16 +38,16 @@
3838

3939
# General information about the project.
4040
project = u'virtualenvwrapper'
41-
copyright = u'2010, Doug Hellmann'
41+
copyright = u'2009, Doug Hellmann'
4242

4343
# The version info for the project you're documenting, acts as replacement for
4444
# |version| and |release|, also used in various other places throughout the
4545
# built documents.
4646
#
4747
# The short X.Y version.
48-
version = '2.0'
48+
version = os.environ['VERSION']
4949
# The full version, including alpha/beta/rc tags.
50-
release = '2.0'
50+
release = version
5151

5252
# The language for content autogenerated by Sphinx. Refer to documentation
5353
# for a list of supported languages.
@@ -64,7 +64,7 @@
6464

6565
# List of directories, relative to source directory, that shouldn't be searched
6666
# for source files.
67-
exclude_trees = []
67+
exclude_trees = ['_build']
6868

6969
# The reST default role (used for this markup: `text`) to use for all documents.
7070
#default_role = None
@@ -91,7 +91,7 @@
9191

9292
# The theme to use for HTML and HTML Help pages. Major themes that come with
9393
# Sphinx are currently 'default' and 'sphinxdoc'.
94-
html_theme = 'default'
94+
html_theme = 'sphinxdoc'
9595

9696
# Theme options are theme-specific and customize the look and feel of a theme
9797
# further. For a list of options available for each theme, see the
@@ -120,7 +120,7 @@
120120
# Add any paths that contain custom static files (such as style sheets) here,
121121
# relative to this directory. They are copied after the builtin static files,
122122
# so a file named "default.css" will overwrite the builtin "default.css".
123-
html_static_path = ['_static']
123+
html_static_path = ['static']
124124

125125
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
126126
# using the given strftime format.
@@ -138,10 +138,10 @@
138138
#html_additional_pages = {}
139139

140140
# If false, no module index is generated.
141-
#html_use_modindex = True
141+
html_use_modindex = False
142142

143143
# If false, no index is generated.
144-
#html_use_index = True
144+
html_use_index = False
145145

146146
# If true, the index is split into individual pages for each letter.
147147
#html_split_index = False

0 commit comments

Comments
 (0)