Skip to content

Commit 7fa5b5e

Browse files
committed
autorun, latex formatting, google analytics
1 parent 88e91bb commit 7fa5b5e

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

docs/source/conf.py

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,13 @@
4242
'sphinx.ext.coverage',
4343
'sphinx.ext.doctest',
4444
'sphinx.ext.inheritance_diagram',
45+
'sphinx_autorun',
4546
]
47+
#'sphinx-prompt',
4648
#'recommonmark',
4749
#'sphinx.ext.autosummary',
4850
#'sphinx_markdown_tables',
4951
#
50-
5152
# inheritance_node_attrs = dict(style='rounded,filled', fillcolor='lightblue')
5253
inheritance_node_attrs = dict(style='rounded')
5354

@@ -62,7 +63,7 @@
6263
# This pattern also affects html_static_path and html_extra_path.
6364
exclude_patterns = ['test_*']
6465

65-
66+
add_module_names = False
6667
# -- Options for HTML output -------------------------------------------------
6768

6869
# The theme to use for HTML and HTML Help pages. See the documentation for
@@ -81,6 +82,7 @@
8182
#'description': 'Spatial maths and geometry for Python',
8283
'display_version': True,
8384
'prev_next_buttons_location': 'both',
85+
'analytics_id': 'G-11Q6WJM565',
8486

8587
}
8688
html_logo = '../figs/CartesianSnakes_LogoW.png'
@@ -94,3 +96,18 @@
9496
html_last_updated_fmt = '%d-%b-%Y'
9597
# extensions = ['rst2pdf.pdfbuilder']
9698
# pdf_documents = [('index', u'rst2pdf', u'Sample rst2pdf doc', u'Your Name'),]
99+
latex_engine = 'xelatex'
100+
# maybe need to set graphics path in here somewhere
101+
# \graphicspath{{figures/}{../figures/}{C:/Users/me/Documents/project/figures/}}
102+
# https://stackoverflow.com/questions/63452024/how-to-include-image-files-in-sphinx-latex-pdf-files
103+
latex_elements = {
104+
# The paper size ('letterpaper' or 'a4paper').
105+
'papersize': 'a4paper',
106+
#'releasename':" ",
107+
# Sonny, Lenny, Glenn, Conny, Rejne, Bjarne and Bjornstrup
108+
# 'fncychap': '\\usepackage[Lenny]{fncychap}',
109+
'fncychap': '\\usepackage{fncychap}',
110+
}
111+
112+
autorun_languages = {}
113+
autorun_languages['pycon_output_encoding'] = 'UTF-8'

0 commit comments

Comments
 (0)