Skip to content

Commit f3c9076

Browse files
committed
Merge branch 'feature/review-docs-build' into develop
2 parents 0990801 + 61343b4 commit f3c9076

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

docs/conf.py

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,17 @@
1111
#
1212
# All configuration values have a default; values that are commented out
1313
# serve to show the default.
14-
15-
import sys
1614
import os
17-
import shlex
15+
import re
16+
import sys
1817

19-
# If extensions (or modules to document with autodoc) are in another directory,
20-
# add these directories to sys.path here. If the directory is relative to the
21-
# documentation root, use os.path.abspath to make it absolute, like shown here.
22-
#sys.path.insert(0, os.path.abspath('.'))
18+
from datetime import date
19+
HERE = os.path.abspath(os.path.dirname(__file__))
20+
21+
sys.path.append(HERE)
22+
sys.path.append(os.path.join(HERE, '..'))
23+
24+
import tagging
2325

2426
# -- General configuration ------------------------------------------------
2527

@@ -34,6 +36,10 @@
3436
'sphinx.ext.intersphinx',
3537
]
3638

39+
intersphinx_mapping = {
40+
'django': ('http://readthedocs.org/docs/django/en/latest/', None),
41+
}
42+
3743
# Add any paths that contain templates here, relative to this directory.
3844
templates_path = ['_templates']
3945

@@ -49,18 +55,18 @@
4955
master_doc = 'index'
5056

5157
# General information about the project.
52-
project = u'django-tagging'
53-
copyright = u'2015, Fantomas42'
54-
author = u'Fantomas42'
58+
project = u'Django Tagging'
59+
copyright = '%s, %s' % (date.today().year, tagging.__maintainer__)
60+
author = tagging.__author__
5561

5662
# The version info for the project you're documenting, acts as replacement for
5763
# |version| and |release|, also used in various other places throughout the
5864
# built documents.
5965
#
60-
# The short X.Y version.
61-
version = '0.4'
6266
# The full version, including alpha/beta/rc tags.
63-
release = '0.4.dev0'
67+
release = tagging.__version__
68+
# The short X.Y version.
69+
version = re.match(r'\d+\.\d+(?:\.\d+)?', release).group()
6470

6571
# The language for content autogenerated by Sphinx. Refer to documentation
6672
# for a list of supported languages.
@@ -111,7 +117,7 @@
111117

112118
# The theme to use for HTML and HTML Help pages. See the documentation for
113119
# a list of builtin themes.
114-
html_theme = 'alabaster'
120+
html_theme = 'default'
115121

116122
# Theme options are theme-specific and customize the look and feel of a theme
117123
# further. For a list of options available for each theme, see the
@@ -285,7 +291,3 @@
285291

286292
# If true, do not generate a @detailmenu in the "Top" node's menu.
287293
#texinfo_no_detailmenu = False
288-
289-
290-
# Example configuration for intersphinx: refer to the Python standard library.
291-
intersphinx_mapping = {'https://docs.python.org/': None}

0 commit comments

Comments
 (0)