|
11 | 11 | #
|
12 | 12 | # All configuration values have a default; values that are commented out
|
13 | 13 | # serve to show the default.
|
14 |
| - |
15 |
| -import sys |
16 | 14 | import os
|
17 |
| -import shlex |
| 15 | +import re |
| 16 | +import sys |
18 | 17 |
|
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 |
23 | 25 |
|
24 | 26 | # -- General configuration ------------------------------------------------
|
25 | 27 |
|
|
34 | 36 | 'sphinx.ext.intersphinx',
|
35 | 37 | ]
|
36 | 38 |
|
| 39 | +intersphinx_mapping = { |
| 40 | + 'django': ('http://readthedocs.org/docs/django/en/latest/', None), |
| 41 | +} |
| 42 | + |
37 | 43 | # Add any paths that contain templates here, relative to this directory.
|
38 | 44 | templates_path = ['_templates']
|
39 | 45 |
|
|
49 | 55 | master_doc = 'index'
|
50 | 56 |
|
51 | 57 | # 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__ |
55 | 61 |
|
56 | 62 | # The version info for the project you're documenting, acts as replacement for
|
57 | 63 | # |version| and |release|, also used in various other places throughout the
|
58 | 64 | # built documents.
|
59 | 65 | #
|
60 |
| -# The short X.Y version. |
61 |
| -version = '0.4' |
62 | 66 | # 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() |
64 | 70 |
|
65 | 71 | # The language for content autogenerated by Sphinx. Refer to documentation
|
66 | 72 | # for a list of supported languages.
|
|
111 | 117 |
|
112 | 118 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
113 | 119 | # a list of builtin themes.
|
114 |
| -html_theme = 'alabaster' |
| 120 | +html_theme = 'default' |
115 | 121 |
|
116 | 122 | # Theme options are theme-specific and customize the look and feel of a theme
|
117 | 123 | # further. For a list of options available for each theme, see the
|
|
285 | 291 |
|
286 | 292 | # If true, do not generate a @detailmenu in the "Top" node's menu.
|
287 | 293 | #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