git-cola v2.11
[git-cola.git] / share / doc / git-cola / conf.py
blob81461138e4cde3a1afe38a9b282da68dcaf7b0f1
1 # -*- coding: utf-8 -*-
2 import sys, os
4 # Add the cola source directory to sys.path
5 abspath = os.path.abspath(os.path.realpath(__file__))
6 docdir = os.path.dirname(os.path.dirname(abspath))
7 srcdir = os.path.dirname(os.path.dirname(docdir))
8 extrasdir = os.path.join(srcdir, 'extras')
9 sys.path.insert(1, extrasdir)
11 extensions = ['sphinx.ext.autodoc',
12 'sphinx.ext.doctest',
13 'sphinx.ext.todo',
14 'sphinx.ext.coverage',
15 'sphinxtogithub']
17 templates_path = ['_templates']
18 source_suffix = '.rst'
19 source_encoding = 'utf-8'
20 master_doc = 'index'
22 project = 'git-cola'
23 copyright = '2007-2016, David Aguilar and contributors'
24 authors = 'David Aguilar and contributors'
26 versionfile = os.path.join(srcdir, 'cola', '_version.py')
27 scope = {}
28 with open(versionfile) as f:
29 exec(f.read(), scope)
31 # The short X.Y version.
32 version = scope['VERSION']
33 # The full version, including alpha/beta/rc tags.
34 release = version
36 exclude_trees = ['_build']
37 add_function_parentheses = True
38 pygments_style = 'default'
39 html_theme = 'sphinx_rtd_theme'
40 html_theme_path = ['_themes']
41 html_static_path = ['_static']
42 html_show_sourcelink = True
43 htmlhelp_basename = 'git-cola-doc'
45 man_pages = [
46 ('git-cola', 'git-cola', 'The highly caffeinated Git GUI',
47 authors, '1'),
48 ('git-dag', 'git-dag', 'The sleek and powerful Git history browser',
49 authors, '1'),
52 latex_documents = [
53 ('index', 'git-cola.tex', 'git-cola Documentation',
54 'David Aguilar and contributors', 'manual'),