sphinx-daisyui 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sphinx_daisyui/__init__.py +44 -0
- sphinx_daisyui/body.py +249 -0
- sphinx_daisyui/brand.py +61 -0
- sphinx_daisyui/events.py +202 -0
- sphinx_daisyui/icons.json +1 -0
- sphinx_daisyui/icons.py +42 -0
- sphinx_daisyui/layout.py +145 -0
- sphinx_daisyui/links.py +235 -0
- sphinx_daisyui/locale/sphinx.pot +191 -0
- sphinx_daisyui/modes.py +101 -0
- sphinx_daisyui/navigation.py +468 -0
- sphinx_daisyui/options.py +195 -0
- sphinx_daisyui/py.typed +0 -0
- sphinx_daisyui/pygments.py +115 -0
- sphinx_daisyui/search.py +40 -0
- sphinx_daisyui/theme/daisyui/components/announcement.html +7 -0
- sphinx_daisyui/theme/daisyui/components/breadcrumbs.html +11 -0
- sphinx_daisyui/theme/daisyui/components/copyright.html +6 -0
- sphinx_daisyui/theme/daisyui/components/edit-this-page.html +4 -0
- sphinx_daisyui/theme/daisyui/components/last-updated.html +1 -0
- sphinx_daisyui/theme/daisyui/components/macros.html +29 -0
- sphinx_daisyui/theme/daisyui/components/navbar-icon-links.html +8 -0
- sphinx_daisyui/theme/daisyui/components/navbar-logo.html +8 -0
- sphinx_daisyui/theme/daisyui/components/navbar-nav.html +20 -0
- sphinx_daisyui/theme/daisyui/components/page-toc.html +6 -0
- sphinx_daisyui/theme/daisyui/components/search-button-field.html +7 -0
- sphinx_daisyui/theme/daisyui/components/search-modal.html +32 -0
- sphinx_daisyui/theme/daisyui/components/sidebar-nav.html +3 -0
- sphinx_daisyui/theme/daisyui/components/sourcelink.html +4 -0
- sphinx_daisyui/theme/daisyui/components/sphinx-version.html +1 -0
- sphinx_daisyui/theme/daisyui/components/theme-switcher.html +36 -0
- sphinx_daisyui/theme/daisyui/components/theme-version.html +1 -0
- sphinx_daisyui/theme/daisyui/components/version-switcher.html +13 -0
- sphinx_daisyui/theme/daisyui/layout.html +151 -0
- sphinx_daisyui/theme/daisyui/static/scripts/announcement.js +18 -0
- sphinx_daisyui/theme/daisyui/static/scripts/back-to-top.js +25 -0
- sphinx_daisyui/theme/daisyui/static/scripts/frame.js +70 -0
- sphinx_daisyui/theme/daisyui/static/scripts/keys.js +30 -0
- sphinx_daisyui/theme/daisyui/static/scripts/mode.js +105 -0
- sphinx_daisyui/theme/daisyui/static/scripts/navigation.js +62 -0
- sphinx_daisyui/theme/daisyui/static/scripts/page-address.js +33 -0
- sphinx_daisyui/theme/daisyui/static/scripts/page-toc.js +55 -0
- sphinx_daisyui/theme/daisyui/static/scripts/search.js +252 -0
- sphinx_daisyui/theme/daisyui/static/scripts/theme-menu.js +67 -0
- sphinx_daisyui/theme/daisyui/static/scripts/versions.js +108 -0
- sphinx_daisyui/theme/daisyui/static/styles/sphinx-daisyui.css +2 -0
- sphinx_daisyui/theme/daisyui/theme.toml +55 -0
- sphinx_daisyui/themes.json +1 -0
- sphinx_daisyui/versions.py +135 -0
- sphinx_daisyui-0.1.0.dist-info/METADATA +113 -0
- sphinx_daisyui-0.1.0.dist-info/RECORD +54 -0
- sphinx_daisyui-0.1.0.dist-info/WHEEL +4 -0
- sphinx_daisyui-0.1.0.dist-info/entry_points.txt +2 -0
- sphinx_daisyui-0.1.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"""A Sphinx theme drawn with daisyUI.
|
|
2
|
+
|
|
3
|
+
Sphinx finds the theme through the ``sphinx.html_themes`` entry point, so a site
|
|
4
|
+
selects it with ``html_theme = "daisyui"`` and nothing in ``extensions``.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
|
|
9
|
+
from sphinx.application import Sphinx
|
|
10
|
+
from sphinx.util.typing import ExtensionMetadata
|
|
11
|
+
|
|
12
|
+
from .body import install_translator
|
|
13
|
+
from .events import add_page_context, check_layout
|
|
14
|
+
from .links import check_icon_links
|
|
15
|
+
from .modes import check_modes
|
|
16
|
+
from .navigation import CurrentLink, depart_current_link, visit_current_link
|
|
17
|
+
from .pygments import write_pygments_styles
|
|
18
|
+
from .versions import check_switcher
|
|
19
|
+
|
|
20
|
+
THEME_DIR = Path(__file__).parent / "theme" / "daisyui"
|
|
21
|
+
LOCALE_DIR = Path(__file__).parent / "locale"
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def setup(app: Sphinx) -> ExtensionMetadata:
|
|
25
|
+
"""Register the ``daisyui`` HTML theme.
|
|
26
|
+
|
|
27
|
+
Args:
|
|
28
|
+
app: The Sphinx application building the site.
|
|
29
|
+
|
|
30
|
+
Returns:
|
|
31
|
+
The extension's metadata, declaring it safe for parallel builds.
|
|
32
|
+
"""
|
|
33
|
+
app.add_html_theme("daisyui", str(THEME_DIR))
|
|
34
|
+
# The theme's text joins Sphinx's own domain, which is the one templates read.
|
|
35
|
+
app.add_message_catalog("sphinx", str(LOCALE_DIR))
|
|
36
|
+
app.add_node(CurrentLink, html=(visit_current_link, depart_current_link))
|
|
37
|
+
app.connect("builder-inited", check_layout)
|
|
38
|
+
app.connect("builder-inited", check_modes)
|
|
39
|
+
app.connect("builder-inited", check_icon_links)
|
|
40
|
+
app.connect("builder-inited", install_translator)
|
|
41
|
+
app.connect("builder-inited", write_pygments_styles)
|
|
42
|
+
app.connect("html-page-context", add_page_context)
|
|
43
|
+
app.connect("build-finished", check_switcher)
|
|
44
|
+
return {"parallel_read_safe": True, "parallel_write_safe": True}
|
sphinx_daisyui/body.py
ADDED
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
"""The page body: what the theme changes while Sphinx writes a page's content."""
|
|
2
|
+
|
|
3
|
+
import types
|
|
4
|
+
from typing import Any
|
|
5
|
+
|
|
6
|
+
from docutils import nodes
|
|
7
|
+
from markupsafe import escape
|
|
8
|
+
from sphinx import addnodes
|
|
9
|
+
from sphinx.application import Sphinx
|
|
10
|
+
from sphinx.locale import _, get_translation
|
|
11
|
+
from sphinx.util.math import get_node_equation_number
|
|
12
|
+
from sphinx.writers.html5 import HTML5Translator
|
|
13
|
+
|
|
14
|
+
from .icons import ICONS
|
|
15
|
+
from .navigation import NavigationMenu
|
|
16
|
+
|
|
17
|
+
translate = get_translation("sphinx")
|
|
18
|
+
|
|
19
|
+
REGION_CLASS = "daisy-sphinx-scroll"
|
|
20
|
+
ATTRIBUTION_SPACE = "\N{THIN SPACE}"
|
|
21
|
+
TOCTREE_OPEN_LEVELS = 2
|
|
22
|
+
ICON_CLASSES = "size-4.5 shrink-0"
|
|
23
|
+
ADMONITION_ICONS = {
|
|
24
|
+
"note": "info",
|
|
25
|
+
"seealso": "link",
|
|
26
|
+
"tip": "lightbulb",
|
|
27
|
+
"hint": "lightbulb",
|
|
28
|
+
"important": "star",
|
|
29
|
+
"warning": "triangle-alert",
|
|
30
|
+
"caution": "triangle-alert",
|
|
31
|
+
"attention": "triangle-alert",
|
|
32
|
+
"danger": "octagon-x",
|
|
33
|
+
"error": "octagon-x",
|
|
34
|
+
"admonition-todo": "square-plus",
|
|
35
|
+
}
|
|
36
|
+
VERSION_ICONS = {
|
|
37
|
+
"versionadded": "circle-plus",
|
|
38
|
+
"versionchanged": "pencil",
|
|
39
|
+
"deprecated": "triangle-alert",
|
|
40
|
+
"versionremoved": "circle-x",
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class PageBodyTranslator(HTML5Translator):
|
|
45
|
+
"""Changes to the HTML Sphinx writes for a page's content.
|
|
46
|
+
|
|
47
|
+
``install_translator`` puts this class in front of the translator the
|
|
48
|
+
builder already uses, so an extension's own translator keeps working.
|
|
49
|
+
|
|
50
|
+
Attributes:
|
|
51
|
+
table_depth: How many tables the one being written is inside.
|
|
52
|
+
"""
|
|
53
|
+
|
|
54
|
+
table_depth = 0
|
|
55
|
+
|
|
56
|
+
def region(self, name: str) -> str:
|
|
57
|
+
"""Write the opening tag of a focusable scroll region.
|
|
58
|
+
|
|
59
|
+
Args:
|
|
60
|
+
name: The region's accessible name.
|
|
61
|
+
|
|
62
|
+
Returns:
|
|
63
|
+
The opening tag, with its attribute values escaped.
|
|
64
|
+
"""
|
|
65
|
+
return self.starttag(
|
|
66
|
+
nodes.Element(),
|
|
67
|
+
"div",
|
|
68
|
+
"",
|
|
69
|
+
CLASS=REGION_CLASS,
|
|
70
|
+
role="region",
|
|
71
|
+
tabindex="0",
|
|
72
|
+
**{"aria-label": name}, # type: ignore[arg-type]
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
def visit_compact_paragraph(self, node: nodes.Element) -> None:
|
|
76
|
+
"""Draw a toctree written in a page as the sidebar's menu is drawn.
|
|
77
|
+
|
|
78
|
+
The sidebar's own menu is rendered through this translator too, already
|
|
79
|
+
decorated, so lists that carry the menu's class are left as they are.
|
|
80
|
+
|
|
81
|
+
Args:
|
|
82
|
+
node: The paragraph; only one holding a resolved toctree is changed.
|
|
83
|
+
"""
|
|
84
|
+
menu = NavigationMenu(TOCTREE_OPEN_LEVELS)
|
|
85
|
+
lists = [c for c in node.children if isinstance(c, nodes.bullet_list)]
|
|
86
|
+
if node.get("toctree") and not any(menu.decorated(b) for b in lists):
|
|
87
|
+
for bullets in lists:
|
|
88
|
+
menu.decorate(bullets)
|
|
89
|
+
menu.mark_captions(node)
|
|
90
|
+
super().visit_compact_paragraph(node)
|
|
91
|
+
|
|
92
|
+
def visit_table(self, node: nodes.table) -> None:
|
|
93
|
+
"""Put an outermost table in a scroll region named by its caption.
|
|
94
|
+
|
|
95
|
+
Args:
|
|
96
|
+
node: The table.
|
|
97
|
+
"""
|
|
98
|
+
if self.table_depth == 0:
|
|
99
|
+
captions = [child for child in node if isinstance(child, nodes.title)]
|
|
100
|
+
name = captions[0].astext().strip() if captions else ""
|
|
101
|
+
self.body.append(self.region(name or translate("Table")))
|
|
102
|
+
self.table_depth += 1
|
|
103
|
+
super().visit_table(node)
|
|
104
|
+
|
|
105
|
+
def depart_table(self, node: nodes.table) -> None:
|
|
106
|
+
"""Close the table, and the region it sits in when it is outermost.
|
|
107
|
+
|
|
108
|
+
Args:
|
|
109
|
+
node: The table.
|
|
110
|
+
"""
|
|
111
|
+
super().depart_table(node)
|
|
112
|
+
self.table_depth -= 1
|
|
113
|
+
if self.table_depth == 0:
|
|
114
|
+
self.body.append("</div>\n")
|
|
115
|
+
|
|
116
|
+
def visit_math_block(self, node: nodes.math_block, math_env: str = "") -> None:
|
|
117
|
+
"""Put a display equation's notation in a scroll region.
|
|
118
|
+
|
|
119
|
+
The id and the number stay outside the region, so the number does not
|
|
120
|
+
scroll away from the equation it belongs to.
|
|
121
|
+
|
|
122
|
+
Args:
|
|
123
|
+
node: The display equation.
|
|
124
|
+
math_env: The math environment, for the renderers that take one.
|
|
125
|
+
|
|
126
|
+
Raises:
|
|
127
|
+
nodes.SkipNode: Always, as the renderers do, once the equation is written.
|
|
128
|
+
"""
|
|
129
|
+
if node.get("no-wrap", node.get("nowrap", False)):
|
|
130
|
+
super().visit_math_block(node, math_env)
|
|
131
|
+
return
|
|
132
|
+
number = get_node_equation_number(self, node) if node.get("number") else ""
|
|
133
|
+
self.body.append(
|
|
134
|
+
self.starttag(node, "div", CLASS="math notranslate nohighlight")
|
|
135
|
+
)
|
|
136
|
+
if number:
|
|
137
|
+
self.body.append(f'<span class="eqno">({number})')
|
|
138
|
+
self.add_permalink_ref(node, _("Link to this equation"))
|
|
139
|
+
self.body.append("</span>")
|
|
140
|
+
name = translate("Equation %(number)s") % {"number": f"({number})"}
|
|
141
|
+
else:
|
|
142
|
+
name = translate("Equation")
|
|
143
|
+
self.body.append(self.region(name))
|
|
144
|
+
notation = node.deepcopy()
|
|
145
|
+
notation["number"] = None
|
|
146
|
+
notation["ids"] = []
|
|
147
|
+
try:
|
|
148
|
+
super().visit_math_block(notation, math_env)
|
|
149
|
+
except nodes.SkipNode:
|
|
150
|
+
pass
|
|
151
|
+
else:
|
|
152
|
+
super().depart_math_block(notation, math_env)
|
|
153
|
+
self.body.append("</div></div>\n")
|
|
154
|
+
raise nodes.SkipNode
|
|
155
|
+
|
|
156
|
+
def permalink_text(self, node: Any) -> str:
|
|
157
|
+
"""Find the text of what a permalink belongs to.
|
|
158
|
+
|
|
159
|
+
Args:
|
|
160
|
+
node: The node the permalink is written for.
|
|
161
|
+
|
|
162
|
+
Returns:
|
|
163
|
+
The signature's name, the equation's number, or the text of the
|
|
164
|
+
title or caption, whichever the node has.
|
|
165
|
+
"""
|
|
166
|
+
if isinstance(node, addnodes.desc_signature):
|
|
167
|
+
parts = [
|
|
168
|
+
child
|
|
169
|
+
for child in node.children
|
|
170
|
+
if isinstance(child, (addnodes.desc_addname, addnodes.desc_name))
|
|
171
|
+
]
|
|
172
|
+
return "".join(part.astext() for part in parts).strip()
|
|
173
|
+
if isinstance(node, nodes.math_block):
|
|
174
|
+
return f"({get_node_equation_number(self, node)})"
|
|
175
|
+
for child in node.children:
|
|
176
|
+
if isinstance(child, (nodes.title, nodes.caption)):
|
|
177
|
+
return str(child.astext()).strip()
|
|
178
|
+
return str(node.astext()).strip()
|
|
179
|
+
|
|
180
|
+
def add_permalink_ref(self, node: nodes.Element, title: str) -> None:
|
|
181
|
+
"""Write Sphinx's permalink, named by the text it belongs to.
|
|
182
|
+
|
|
183
|
+
Args:
|
|
184
|
+
node: The node the permalink is written for.
|
|
185
|
+
title: The link's title, such as "Link to this heading".
|
|
186
|
+
"""
|
|
187
|
+
written = len(self.body)
|
|
188
|
+
super().add_permalink_ref(node, title)
|
|
189
|
+
if len(self.body) == written:
|
|
190
|
+
return
|
|
191
|
+
label = escape(f"{title}: {self.permalink_text(node)}")
|
|
192
|
+
link = self.body[-1].replace(
|
|
193
|
+
'class="headerlink"', f'class="headerlink" aria-label="{label}"', 1
|
|
194
|
+
)
|
|
195
|
+
self.body[-1] = link
|
|
196
|
+
|
|
197
|
+
def visit_title(self, node: nodes.title) -> None:
|
|
198
|
+
"""Start an admonition's title with the icon for its kind.
|
|
199
|
+
|
|
200
|
+
Args:
|
|
201
|
+
node: The title.
|
|
202
|
+
"""
|
|
203
|
+
super().visit_title(node)
|
|
204
|
+
parent = node.parent
|
|
205
|
+
if isinstance(parent, nodes.Admonition) and isinstance(parent, nodes.Element):
|
|
206
|
+
# Docutils and Sphinx name the kind by the node's class; an extension
|
|
207
|
+
# such as sphinx.ext.todo marks its own kind with a class instead.
|
|
208
|
+
kinds = [type(parent).__name__, *parent["classes"]]
|
|
209
|
+
kind = next((k for k in kinds if k in ADMONITION_ICONS), "note")
|
|
210
|
+
self.body.append(ICONS.svg(ADMONITION_ICONS[kind], ICON_CLASSES))
|
|
211
|
+
|
|
212
|
+
def visit_versionmodified(self, node: nodes.Element) -> None:
|
|
213
|
+
"""Start a version note with the icon for what changed.
|
|
214
|
+
|
|
215
|
+
Args:
|
|
216
|
+
node: The version note.
|
|
217
|
+
"""
|
|
218
|
+
super().visit_versionmodified(node)
|
|
219
|
+
if node["type"] in VERSION_ICONS:
|
|
220
|
+
self.body.append(ICONS.svg(VERSION_ICONS[node["type"]], ICON_CLASSES))
|
|
221
|
+
|
|
222
|
+
def visit_attribution(self, node: nodes.Element) -> None:
|
|
223
|
+
"""Space a quotation's attribution the same however it was written.
|
|
224
|
+
|
|
225
|
+
Args:
|
|
226
|
+
node: The attribution.
|
|
227
|
+
"""
|
|
228
|
+
first = node[0] if node.children else None
|
|
229
|
+
if isinstance(first, nodes.Text):
|
|
230
|
+
node.replace(first, nodes.Text(first.astext().lstrip()))
|
|
231
|
+
super().visit_attribution(node)
|
|
232
|
+
if self.settings.attribution == "dash":
|
|
233
|
+
self.body.append(ATTRIBUTION_SPACE)
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
def install_translator(app: Sphinx) -> None:
|
|
237
|
+
"""Put the page-body changes in front of the builder's translator.
|
|
238
|
+
|
|
239
|
+
Args:
|
|
240
|
+
app: The Sphinx application building the site.
|
|
241
|
+
"""
|
|
242
|
+
builder = app.builder
|
|
243
|
+
if app.config.html_theme != "daisyui" or builder.format != "html":
|
|
244
|
+
return
|
|
245
|
+
base = app.registry.translators.get(builder.name, builder.default_translator_class)
|
|
246
|
+
if base is None or issubclass(base, PageBodyTranslator):
|
|
247
|
+
return
|
|
248
|
+
translator = types.new_class("DaisyHTMLTranslator", (PageBodyTranslator, base), {})
|
|
249
|
+
app.set_translator(builder.name, translator, override=True)
|
sphinx_daisyui/brand.py
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"""The brand a page shows: a logo for each colour mode, a name and a link."""
|
|
2
|
+
|
|
3
|
+
from collections.abc import Mapping
|
|
4
|
+
from dataclasses import dataclass
|
|
5
|
+
from typing import Any
|
|
6
|
+
|
|
7
|
+
from .options import ThemeOptions
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@dataclass(frozen=True)
|
|
11
|
+
class Brand:
|
|
12
|
+
"""What the brand component prints.
|
|
13
|
+
|
|
14
|
+
Attributes:
|
|
15
|
+
light: The address of the logo for light mode, empty when there is none.
|
|
16
|
+
dark: The address of the logo for dark mode.
|
|
17
|
+
text: The name printed beside the logo, empty when none is shown.
|
|
18
|
+
alt: The description of the logo for a reader who cannot see it.
|
|
19
|
+
href: Where the brand leads.
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
light: str
|
|
23
|
+
dark: str
|
|
24
|
+
text: str
|
|
25
|
+
alt: str
|
|
26
|
+
href: str
|
|
27
|
+
|
|
28
|
+
@classmethod
|
|
29
|
+
def from_options(cls, options: ThemeOptions, context: Mapping[str, Any]) -> "Brand":
|
|
30
|
+
"""Read the brand from the theme options and a page's template context.
|
|
31
|
+
|
|
32
|
+
Args:
|
|
33
|
+
options: The theme's options.
|
|
34
|
+
context: The context Sphinx builds for a page.
|
|
35
|
+
|
|
36
|
+
Returns:
|
|
37
|
+
The brand, with every address resolved from the page.
|
|
38
|
+
"""
|
|
39
|
+
pathto = context["pathto"]
|
|
40
|
+
logo = options.mapping("logo")
|
|
41
|
+
light_name = logo.get("image_light")
|
|
42
|
+
dark_name = logo.get("image_dark")
|
|
43
|
+
light = (
|
|
44
|
+
options.static_url(light_name, pathto)
|
|
45
|
+
if light_name
|
|
46
|
+
else context.get("logo_url") or ""
|
|
47
|
+
)
|
|
48
|
+
dark = options.static_url(dark_name, pathto) if dark_name else light
|
|
49
|
+
if "text" in logo:
|
|
50
|
+
text = str(logo["text"])
|
|
51
|
+
elif light and (light_name or dark_name):
|
|
52
|
+
text = ""
|
|
53
|
+
else:
|
|
54
|
+
text = context.get("docstitle") or context.get("project") or ""
|
|
55
|
+
return cls(
|
|
56
|
+
light=light,
|
|
57
|
+
dark=dark,
|
|
58
|
+
text=text,
|
|
59
|
+
alt=str(logo.get("alt_text") or context.get("project") or ""),
|
|
60
|
+
href=str(logo.get("link") or pathto(context.get("root_doc", "index"))),
|
|
61
|
+
)
|
sphinx_daisyui/events.py
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
"""The theme's event handlers: the layout check and the page context."""
|
|
2
|
+
|
|
3
|
+
from importlib.metadata import metadata, version
|
|
4
|
+
from typing import Any
|
|
5
|
+
|
|
6
|
+
from markupsafe import Markup
|
|
7
|
+
from sphinx.application import Sphinx
|
|
8
|
+
from sphinx.builders.html import StandaloneHTMLBuilder
|
|
9
|
+
from sphinx.util import logging
|
|
10
|
+
|
|
11
|
+
from .brand import Brand
|
|
12
|
+
from .icons import ICONS
|
|
13
|
+
from .layout import LayoutCodeError
|
|
14
|
+
from .links import IconLinks, SourceLinks
|
|
15
|
+
from .modes import Modes
|
|
16
|
+
from .navigation import HeaderLinks, PageContents, SiteNavigation
|
|
17
|
+
from .options import ThemeOptions
|
|
18
|
+
from .search import SearchSettings
|
|
19
|
+
from .versions import VersionSwitcher
|
|
20
|
+
|
|
21
|
+
LOGGER = logging.getLogger(__name__)
|
|
22
|
+
VERSION = version("sphinx-daisyui")
|
|
23
|
+
NAVBAR_NAV = "navbar-nav.html"
|
|
24
|
+
NAVBAR_ALIGNMENTS = ("content", "left", "right")
|
|
25
|
+
COMPONENT_OPTIONS = (
|
|
26
|
+
"navbar_start",
|
|
27
|
+
"navbar_center",
|
|
28
|
+
"navbar_end",
|
|
29
|
+
"navbar_persistent",
|
|
30
|
+
"article_header_start",
|
|
31
|
+
"article_header_end",
|
|
32
|
+
"article_footer_items",
|
|
33
|
+
"content_footer_items",
|
|
34
|
+
"primary_sidebar_end",
|
|
35
|
+
"secondary_sidebar_items",
|
|
36
|
+
"footer_start",
|
|
37
|
+
"footer_center",
|
|
38
|
+
"footer_end",
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def project_url(label: str) -> str:
|
|
43
|
+
"""Find one of the package's project URLs by its label.
|
|
44
|
+
|
|
45
|
+
Args:
|
|
46
|
+
label: The label the URL has under ``[project.urls]``.
|
|
47
|
+
|
|
48
|
+
Returns:
|
|
49
|
+
The URL, or an empty string when the package has none by that label.
|
|
50
|
+
"""
|
|
51
|
+
for entry in metadata("sphinx-daisyui").get_all("Project-URL") or []:
|
|
52
|
+
name, _, url = entry.partition(", ")
|
|
53
|
+
if name.lower() == label:
|
|
54
|
+
return str(url)
|
|
55
|
+
return ""
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
REPOSITORY = project_url("repository")
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def check_layout(app: Sphinx) -> None:
|
|
62
|
+
"""Stop the build, with the reason alone, when the layout code is wrong.
|
|
63
|
+
|
|
64
|
+
Sphinx prints a crash report with a traceback for every exception that
|
|
65
|
+
leaves a build, and ``SystemExit`` is the one it lets through.
|
|
66
|
+
|
|
67
|
+
Args:
|
|
68
|
+
app: The Sphinx application building the site.
|
|
69
|
+
|
|
70
|
+
Raises:
|
|
71
|
+
SystemExit: With code 2, after logging the error, when the layout code
|
|
72
|
+
is wrong.
|
|
73
|
+
"""
|
|
74
|
+
builder = app.builder
|
|
75
|
+
if not isinstance(builder, StandaloneHTMLBuilder):
|
|
76
|
+
return
|
|
77
|
+
if app.config.html_theme != "daisyui":
|
|
78
|
+
return
|
|
79
|
+
options = ThemeOptions(builder.theme.get_options(app.config.html_theme_options))
|
|
80
|
+
try:
|
|
81
|
+
options.layout()
|
|
82
|
+
except LayoutCodeError as error:
|
|
83
|
+
LOGGER.error(str(error)) # noqa: TRY400
|
|
84
|
+
raise SystemExit(2) from None
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def is_index_page(templatename: str) -> bool:
|
|
88
|
+
"""Tell whether Sphinx renders a page with one of its index templates.
|
|
89
|
+
|
|
90
|
+
Args:
|
|
91
|
+
templatename: The template rendering the page.
|
|
92
|
+
|
|
93
|
+
Returns:
|
|
94
|
+
Whether the page is the search page, a domain index or a general index,
|
|
95
|
+
whole or split.
|
|
96
|
+
"""
|
|
97
|
+
return templatename in ("search.html", "domainindex.html") or (
|
|
98
|
+
templatename.startswith("genindex")
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
def without_pygments_stylesheet(context: dict[str, Any]) -> None:
|
|
103
|
+
"""Take Sphinx's Pygments stylesheet out of a page's stylesheets.
|
|
104
|
+
|
|
105
|
+
Args:
|
|
106
|
+
context: The page's template context, changed in place.
|
|
107
|
+
"""
|
|
108
|
+
context["css_files"] = [
|
|
109
|
+
sheet
|
|
110
|
+
for sheet in context.get("css_files", [])
|
|
111
|
+
if not str(getattr(sheet, "filename", sheet)).endswith("pygments.css")
|
|
112
|
+
]
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
def add_page_context(
|
|
116
|
+
app: Sphinx,
|
|
117
|
+
pagename: str,
|
|
118
|
+
templatename: str,
|
|
119
|
+
context: dict[str, Any],
|
|
120
|
+
doctree: object,
|
|
121
|
+
) -> None:
|
|
122
|
+
"""Give the templates the ``daisy`` context they all read.
|
|
123
|
+
|
|
124
|
+
Args:
|
|
125
|
+
app: The Sphinx application building the site.
|
|
126
|
+
pagename: The page being rendered.
|
|
127
|
+
templatename: The template rendering it.
|
|
128
|
+
context: The page's template context, changed in place.
|
|
129
|
+
doctree: The page's document tree, which this does not read.
|
|
130
|
+
"""
|
|
131
|
+
if app.config.html_theme != "daisyui":
|
|
132
|
+
return
|
|
133
|
+
without_pygments_stylesheet(context)
|
|
134
|
+
options = ThemeOptions.from_context(context)
|
|
135
|
+
announcement = options.text("announcement").strip()
|
|
136
|
+
is_url = announcement.startswith(("http://", "https://"))
|
|
137
|
+
index_page = is_index_page(templatename)
|
|
138
|
+
site = SiteNavigation(
|
|
139
|
+
app.env,
|
|
140
|
+
pagename,
|
|
141
|
+
app.builder,
|
|
142
|
+
maxdepth=options.number("navigation_depth", 4),
|
|
143
|
+
collapse=options.flag("collapse_navigation"),
|
|
144
|
+
includehidden=options.flag("sidebar_includehidden", True),
|
|
145
|
+
)
|
|
146
|
+
show_nav_level = options.number("show_nav_level", 1)
|
|
147
|
+
sectioned = NAVBAR_NAV in options.components("navbar_center")
|
|
148
|
+
placed = any(NAVBAR_NAV in options.components(n) for n in COMPONENT_OPTIONS)
|
|
149
|
+
align = options.text("navbar_align", "content")
|
|
150
|
+
context["daisy"] = {
|
|
151
|
+
"layout": options.layout(),
|
|
152
|
+
"brand": Brand.from_options(options, context),
|
|
153
|
+
"modes": Modes.from_options(options),
|
|
154
|
+
"search": SearchSettings.from_options(options),
|
|
155
|
+
"switcher": VersionSwitcher.from_options(options),
|
|
156
|
+
"icon": ICONS.svg,
|
|
157
|
+
"icon_links": IconLinks.from_options(options, context["pathto"]),
|
|
158
|
+
"icon_links_label": options.text("icon_links_label"),
|
|
159
|
+
"version": VERSION,
|
|
160
|
+
"repository": REPOSITORY,
|
|
161
|
+
**{name: options.components(name) for name in COMPONENT_OPTIONS},
|
|
162
|
+
"show_prev_next": options.flag("show_prev_next", True),
|
|
163
|
+
"back_to_top": options.flag("back_to_top_button", True),
|
|
164
|
+
"sticky_banners": options.flag("sticky_banners"),
|
|
165
|
+
"announcement": "" if is_url else Markup(announcement), # noqa: S704
|
|
166
|
+
"announcement_url": announcement if is_url else "",
|
|
167
|
+
"sectioned": sectioned,
|
|
168
|
+
"navigation": (
|
|
169
|
+
site.section_menu(show_nav_level)
|
|
170
|
+
if sectioned
|
|
171
|
+
else site.menu(show_nav_level)
|
|
172
|
+
),
|
|
173
|
+
"header": (
|
|
174
|
+
HeaderLinks(
|
|
175
|
+
site.top_level(),
|
|
176
|
+
options.records("external_links"),
|
|
177
|
+
options.number("header_links_before_dropdown", 5),
|
|
178
|
+
options.text("header_dropdown_text"),
|
|
179
|
+
)
|
|
180
|
+
if placed
|
|
181
|
+
else None
|
|
182
|
+
),
|
|
183
|
+
"navbar_align": align if align in NAVBAR_ALIGNMENTS else "content",
|
|
184
|
+
}
|
|
185
|
+
show_toc_level = options.number("show_toc_level", 2)
|
|
186
|
+
contents = PageContents(app.env, pagename, app.builder)
|
|
187
|
+
context["daisy"].update(
|
|
188
|
+
page_toc=Markup() if index_page else contents.markup(show_toc_level),
|
|
189
|
+
page_toc_count=0 if index_page else contents.count,
|
|
190
|
+
show_toc_level=show_toc_level,
|
|
191
|
+
)
|
|
192
|
+
sources = (
|
|
193
|
+
SourceLinks("", "", "")
|
|
194
|
+
if index_page
|
|
195
|
+
else SourceLinks.from_options(options, context)
|
|
196
|
+
)
|
|
197
|
+
context["daisy"].update(
|
|
198
|
+
sources=sources,
|
|
199
|
+
top_buttons=sources.buttons(options.names("top_of_page_buttons")),
|
|
200
|
+
)
|
|
201
|
+
if index_page:
|
|
202
|
+
context["daisy"]["secondary_sidebar_items"] = []
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"search":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <path d=\"m21 21-4.34-4.34\" /> <circle cx=\"11\" cy=\"11\" r=\"8\" /> </svg>","sun":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <circle cx=\"12\" cy=\"12\" r=\"4\" /> <path d=\"M12 2v2\" /> <path d=\"M12 20v2\" /> <path d=\"m4.93 4.93 1.41 1.41\" /> <path d=\"m17.66 17.66 1.41 1.41\" /> <path d=\"M2 12h2\" /> <path d=\"M20 12h2\" /> <path d=\"m6.34 17.66-1.41 1.41\" /> <path d=\"m19.07 4.93-1.41 1.41\" /> </svg>","moon":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <path d=\"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401\" /> </svg>","sun-moon":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <path d=\"M12 2v2\" /> <path d=\"M14.837 16.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715\" /> <path d=\"M16 12a4 4 0 0 0-4-4\" /> <path d=\"m19 5-1.256 1.256\" /> <path d=\"M20 12h2\" /> </svg>","menu":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <path d=\"M4 5h16\" /> <path d=\"M4 12h16\" /> <path d=\"M4 19h16\" /> </svg>","x":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <path d=\"M18 6 6 18\" /> <path d=\"m6 6 12 12\" /> </svg>","chevron-right":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <path d=\"m9 18 6-6-6-6\" /> </svg>","chevron-down":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <path d=\"m6 9 6 6 6-6\" /> </svg>","pencil":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <path d=\"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z\" /> <path d=\"m15 5 4 4\" /> </svg>","file-code":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <path d=\"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z\" /> <path d=\"M14 2v5a1 1 0 0 0 1 1h5\" /> <path d=\"M10 12.5 8 15l2 2.5\" /> <path d=\"m14 12.5 2 2.5-2 2.5\" /> </svg>","arrow-up":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <path d=\"m5 12 7-7 7 7\" /> <path d=\"M12 19V5\" /> </svg>","arrow-left":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <path d=\"m12 19-7-7 7-7\" /> <path d=\"M19 12H5\" /> </svg>","arrow-right":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <path d=\"M5 12h14\" /> <path d=\"m12 5 7 7-7 7\" /> </svg>","external-link":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <path d=\"M15 3h6v6\" /> <path d=\"M10 14 21 3\" /> <path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\" /> </svg>","palette":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <path d=\"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z\" /> <circle cx=\"13.5\" cy=\"6.5\" r=\".5\" fill=\"currentColor\" /> <circle cx=\"17.5\" cy=\"10.5\" r=\".5\" fill=\"currentColor\" /> <circle cx=\"6.5\" cy=\"12.5\" r=\".5\" fill=\"currentColor\" /> <circle cx=\"8.5\" cy=\"7.5\" r=\".5\" fill=\"currentColor\" /> </svg>","list":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <path d=\"M3 5h.01\" /> <path d=\"M3 12h.01\" /> <path d=\"M3 19h.01\" /> <path d=\"M8 5h13\" /> <path d=\"M8 12h13\" /> <path d=\"M8 19h13\" /> </svg>","copy":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\" /> <path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\" /> </svg>","check":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <path d=\"M20 6 9 17l-5-5\" /> </svg>","link":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <path d=\"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\" /> <path d=\"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\" /> </svg>","book-open":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <path d=\"M12 5v16\" /> <path d=\"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z\" /> </svg>","history":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <path d=\"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8\" /> <path d=\"M3 3v5h5\" /> <path d=\"M12 7v5l4 2\" /> </svg>","languages":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <path d=\"m5 8 6 6\" /> <path d=\"m4 14 6-6 2-3\" /> <path d=\"M2 5h12\" /> <path d=\"M7 2h1\" /> <path d=\"m22 22-5-10-5 10\" /> <path d=\"M14 18h6\" /> </svg>","megaphone":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <path d=\"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z\" /> <path d=\"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14\" /> <path d=\"M8 6v8\" /> </svg>","square-arrow-out-up-right":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <path d=\"M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6\" /> <path d=\"m21 3-9 9\" /> <path d=\"M15 3h6v6\" /> </svg>","info":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <circle cx=\"12\" cy=\"12\" r=\"10\" /> <path d=\"M12 16v-4\" /> <path d=\"M12 8h.01\" /> </svg>","lightbulb":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <path d=\"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5\" /> <path d=\"M9 18h6\" /> <path d=\"M10 22h4\" /> </svg>","star":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <path d=\"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z\" /> </svg>","triangle-alert":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\" /> <path d=\"M12 9v4\" /> <path d=\"M12 17h.01\" /> </svg>","octagon-x":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <path d=\"m15 9-6 6\" /> <path d=\"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z\" /> <path d=\"m9 9 6 6\" /> </svg>","square-plus":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" /> <path d=\"M8 12h8\" /> <path d=\"M12 8v8\" /> </svg>","circle-plus":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <circle cx=\"12\" cy=\"12\" r=\"10\" /> <path d=\"M8 12h8\" /> <path d=\"M12 8v8\" /> </svg>","circle-x":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" > <circle cx=\"12\" cy=\"12\" r=\"10\" /> <path d=\"m15 9-6 6\" /> <path d=\"m9 9 6 6\" /> </svg>","github":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12\"/></svg>","gitlab":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"m23.6004 9.5927-.0337-.0862L20.3.9814a.851.851 0 0 0-.3362-.405.8748.8748 0 0 0-.9997.0539.8748.8748 0 0 0-.29.4399l-2.2055 6.748H7.5375l-2.2057-6.748a.8573.8573 0 0 0-.29-.4412.8748.8748 0 0 0-.9997-.0537.8585.8585 0 0 0-.3362.4049L.4332 9.5015l-.0325.0862a6.0657 6.0657 0 0 0 2.0119 7.0105l.0113.0087.03.0213 4.976 3.7264 2.462 1.8633 1.4995 1.1321a1.0085 1.0085 0 0 0 1.2197 0l1.4995-1.1321 2.4619-1.8633 5.006-3.7489.0125-.01a6.0682 6.0682 0 0 0 2.0094-7.003z\"/></svg>","bitbucket":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M.778 1.213a.768.768 0 00-.768.892l3.263 19.81c.084.5.515.868 1.022.873H19.95a.772.772 0 00.77-.646l3.27-20.03a.768.768 0 00-.768-.891zM14.52 15.53H9.522L8.17 8.466h7.561z\"/></svg>","x-twitter":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z\"/></svg>","mastodon":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M23.268 5.313c-.35-2.578-2.617-4.61-5.304-5.004C17.51.242 15.792 0 11.813 0h-.03c-3.98 0-4.835.242-5.288.309C3.882.692 1.496 2.518.917 5.127.64 6.412.61 7.837.661 9.143c.074 1.874.088 3.745.26 5.611.118 1.24.325 2.47.62 3.68.55 2.237 2.777 4.098 4.96 4.857 2.336.792 4.849.923 7.256.38.265-.061.527-.132.786-.213.585-.184 1.27-.39 1.774-.753a.057.057 0 0 0 .023-.043v-1.809a.052.052 0 0 0-.02-.041.053.053 0 0 0-.046-.01 20.282 20.282 0 0 1-4.709.545c-2.73 0-3.463-1.284-3.674-1.818a5.593 5.593 0 0 1-.319-1.433.053.053 0 0 1 .066-.054c1.517.363 3.072.546 4.632.546.376 0 .75 0 1.125-.01 1.57-.044 3.224-.124 4.768-.422.038-.008.077-.015.11-.024 2.435-.464 4.753-1.92 4.989-5.604.008-.145.03-1.52.03-1.67.002-.512.167-3.63-.024-5.545zm-3.748 9.195h-2.561V8.29c0-1.309-.55-1.976-1.67-1.976-1.23 0-1.846.79-1.846 2.35v3.403h-2.546V8.663c0-1.56-.617-2.35-1.848-2.35-1.112 0-1.668.668-1.67 1.977v6.218H4.822V8.102c0-1.31.337-2.35 1.011-3.12.696-.77 1.608-1.164 2.74-1.164 1.311 0 2.302.5 2.962 1.498l.638 1.06.638-1.06c.66-.999 1.65-1.498 2.96-1.498 1.13 0 2.043.395 2.74 1.164.675.77 1.012 1.81 1.012 3.12z\"/></svg>","discord":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z\"/></svg>","pypi":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M23.922 13.58v3.912L20.55 18.72l-.078.055.052.037 3.45-1.256.026-.036v-3.997l-.053-.036-.025.092z M23.621 5.618l-3.04 1.107v3.912l3.339-1.215V5.509zM23.92 13.457V9.544l-3.336 1.215v3.913zM20.47 14.71V10.8L17.17 12v3.913zM17.034 19.996v-3.912l-3.313 1.206v3.912zM17.17 16.057v3.868l3.314-1.206V14.85l-3.314 1.206zm2.093 1.882c-.367.134-.663-.074-.663-.463s.296-.814.663-.947c.365-.133.662.075.662.464s-.297.814-.662.946z M13.225 9.315l.365-.132-3.285-1.197-3.323 1.21.102.037 3.184 1.16zM20.507 10.664V6.751L17.17 7.965v3.913zM17.058 11.918V8.005l-3.302 1.202v3.912zM13.643 9.246l-3.336 1.215v3.913l3.336-1.215zM6.907 13.165l3.322 1.209v-3.913L6.907 9.252z M10.34 7.873l3.281 1.193V5.198l-3.28-1.193zM20.507 2.715L17.19 3.922v3.913l3.317-1.207zM16.95 3.903L13.724 2.73l-3.269 1.19 3.225 1.174zM15.365 4.606l-1.624.592v3.868l3.317-1.207V3.991l-1.693.615zm-.391 2.778c-.367.134-.662-.074-.662-.464s.295-.813.662-.946c.366-.133.663.074.663.464s-.297.813-.663.946z M10.229 18.41v-3.914l-3.322-1.209V17.2zM13.678 17.182v-3.913l-3.371 1.227v3.913z M13.756 17.154l3.3-1.2V12.04l-3.3 1.2zM13.678 21.217l-3.371 1.227v-3.912h-.078v3.912l-3.322-1.209v-3.913l-.053-.058-.025-.06-3.336-1.21v-3.948l.034.013 3.287 1.196.015-.078-3.261-1.187 3.26-1.187v-.109L3.876 9.62l-.307-.112 3.26-1.188v.877l.079-.055V6.769l3.257 1.185.058-.061L7.084 6.75l-.102-.037 3.24-1.179v-.083L6.854 6.677v.018l-.025.018v1.523L3.44 9.47v.02l-.025.017v4.007l-3.39 1.233v.019L0 14.784v3.995l.025.037 3.4 1.237.008-.006.007.01 3.4 1.238.008-.006.006.01 3.4 1.237.014-.009.012.01 3.45-1.256.026-.037-.078-.027zM3.493 9.563l3.257 1.185-3.257 1.187V9.562zM3.4 19.96L.078 18.752v-3.913l2.361.86.96.349v3.913zm.015-3.99L.335 14.85l-.182-.066 3.262-1.187v2.374zm3.399 5.231l-3.321-1.209v-3.912l3.321 1.209v3.912zM23.791 5.434l-3.21-1.17v2.338zM20.387 2.643l-3.24-1.18-3.27 1.19 3.247 1.182z\"/></svg>","python":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M11.858 0c-.978.005-1.913.088-2.736.234C6.7.662 6.26 1.558 6.26 3.21v2.182h5.725v.727H4.111c-1.664 0-3.121 1-3.577 2.903-.526 2.181-.549 3.542 0 5.82.407 1.694 1.379 2.902 3.043 2.902h1.969v-2.616c0-1.89 1.635-3.557 3.576-3.557h5.72c1.591 0 2.862-1.31 2.862-2.91v-5.45c0-1.553-1.309-2.718-2.863-2.977A18 18 0 0 0 11.858 0M8.762 1.755c.591 0 1.074.491 1.074 1.095 0 .601-.483 1.087-1.074 1.087A1.08 1.08 0 0 1 7.688 2.85c0-.604.48-1.095 1.074-1.095m9.656 4.364v2.543c0 1.971-1.671 3.63-3.577 3.63H9.122c-1.566 0-2.862 1.34-2.862 2.91v5.452c0 1.551 1.349 2.464 2.862 2.91 1.813.532 3.55.628 5.72 0 1.44-.418 2.862-1.258 2.862-2.91V18.47h-5.719v-.727h8.582c1.664 0 2.284-1.16 2.862-2.903.598-1.793.573-3.518 0-5.819-.41-1.656-1.196-2.903-2.862-2.903zm-3.216 13.807a1.08 1.08 0 0 1 1.074 1.088c0 .604-.48 1.094-1.074 1.094-.592 0-1.075-.49-1.075-1.094 0-.601.483-1.088 1.075-1.088\"/></svg>","youtube":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z\"/></svg>","discourse":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M12.103 0C18.666 0 24 5.485 24 11.997c0 6.51-5.33 11.99-11.9 11.99L0 24V11.79C0 5.28 5.532 0 12.103 0zm.116 4.563c-2.593-.003-4.996 1.352-6.337 3.57-1.33 2.208-1.387 4.957-.148 7.22L4.4 19.61l4.794-1.074c2.745 1.225 5.965.676 8.136-1.39 2.17-2.054 2.86-5.228 1.737-7.997-1.135-2.778-3.84-4.59-6.84-4.585h-.008z\"/></svg>","stackoverflow":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M15.725 0l-1.72 1.277 6.39 8.588 1.716-1.277L15.725 0zm-3.94 3.418l-1.369 1.644 8.225 6.85 1.369-1.644-8.225-6.85zm-3.15 4.465l-.905 1.94 9.702 4.517.904-1.94-9.701-4.517zm-1.85 4.86l-.44 2.093 10.473 2.201.44-2.092-10.473-2.203zM1.89 15.47V24h19.19v-8.53h-2.133v6.397H4.021v-6.396H1.89zm4.265 2.133v2.13h10.66v-2.13H6.154Z\"/></svg>","readthedocs":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M10.806 11.568a.573.573 0 0 0-.076 1.123s1.403.464 3.788.658c1.917.157 4.09-.135 4.09-.135.841-.028.678-1.318-.143-1.136 0 0-2.127.262-3.854.123-2.28-.186-3.52-.604-3.52-.604a.65.65 0 0 0-.285-.03m0-2.854a.573.573 0 0 0-.076 1.123s1.403.464 3.788.658c1.917.157 4.09-.135 4.09-.135.841-.028.678-1.318-.143-1.136 0 0-2.127.263-3.854.123-2.28-.186-3.52-.604-3.52-.604a.65.65 0 0 0-.285-.03m0-2.854a.573.573 0 0 0-.076 1.123s1.403.464 3.788.66c1.917.155 4.09-.137 4.09-.137.841-.028.678-1.318-.143-1.136 0 0-2.127.263-3.854.123-2.28-.186-3.52-.603-3.52-.603a.65.65 0 0 0-.285-.03m0-2.85a.573.573 0 0 0-.076 1.123s1.403.465 3.788.66c1.917.155 4.09-.136 4.09-.136.841-.028.678-1.318-.143-1.136 0 0-2.127.262-3.854.122-2.28-.185-3.52-.603-3.52-.603a.6.6 0 0 0-.285-.03M6.81 0C3.812.021 2.693.941 2.693.941v22.39s1.09-.943 4.602-.799 4.234 1.378 8.55 1.46q.366.008.702.008c3.732 0 4.699-.668 4.699-.668l.06-22.825s-1.941.548-5.72.578S10.9.122 7.43.008A34 34 0 0 0 6.81 0m2.508 1.46s1.815.6 5.173.77c2.837.138 5.678-.28 5.678-.28v20.286s-1.44.756-5.036.5c-2.787-.2-5.857-1.255-5.857-1.255Zm-1.752.528c.718.052.718 1.105 0 1.157 0 0-.942.004-1.51.064-.964.097-1.618.447-1.618.447-.677.346-1.207-.658-.54-1.022 0 0 .852-.45 2.043-.57.688-.07 1.625-.076 1.625-.076m-.557 2.863c.32-.008.56 0 .56 0a.58.58 0 0 1 .001 1.152s-.94.004-1.51.064c-.964.097-1.618.447-1.618.447-.662.294-1.155-.65-.536-1.026 0 0 .852-.45 2.043-.57.334-.038.74-.059 1.06-.067m.557 2.85c.71.06.71 1.097 0 1.156 0 0-.942-.004-1.51.051-.964.097-1.618.448-1.618.448-.665.3-1.162-.65-.537-1.026 0 0 .853-.452 2.044-.57.684-.064 1.62-.06 1.62-.06\"/></svg>","bluesky":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M5.202 2.857C7.954 4.922 10.913 9.11 12 11.358c1.087-2.247 4.046-6.436 6.798-8.501C20.783 1.366 24 .213 24 3.883c0 .732-.42 6.156-.667 7.037-.856 3.061-3.978 3.842-6.755 3.37 4.854.826 6.089 3.562 3.422 6.299-5.065 5.196-7.28-1.304-7.847-2.97-.104-.305-.152-.448-.153-.327 0-.121-.05.022-.153.327-.568 1.666-2.782 8.166-7.847 2.97-2.667-2.737-1.432-5.473 3.422-6.3-2.777.473-5.899-.308-6.755-3.369C.42 10.04 0 4.615 0 3.883c0-3.67 3.217-2.517 5.202-1.026\"/></svg>","matrix":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M.632.55v22.9H2.28V24H0V0h2.28v.55zm7.043 7.26v1.157h.033c.309-.443.683-.784 1.117-1.024.433-.245.936-.365 1.5-.365.54 0 1.033.107 1.481.314.448.208.785.582 1.02 1.108.254-.374.6-.706 1.034-.992.434-.287.95-.43 1.546-.43.453 0 .872.056 1.26.167.388.11.716.286.993.53.276.245.489.559.646.951.152.392.23.863.23 1.417v5.728h-2.349V11.52c0-.286-.01-.559-.032-.812a1.755 1.755 0 0 0-.18-.66 1.106 1.106 0 0 0-.438-.448c-.194-.11-.457-.166-.785-.166-.332 0-.6.064-.803.189a1.38 1.38 0 0 0-.48.499 1.946 1.946 0 0 0-.231.696 5.56 5.56 0 0 0-.06.785v4.768h-2.35v-4.8c0-.254-.004-.503-.018-.752a2.074 2.074 0 0 0-.143-.688 1.052 1.052 0 0 0-.415-.503c-.194-.125-.476-.19-.854-.19-.111 0-.259.024-.439.074-.18.051-.36.143-.53.282-.171.138-.319.337-.439.595-.12.259-.18.6-.18 1.02v4.966H5.46V7.81zm15.693 15.64V.55H21.72V0H24v24h-2.28v-.55z\"/></svg>","zulip":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M22.767 3.589c0 1.209-.543 2.283-1.37 2.934l-8.034 7.174c-.149.128-.343-.078-.235-.25l2.946-5.9c.083-.165-.024-.368-.194-.368H4.452c-1.77 0-3.219-1.615-3.219-3.59C1.233 1.616 2.682 0 4.452 0h15.096c1.77-.001 3.219 1.614 3.219 3.589zM4.452 24h15.096c1.77 0 3.219-1.616 3.219-3.59 0-1.974-1.449-3.59-3.219-3.59H8.12c-.17 0-.277-.202-.194-.367l2.946-5.9c.108-.172-.086-.378-.235-.25l-8.033 7.173c-.828.65-1.37 1.725-1.37 2.934 0 1.974 1.448 3.59 3.218 3.59z\"/></svg>","condaforge":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M8.206 5.866l.005.396H6.754l.006.655v.005l-6.758.002v.211L0 7.973l.02.041c.212.467.663.901 1.257 1.313.594.411 1.335.796 2.145 1.13 1.62.664 3.502 1.12 5.006 1.1.746-.01 1.265.228 1.62.672.341.426.51 1.092.524 1.92L7.94 16.239l.008 1.896H20.29l-.004-1.76-2.63-2.22c.055-2.013.708-3.443 1.777-4.405 1.087-.979 2.61-1.49 4.37-1.616l.195-.015L24 5.872zm.425.422l14.946.006-.004 1.457c-1.737.155-3.29.666-4.424 1.685-.912.822-1.433 2.062-1.691 3.534l-1.617.004.002.422 1.535-.004c-.027.226-.113.4-.123.64l-.893-.003-.002.422.995.004 2.138 1.802-2.941.002c-.724-.675-1.552-1.116-2.416-1.158-.817-.04-1.638.324-2.387 1.04l-2.978-.024 2.248-1.781v-.102c.002-.943-.2-1.72-.64-2.269-.396-.496-1.007-.749-1.741-.79l-.008-4.49h.008zm-1.45.396h1.026l.008 4.404c-1.387-.02-3.125-.404-4.631-1.023-.787-.324-1.507-.698-2.066-1.086C.968 8.6.587 8.203.424 7.86v-.514l6.336-.002v2.16h.422v-2.16h.004l-.004-.435v-.226zm6.935 8.839c.75.037 1.503.436 2.18 1.078l-.002 1.112h-4.345l-.006-1.2c.706-.717 1.443-1.026 2.173-.99zM8.36 16.537l3.16.023.006 1.153h-3.16zm11.5.142l.002 1.034h-3.148V16.68z\"/></svg>","docker":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288Z\"/></svg>","npm":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z\"/></svg>","anaconda":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M12.045.033a12.181 12.182 0 00-1.361.078 17.512 17.513 0 011.813 1.433l.48.438-.465.45a15.047 15.048 0 00-1.126 1.205l-.178.215a8.527 8.527 0 01.86-.05 8.154 8.155 0 11-4.286 15.149 15.764 15.765 0 01-1.841.106h-.86a21.847 21.848 0 00.264 2.866 11.966 11.967 0 106.7-21.89zM8.17.678a12.181 12.182 0 00-2.624 1.275 15.506 15.507 0 011.813.43A18.551 18.552 0 018.17.678zM9.423.75a16.237 16.238 0 00-.995 1.998 16.15 16.152 0 011.605.66 6.98 6.98 0 01.43-.509c.234-.286.472-.559.716-.817A15.047 15.048 0 009.423.75zM4.68 2.949a14.969 14.97 0 000 2.336c.587-.065 1.196-.1 1.812-.107a16.617 16.617 0 01.48-1.748 16.48 16.481 0 00-2.292-.481zM3.62 3.5A11.938 11.938 0 001.762 5.88a17.004 17.004 0 011.877-.444A17.39 17.391 0 013.62 3.5zm4.406.287c-.143.437-.265.888-.38 1.347a8.255 8.255 0 011.67-.803c-.423-.2-.845-.38-1.29-.544zM6.3 6.216a14.051 14.052 0 00-1.555.108c.064.523.157 1.038.272 1.554a8.39 8.391 0 011.283-1.662zm-2.55.137a15.313 15.313 0 00-2.602.716h-.078v.079a17.104 17.105 0 001.267 2.544l.043.071.072-.049a16.309 16.31 0 011.734-1.083l.057-.035V8.54a16.867 16.868 0 01-.408-2.094v-.092zM.644 8.095l-.063.2A11.844 11.845 0 000 11.655v.209l.143-.152a17.706 17.707 0 011.584-1.447l.057-.043-.043-.064a16.18 16.18 0 01-1.025-1.87zm3.77 1.253l-.18.1c-.465.273-.93.573-1.375.889l-.065.05.05.064c.309.437.645.867.996 1.276l.137.165v-.208a8.176 8.176 0 01.364-2.15zM2.2 10.853l-.072.05a16.574 16.574 0 00-1.813 1.734l-.058.058.066.057a15.449 15.45 0 001.991 1.483l.072.05.043-.08a16.738 16.74 0 011.053-1.64v-.05l-.043-.05a16.99 16.99 0 01-1.19-1.54zm1.855 2.071l-.121.172a15.363 15.363 0 00-.917 1.433l-.043.072.071.043a16.61 16.61 0 001.562.766l.193.086-.086-.193a8.04 8.04 0 01-.66-2.172zm-3.976.48v.2a11.758 11.759 0 00.946 3.326l.078.186.072-.194a16.215 16.216 0 01.845-2l.057-.063-.064-.043a17.197 17.198 0 01-1.776-1.284zm2.543 1.805l-.035.08a15.764 15.765 0 00-.983 2.479v.08h.086a16.15 16.152 0 002.688.5l.072.007v-.086a17.562 17.563 0 01.164-2.056v-.065H4.55a16.266 16.266 0 01-1.849-.896zm2.544 1.169v.114a17.254 17.255 0 00-.151 1.828v.078h.931c.287 0 .624.014.946 0h.209l-.166-.129a8.011 8.011 0 01-1.64-1.834zm-3.29 2.1l.115.172a11.988 11.988 0 002.502 2.737l.157.129v-.201a22.578 22.58 0 01-.2-2.336v-.071h-.072a16.23 16.23 0 01-2.3-.387z\"/></svg>","codeberg":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M11.999.747A11.974 11.974 0 0 0 0 12.75c0 2.254.635 4.465 1.833 6.376L11.837 6.19c.072-.092.251-.092.323 0l4.178 5.402h-2.992l.065.239h3.113l.882 1.138h-3.674l.103.374h3.86l.777 1.003h-4.358l.135.483h4.593l.695.894h-5.038l.165.589h5.326l.609.785h-5.717l.182.65h6.038l.562.727h-6.397l.183.65h6.717A12.003 12.003 0 0 0 24 12.75 11.977 11.977 0 0 0 11.999.747zm3.654 19.104.182.65h5.326c.173-.204.353-.433.513-.65zm.385 1.377.18.65h3.563c.233-.198.485-.428.712-.65zm.383 1.377.182.648h1.203c.356-.204.685-.412 1.042-.648zz\"/></svg>","orcid":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M12 0C5.372 0 0 5.372 0 12s5.372 12 12 12 12-5.372 12-12S18.628 0 12 0zM7.369 4.378c.525 0 .947.431.947.947s-.422.947-.947.947a.95.95 0 0 1-.947-.947c0-.525.422-.947.947-.947zm-.722 3.038h1.444v10.041H6.647V7.416zm3.562 0h3.9c3.712 0 5.344 2.653 5.344 5.025 0 2.578-2.016 5.025-5.325 5.025h-3.919V7.416zm1.444 1.303v7.444h2.297c3.272 0 4.022-2.484 4.022-3.722 0-2.016-1.284-3.722-4.097-3.722h-2.222z\"/></svg>","zenodo":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M23.82698 11.163a2.2419 2.2419 0 00-.46698-.68697 2.1499 2.1499 0 00-1.52393-.62697 2.10991 2.10991 0 00-1.20695.36499 2.2469 2.2469 0 00-.49498.45398c-.06.075-.125.17499-.163.23599a2.68689 2.68689 0 00-.20498.46398c.006-.27.046-.67197.20499-.89797V8.52212a.42698.42698 0 00-.137-.32199.44298.44298 0 00-.31698-.132.43998.43998 0 00-.32299.132.43998.43998 0 00-.13.32199v1.73292a2.3699 2.3699 0 00-.59197-.29898 2.1239 2.1239 0 00-1.49994.06 2.1599 2.1599 0 00-1.15295 1.14695l-.024.06a2.2419 2.2419 0 00-.48997-.74697 2.1529 2.1529 0 00-1.52394-.62698 2.10991 2.10991 0 00-.84296.167 2.2299 2.2299 0 00-.68697.45998 2.10591 2.10591 0 00-.46598.68697l-.023.056-.023-.056a2.1549 2.1549 0 00-1.98992-1.31395c-.30098 0-.58197.056-.84196.167a2.2299 2.2299 0 00-.68597.45998c-.2.19599-.35499.42398-.46698.68697l-.02.053-.022-.053a2.2429 2.2429 0 00-.46698-.68698 2.1479 2.1479 0 00-1.52293-.62697 2.10991 2.10991 0 00-.84197.167 2.2289 2.2289 0 00-.64197.41798v-.072a.46298.46298 0 00-.46198-.46298H.53398a.46298.46298 0 000 .92596h2.54889L.091 14.84985a.46198.46198 0 00-.091.27499v.30198c0 .256.207.46298.46298.46298h3.44985a.46198.46198 0 00.46198-.42998 2.1689 2.1689 0 001.34695.47198c.44598 0 .84396-.12 1.19494-.35998.283-.192.50698-.43098.66998-.71997v.62597c0 .127.043.235.13.32199a.43598.43598 0 00.32398.132c.12 0 .22399-.044.31598-.132a.42698.42698 0 00.138-.32199V13.8579h-.002l.002-.003H7.36069a.43998.43998 0 00-.41799.28699l-.074.152a1.23395 1.23395 0 01-.45997.53197 1.23395 1.23395 0 01-.68697.197c-.168 0-.32999-.031-.48498-.095a1.17495 1.17495 0 01-.39999-.27 1.38194 1.38194 0 01-.26998-.39998 1.16495 1.16495 0 01-.1-.47698v-.40598h4.02783v-1.37494a1.23695 1.23695 0 01.36498-.87796 1.23995 1.23995 0 01.88996-.36499c.167 0 .32899.032.48398.095.155.065.289.154.39999.27.112.11499.19999.24898.26898.39997.067.151.102.311.102.47798v3.47686c0 .12799.043.23599.13.32298a.43798.43798 0 00.32398.132c.12 0 .224-.044.31599-.132a.43098.43098 0 00.137-.32299v-.62297a2.1439 2.1439 0 001.86791 1.07795c.29399 0 .57398-.056.83697-.168.26199-.11099.49298-.26398.69297-.45997a2.11191 2.11191 0 00.48398-.73297l.018.047c.111.26199.26699.48998.46598.68697.19999.195.42798.34799.68697.45998.25799.11.53997.167.84296.167a2.1469 2.1469 0 001.52294-.62698c.19499-.196.35098-.42498.46698-.68697l.024-.06.024.06c.115.26199.26998.48998.46598.68697a2.1439 2.1439 0 001.52393.62697c.29398 0 .57397-.056.83696-.168a2.2199 2.2199 0 00.69297-.45997 2.11691 2.11691 0 00.63498-1.52194v-1.78192a2.07991 2.07991 0 00-.173-.83696zM1.15995 14.96485l2.4199-3.25886c-.012.096-.02.194-.02.29399v1.77992c0 .296.058.57398.174.83797.05399.123.11799.23899.18998.34698zm5.81775-2.49989H4.4678v-.46498a1.24195 1.24195 0 01.76498-1.14695c.15199-.064.31498-.096.48998-.096.16799 0 .32998.032.48398.095.15599.065.28998.154.39998.26999.112.115.19999.24899.26999.39998.068.151.1.31099.1.47798zm8.05766 1.31594a1.24895 1.24895 0 01-1.25395 1.24295c-.168 0-.32898-.032-.48498-.096a1.16795 1.16795 0 01-.39998-.26999 1.37594 1.37594 0 01-.26899-.39998 1.15895 1.15895 0 01-.1-.47698v-1.78092a1.23995 1.23995 0 011.25495-1.24295c.16599 0 .32798.032.48198.095.15599.065.28998.154.39998.26999.112.115.201.24899.26999.39998.067.152.101.31099.101.47798zm4.02783 0c0 .167-.033.32599-.1.47798a1.37994 1.37994 0 01-.27.39999 1.15995 1.15995 0 01-.39998.26998 1.25995 1.25995 0 01-.48397.094 1.23195 1.23195 0 01-.88997-.36398 1.24195 1.24195 0 01-.36598-.87796v-1.78093c0-.16699.035-.32598.102-.47798a1.39994 1.39994 0 01.26998-.39998 1.15995 1.15995 0 01.39999-.26999 1.26995 1.26995 0 01.48398-.095 1.24995 1.24995 0 01.88996.36499 1.24995 1.24995 0 01.36398.87796zm4.02782 0a1.22395 1.22395 0 01-.36398.87797c-.116.116-.24999.20499-.39998.26998a1.24995 1.24995 0 01-.48998.094 1.26995 1.26995 0 01-.48498-.095 1.16895 1.16895 0 01-.39999-.26998 1.37994 1.37994 0 01-.26998-.39999 1.15695 1.15695 0 01-.1-.47698v-1.78092a1.23995 1.23995 0 011.25494-1.24295c.167 0 .32799.032.48298.095.156.065.29.154.39999.27.112.11499.20099.24898.26998.39997.067.152.1.311.1.47798v1.77993z\"/></svg>","jupyter":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M7.157 22.201A1.784 1.799 0 0 1 5.374 24a1.784 1.799 0 0 1-1.784-1.799 1.784 1.799 0 0 1 1.784-1.799 1.784 1.799 0 0 1 1.783 1.799zM20.582 1.427a1.415 1.427 0 0 1-1.415 1.428 1.415 1.427 0 0 1-1.416-1.428A1.415 1.427 0 0 1 19.167 0a1.415 1.427 0 0 1 1.415 1.427zM4.992 3.336A1.047 1.056 0 0 1 3.946 4.39a1.047 1.056 0 0 1-1.047-1.055A1.047 1.056 0 0 1 3.946 2.28a1.047 1.056 0 0 1 1.046 1.056zm7.336 1.517c3.769 0 7.06 1.38 8.768 3.424a9.363 9.363 0 0 0-3.393-4.547 9.238 9.238 0 0 0-5.377-1.728A9.238 9.238 0 0 0 6.95 3.73a9.363 9.363 0 0 0-3.394 4.547c1.713-2.04 5.004-3.424 8.772-3.424zm.001 13.295c-3.768 0-7.06-1.381-8.768-3.425a9.363 9.363 0 0 0 3.394 4.547A9.238 9.238 0 0 0 12.33 21a9.238 9.238 0 0 0 5.377-1.729 9.363 9.363 0 0 0 3.393-4.547c-1.712 2.044-5.003 3.425-8.772 3.425Z\"/></svg>"}
|