-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconf.py
61 lines (52 loc) · 1.72 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
57
58
59
60
61
# -*- coding: utf-8 -*-
project = 'FEniCS hands-on tutorial'
author = 'Jan Blechta, Roland Herzog, Jaroslav Hron, Gerd Wachsmuth'
copyright = '2014, 2015, 2018 ' + author
# The short X.Y version
version = '2017.2'
# The full version, including alpha/beta/rc tags
release = '2017.2.0.dev0'
extensions = [
'sphinx.ext.todo',
'sphinx.ext.mathjax',
'sphinxcontrib.contentui',
'sphinx.ext.intersphinx',
]
templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'README.rst']
pygments_style = 'sphinx'
highlight_language = 'python3'
default_role = 'py:obj'
html_title = 'FEniCS hands-on'
html_theme = 'sphinx_rtd_theme'
html_theme_options = {}
html_static_path = ['_static']
latex_elements = {
'papersize': 'a4paper',
'pointsize': '10pt',
#'preamble': '',
#'figure_align': 'htbp',
}
latex_documents = [
(master_doc, 'FEniCS-hands-on.tex', 'FEniCS hands-on', author, 'howto'),
]
## If true, `todo` and `todoList` produce output, else they produce nothing.
#todo_include_todos = True
# Enable ".. only:: {priv,pub}" sections
#tags.add('priv')
tags.add('pub')
def setup(app):
# Fixes for typesetting math
app.add_stylesheet('math.css')
## Hide on Github in the versions menu
#app.add_stylesheet('hide-on-github.css')
# Show/hide >>> button in Python snippets
app.add_javascript('copybutton.js')
intersphinx_mapping = {
'python': ('https://docs.python.org/3/', None),
'ufl': ('https://fenics.readthedocs.io/projects/ufl/en/2017.2.0.post0/', None),
'dolfin': ('https://fenics.readthedocs.io/projects/dolfin/en/2017.2.0/', None),
'pydolfinapi': ('https://fenicsproject.org/docs/dolfin/2017.2.0/python/', None),
}