1 # -*- coding: utf-8 -*-
6 import sphinx_rtd_theme
8 sphinx_rtd_theme
= None
10 # Add the cola source directory to sys.path
11 abspath
= os
.path
.abspath(os
.path
.realpath(__file__
))
12 docdir
= os
.path
.dirname(os
.path
.dirname(abspath
))
13 srcdir
= os
.path
.dirname(os
.path
.dirname(docdir
))
14 extrasdir
= os
.path
.join(srcdir
, 'extras')
15 sys
.path
.insert(1, extrasdir
)
21 'sphinx.ext.coverage',
25 extensions
.append('sphinx_rtd_theme')
27 templates_path
= ['_templates']
28 source_suffix
= '.rst'
29 source_encoding
= 'utf-8'
33 copyright
= '2007-2020, David Aguilar and contributors'
34 authors
= 'David Aguilar and contributors'
36 versionfile
= os
.path
.join(srcdir
, 'cola', '_version.py')
38 with
open(versionfile
) as f
:
39 exec (f
.read(), scope
)
41 # The short X.Y version.
42 version
= scope
['VERSION']
43 # The full version, including alpha/beta/rc tags.
46 exclude_trees
= ['_build']
47 add_function_parentheses
= True
48 pygments_style
= 'default'
51 html_theme
= 'sphinx_rtd_theme'
52 html_theme_path
= ['_themes']
53 html_static_path
= ['_static']
54 html_show_sourcelink
= True
55 htmlhelp_basename
= 'git-cola-doc'
58 ('git-cola', 'git-cola', 'The highly caffeinated Git GUI', authors
, '1'),
59 ('git-dag', 'git-dag', 'The sleek and powerful Git history browser', authors
, '1'),
62 # Sphinx 4.0 creates sub-directories for each man section.
63 # Disable this feature for consistency across Sphinx versions.
64 man_make_section_directory
= False
70 'git-cola Documentation',
71 'David Aguilar and contributors',