/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/doc_generate/conf.py

  • Committer: Jelmer Vernooij
  • Date: 2020-04-05 19:11:34 UTC
  • mto: (7490.7.16 work)
  • mto: This revision was merged to the branch mainline in revision 7501.
  • Revision ID: jelmer@jelmer.uk-20200405191134-0aebh8ikiwygxma5
Populate the .gitignore file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
# All configuration values have a default; values that are commented out
7
7
# serve to show the default.
8
8
 
9
 
import sys, os
 
9
from __future__ import absolute_import
 
10
 
 
11
# FIXME: better move the content of doc/en/conf.py here and cleanup the result
 
12
# -- vila 20100428
10
13
 
11
14
# If extensions (or modules to document with autodoc) are in another directory,
12
15
# add these directories to sys.path here. If the directory is relative to the
13
16
# documentation root, use os.path.abspath to make it absolute, like shown here.
14
 
#sys.path.append(os.path.abspath('.'))
 
17
# sys.path.append(os.path.abspath('.'))
15
18
 
16
19
 
17
20
# -- General configuration -----------------------------------------------------
18
21
 
19
22
# Add any Sphinx extension module names here, as strings. They can be extensions
20
23
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
21
 
extensions = ['sphinx.ext.ifconfig']
 
24
extensions = [
 
25
    'sphinx.ext.ifconfig',
 
26
    'sphinx.ext.autodoc',
 
27
    'sphinx.ext.intersphinx',
 
28
    'sphinx_epytext',
 
29
    # 'sphinxcontrib.napoleon', # TODO: for Google docstrings
 
30
    ]
22
31
 
23
32
# Add any paths that contain templates here, relative to this directory.
24
33
templates_path = ['_templates']
33
42
master_doc = 'index'
34
43
 
35
44
# General information about the project.
36
 
project = u'Bazaar'
37
 
copyright = u'2009, Canonical Ltd'
 
45
project = u'Breezy'
 
46
copyright = u'2009-2011 Canonical Ltd, 2017-2018 Breezy Developers'
38
47
 
39
48
# The version info for the project you're documenting, acts as replacement for
40
49
# |version| and |release|, also used in various other places throughout the
41
50
# built documents.
42
51
#
43
52
# The short X.Y version.
44
 
import bzrlib
45
 
version = '.'.join(str(p) for p in bzrlib.version_info[:2])
 
53
import breezy
 
54
version = '.'.join(str(p) for p in breezy.version_info[:2])
46
55
# The full version, including alpha/beta/rc tags.
47
 
release = bzrlib.version_string
 
56
release = breezy.version_string
48
57
 
49
58
# The language for content autogenerated by Sphinx. Refer to documentation
50
59
# for a list of supported languages.
88
97
 
89
98
# The theme to use for HTML and HTML Help pages.  Major themes that come with
90
99
# Sphinx are currently 'default' and 'sphinxdoc'.
91
 
html_theme = 'default'
 
100
html_theme = 'agogo'
92
101
 
93
102
# Theme options are theme-specific and customize the look and feel of a theme
94
103
# further.  For a list of options available for each theme, see the
97
106
    # Unfortunately, the right sidebar breaks under IE6 and maybe IE7.
98
107
    # So we stick with the default left placement to cater for users stuck
99
108
    # on those browsers.
100
 
    #'rightsidebar': True,
 
109
    # 'rightsidebar': True,
101
110
 
102
111
    # Non-document areas: header (relbar), footer, sidebar, etc.
103
112
    # Some useful colours here:
104
113
    # * blue: darkblue, mediumblue, darkslateblue, cornflowerblue, royalblue,
105
114
    #   midnightblue
106
115
    # * gray: dimgray, slategray, lightslategray
107
 
    'sidebarbgcolor':   "cornflowerblue",
108
 
    'sidebarlinkcolor': "midnightblue",
109
 
    'relbarbgcolor':    "darkblue",
110
 
    'footerbgcolor':    "lightslategray",
 
116
    #'sidebarbgcolor': "cornflowerblue",
 
117
    #'sidebarlinkcolor': "midnightblue",
 
118
    #'relbarbgcolor': "darkblue",
 
119
    #'footerbgcolor': "lightslategray",
111
120
 
112
121
    # Text, heading and code colouring
113
 
    'codebgcolor':      "lightyellow",
114
 
    'codetextcolor':    "firebrick",
115
 
    'linkcolor':        "mediumblue",
 
122
    #'codebgcolor': "lightyellow",
 
123
    #'codetextcolor': "firebrick",
 
124
    #'linkcolor': "mediumblue",
116
125
    }
117
126
 
118
127
# Add any paths that contain custom themes here, relative to this directory.
132
141
# The name of an image file (within the static path) to use as favicon of the
133
142
# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
134
143
# pixels large.
135
 
html_favicon = "bzr.ico"
 
144
# TODO(jelmer): add a brz.ico
 
145
# html_favicon = "brz.ico"
136
146
 
137
147
# Add any paths that contain custom static files (such as style sheets) here,
138
148
# relative to this directory. They are copied after the builtin static files,
175
185
#html_file_suffix = ''
176
186
 
177
187
# Output file base name for HTML help builder.
178
 
htmlhelp_basename = 'bzr-docs'
 
188
htmlhelp_basename = 'brz-docs'
179
189
 
180
190
 
181
191
# -- Options for LaTeX output --------------------------------------------------
192
202
 
193
203
# The name of an image file (relative to this directory) to place at the top of
194
204
# the title page.
195
 
latex_logo = '../Bazaar-Logo-For-Manuals.png'
 
205
# latex_logo = '../Bazaar-Logo-For-Manuals.png'
196
206
 
197
207
# For "manual" documents, if this is true, then toplevel headings are parts,
198
208
# not chapters.
211
221
# -- Bazaar-specific configuration ---------------------------------------------
212
222
 
213
223
# Authors of the documents
214
 
bzr_team = u'Bazaar Developers'
 
224
brz_team = u'Breezy Developers'
 
225
 
 
226
intersphinx_mapping = {
 
227
    'python': ('https://docs.python.org/3', None),
 
228
    'testtools': ('https://testtools.readthedocs.io/en/latest', None),
 
229
    'configobj': ('https://configobj.readthedocs.io/en/latest', None),
 
230
    'dulwich': ('https://dulwich.readthedocs.io/en/latest', None),
 
231
}