-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conf.py
133 lines (106 loc) · 3.9 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# Configuration file for the Sphinx documentation builder.
# -- Path setup --------------------------------------------------------------
import os
import sys
sys.path.insert(0, os.path.abspath("./_ext"))
# -- Project information -----------------------------------------------------
project = "multiphenicsx"
copyright = "2016-2024, the multiphenicsx authors"
author = "Francesco Ballarin"
# -- General configuration ---------------------------------------------------
# Add any Sphinx extension module names here.
extensions = [
"sphinxcontrib.bibtex",
"ext"
]
# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
# List of bib files
bibtex_bibfiles = ["_static/bib/publications.bib"]
# Suppress config.cache warnings
# https://github.com/sphinx-doc/sphinx/issues/12300#issuecomment-2062238457
suppress_warnings = ["config.cache"]
# -- Options for HTML output -------------------------------------------------
html_title = "multiphenicsx"
# The theme to use for HTML and HTML Help pages.
# From https://github.com/bashtage/sphinx-material
html_theme = "sphinx_material"
# Material theme options
html_theme_options = {
# Set the name of the project to appear in the navigation.
"nav_title": "multiphenicsx",
# Set you GA account ID to enable tracking
"google_analytics_account": "G-TY8PDHZR0G",
# Specify a base_url used to generate sitemap.xml. If not
# specified, then no sitemap will be built.
"base_url": "https://multiphenics.github.io/",
# Set the color and the accent color
"theme_color": "#00325c",
"color_primary": "unicatt",
"color_accent": "unicatt",
# Set the repo location to get a badge with stats
"repo_url": "https://github.com/multiphenics/multiphenicsx/",
"repo_name": "multiphenicsx",
# Visible levels of the global TOC; -1 means unlimited
"globaltoc_depth": 1,
# If False, expand all TOC entries
"globaltoc_collapse": True,
# If True, show hidden TOC entries
"globaltoc_includehidden": False,
# Path to a touch icon, should be 152x152 or larger.
"touch_icon": "images/multiphenicsx-logo.png",
"logo_icon": "",
# Main menu links
"nav_links": [
{
"href": "tutorials",
"internal": True,
"title": "Tutorials",
},
{
"href": "installing",
"internal": True,
"title": "Installation",
},
{
"href": "contributing",
"internal": True,
"title": "How to contribute",
},
{
"href": "citing",
"internal": True,
"title": "How to cite",
},
{
"href": "publications",
"internal": True,
"title": "Publications",
}
],
# Disable version dropbown
"version_dropdown": False,
}
html_sidebars = {
"**": ["logo-text.html", "globaltoc.html", "localtoc.html", "searchbox.html"]
}
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]
# Custom CSS files
html_css_files = [
"https://cdnjs.cloudflare.com/ajax/libs/jquery-dropdown/2.0.3/jquery.dropdown.min.css",
"https://fonts.googleapis.com/css?family=Pangolin",
"css/custom.css",
]
# Custom javascript files
html_js_files = [
"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js",
"https://cdnjs.cloudflare.com/ajax/libs/jquery-dropdown/2.0.3/jquery.dropdown.min.js",
"js/external_links.js"
]