-
Notifications
You must be signed in to change notification settings - Fork 38
/
conf.py
157 lines (139 loc) · 3.89 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# Configuration file for the Sphinx documentation builder.
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
import os
import sys
# Load local extensions
sys.path.append(os.path.abspath("./_ext"))
# -- Project information -----------------------------------------------------
project = "OceanHackWeek"
author = "OceanHackWeek contributors"
# -- Sphinx config ---------------------------------------------------
extensions = [
"myst_nb",
# "myst_parser",
"ablog",
"sphinx_design",
"ohw_team",
]
# sphinx_panels config
panels_add_bootstrap_css = True
templates_path = ["_templates"]
pygments_style = "sphinx"
exclude_patterns = [
"_build",
"Thumbs.db",
".DS_Store",
"*import_posts*",
"**/pandoc_ipynb/inputs/*",
"ipynb_checkpoints/*",
"posts/**/.ipynb_checkpoints/*",
".github/*",
".history",
"github_submodule/*",
"LICENSE.md",
"README.md",
"jupyter_execute/**/*",
"_InstructionSiteUpdates.md",
"_build/**",
]
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
# I'm using a custom footer in _templates
html_show_sphinx = True
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
html_show_copyright = True
copyright = "2023, OceanHackWeek"
# -- HTML Config -------------------------------------------------
html_theme = "pydata_sphinx_theme"
html_theme_options = {
"search_bar_text": "Search this site...",
# "google_analytics_id": "",
"navbar_end": [
# "search-field.html",
"navbar-icon-links"
],
"icon_links": [
{
"name": "GitHub",
"url": "https://github.com/oceanhackweek/",
"icon": "fab fa-github-square",
},
{
"name": "Discussions",
"url": "https://github.com/orgs/oceanhackweek/discussions",
"icon": "fas fa-comments",
},
{
"name": "Twitter",
"url": "https://twitter.com/oceanhackweek",
"icon": "fab fa-twitter-square",
},
{
"name": "YouTube",
"url": "https://www.youtube.com/@OceanHackWeek/playlists",
"icon": "fab fa-youtube-square",
},
{
"name": "Email",
"url": "/about/contact.html",
"icon": "fas fa-envelope",
},
],
"use_edit_page_button": True,
"header_links_before_dropdown": 3,
}
html_scaled_image_link = False
html_context = {
"github_user": "oceanhackweek",
"github_repo": "oceanhackweek.github.io",
"github_version": "source",
}
html_title = "OceanHackWeek"
# html_favicon = "_static/magnifying.ico"
html_static_path = ["_static"]
html_sidebars = {
"index": [
"hello.html",
# "recentposts.html"
],
"about": ["hello.html"],
"posts/**": [
"hello.html",
"recentposts.html",
"archives.html",
# "tags.html"
],
"**": [
"hello.html",
# "search-field.html",
"sidebar-nav-bs.html",
# "recentposts.html",
# "archives.html", "tags.html"
],
}
blog_baseurl = ""
blog_title = "OceanHackWeek"
blog_path = "posts"
fontawesome_included = True
blog_post_pattern = "posts/**/*"
post_redirect_refresh = 1
post_auto_image = 1
post_auto_excerpt = 1
post_date_format = "%d %B %Y"
# -- Myst config ---------------------------------------------------
myst_admonition_enable = True
myst_deflist_enable = True
myst_heading_anchors = 3
myst_update_mathjax = False
myst_enable_extensions = [
"colon_fence",
"strikethrough",
"substitution",
]
extensions += ["ablog"]
# Temporarily stored as off until we fix it
jupyter_execute_notebooks = "off" # TODO test
nb_custom_formats = {".Rmd": ["jupytext.reads", {"fmt": "Rmd"}]}
def setup(app):
app.add_css_file("custom.css")