-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconf.py
75 lines (62 loc) · 1.93 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Configuration file for the Sphinx documentation builder.
# -- Project information -----------------------------------------------------
project = 'Birth outcomes'
copyright = '2024, Amy Heather'
author = 'Amy Heather'
# -- General configuration ---------------------------------------------------
extensions = [
'sphinxcontrib.mermaid', # To render mermaid diagrams
'myst_nb', # Parse .ipynb files
'sphinxcontrib.bibtex', # Insert BibTeX citations
'sphinx_copybutton', # Adds a copy button next to code blocks
'sphinx_togglebutton', # Allows you to make admonitions toggle-able
'sphinx_design' # Allows grides, cards, dropdowns, tabs, badges, etc.
]
myst_enable_extensions = [
'colon_fence' # To use sphinx-desin alongside myst_parser
]
# File types for documentation
source_suffix = ['.md', '.ipynb']
# Files to ignore
exclude_patterns = [
'**.ipynb_checkpoints',
'.DS_Store',
'Thumbs.db',
'_build',
'README.md'
]
# Notebook execution
nb_execution_allow_errors = False
nb_execution_cache_path = ''
nb_execution_excludepatterns = []
nb_execution_in_temp = False
nb_execution_mode = 'off'
nb_execution_timeout = 30
# Bibliography
bibtex_bibfiles = ['references.bib']
bibtex_default_style = 'unsrt'
bibtex_reference_style = 'super'
# -- Options for HTML output -------------------------------------------------
html_theme = 'pydata_sphinx_theme'
html_theme_options = {
# Set logo
'logo': {
# 'text': 'PenCHORD'
'image_light': 'images/penchord_birth.png',
'image_dark': 'images/penchord_birth.png',
'alt_text': 'PenCHORD'
},
# Add icons to the bar across the top
'icon_links': [
{
'name': 'GitHub',
'url': 'https://github.com/birth-outcomes/birth_outcomes_summary',
'icon': 'fab fa-github-square'
}
]
}
# Custom CSS style sheet
html_static_path = ['_static']
html_css_files = [
'css/custom.css',
]