forked from CanberraUAV/admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conf.py
57 lines (43 loc) · 1.61 KB
/
conf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# -*- coding: utf-8 -*-
#
# CanberrraUAV Administrivia documentation build configuration file, created by
# sphinx-quickstart on Mon Feb 25 21:28:16 2013.
#
import sys, os
# -- General configuration -----------------------------------------------------
extensions = ['sphinx.ext.todo', 'sphinxcontrib.spelling']
spelling_lang='en_AU'
spelling_word_list_filename='OK_wordlist.txt'
spelling_show_suggestions=True
templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
project = u'CanberrraUAV Administrivia'
copyright = u'2013, CanberraUAV Team'
version = '0.1'
release = '0.1'
exclude_trees = ['_build']
pygments_style = 'sphinx'
# -- Options for HTML output ---------------------------------------------------
html_theme = 'default'
html_static_path = ['_static']
htmlhelp_basename = 'CanberrraUAVAdministriviadoc'
# -- Options for LaTeX output --------------------------------------------------
latex_documents = [
('index', 'CanberrraUAVAdministrivia.tex', u'CanberrraUAV Administrivia Documentation',
u'CanberraUAV Team', 'manual'),
]
# Reverse toctree hack, so that we can have most recent meeting minutes first
# to use this, add ":reversed:" parameter to toctree directives.
from sphinx.directives import TocTree
from docutils.parsers.rst import directives
class NewTocTree(TocTree):
option_spec = dict(TocTree.option_spec,
reversed=directives.flag)
def run(self):
rst = super(NewTocTree, self).run()
if 'reversed' in self.options:
rst[0][0]['entries'].reverse()
return rst
def setup(app):
app.add_directive('toctree', NewTocTree)