-
Notifications
You must be signed in to change notification settings - Fork 12
/
conf.py
116 lines (98 loc) · 3.43 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
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
import sys
from os import path, environ
project = 'HyperSpy'
copyright = '2024, The HyperSpy community'
author = 'The HyperSpy community'
language = 'en'
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [
'ablog',
'sphinx_design',
'sphinx.ext.intersphinx',
'sphinx.ext.githubpages',
'sphinx_favicon',
'sphinx_sitemap',
'sphinxcontrib.youtube',
'selective_css',
]
linkcheck_ignore = [
"https://sbmm.org.br/en/28o-csbmm", # 403 Client Error: Forbidden for url
"https://www.diamond.ac.uk/Home/Events", # - 403 Client Error: Forbidden for url: https://www.diamond.ac.uk/Home/Events/2023/HyperSpy_2023.html
]
# sitemap settings
html_baseurl = environ.get("SPHINX_HTML_BASE_URL", "https://hyperspy.org")
sitemap_locales = [None]
sitemap_url_scheme = "{link}"
templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
intersphinx_mapping = {
"hyperspy": ("https://hyperspy.org/hyperspy-doc/current/", None),
}
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_baseurl = "https://hyperspy.org"
html_theme = 'pydata_sphinx_theme'
html_static_path = ['_static']
html_css_files = ["custom.css"]
html_title = "HyperSpy Website"
favicons = ["hyperspy_logo.ico", ]
html_theme_options = {
"analytics": {
"google_analytics_id": "G-B0XD0GTW1M",
},
"announcement": "<font size='+1'><b><a href='https://hyperspy.org/hyperspy-doc/v2.0/changes.html'>HyperSpy 2.0 released!</a></b></font>",
"external_links": [
{
"url": "https://hyperspy.org/hyperspy-doc/current",
"name": "Documentation",
},
{
"url": "https://hyperspy.org/hyperspy-doc/current/user_guide/install.html",
"name": "Install",
},
{
"url": "https://hyperspy.org/jupyterlite-hyperspy",
"name": "Try",
},
],
"github_url": "https://github.com/hyperspy",
"icon_links": [
{
"name": "Gitter",
"url": "https://gitter.im/hyperspy/hyperspy",
"icon": "fab fa-gitter",
},
],
"logo": {
"alt_text": "HyperSpy",
"image_light": "_static/hyperspy-banner-small-light.svg",
"image_dark": "_static/hyperspy-banner-small-dark.svg",
},
"navbar_persistent": [ ],
"secondary_sidebar_items": [],
"show_prev_next": False,
}
# -- ABlog ---------------------------------------------------
blog_path = "news/index"
blog_authors = {
"hyperspy": ("HyperSpy", "https://hyperspy.org"),
}
html_sidebars = {
"sections/**": [ ],
"news/**": [
"ablog/postcard.html",
"ablog/recentposts.html",
"ablog/tagcloud.html",
"ablog/categories.html",
"ablog/authors.html",
],
}
# add path to local sphinx extensions
sys.path.append(path.join(path.dirname(path.abspath(__file__)), "extensions"))