Skip to content

Commit 4e08223

Browse files
committed
deploy: 867a9d3
1 parent 3f0272a commit 4e08223

File tree

75 files changed

+2477
-2144
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+2477
-2144
lines changed

.buildinfo

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: be35f4b4dd64338ad60f6a26805b827d
3+
config: 1f9e0c229e23aaa94a3862598e9d5c03
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

_sphinx_design_static/design-style.4045f2051d55cab465a707391d5b2007.min.css _sphinx_design_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_static/basic.css

+1-30
Original file line numberDiff line numberDiff line change
@@ -608,8 +608,6 @@ ol.simple p,
608608
ul.simple p {
609609
margin-bottom: 0;
610610
}
611-
612-
/* Docutils 0.17 and older (footnotes & citations) */
613611
dl.footnote > dt,
614612
dl.citation > dt {
615613
float: left;
@@ -627,33 +625,6 @@ dl.citation > dd:after {
627625
clear: both;
628626
}
629627

630-
/* Docutils 0.18+ (footnotes & citations) */
631-
aside.footnote > span,
632-
div.citation > span {
633-
float: left;
634-
}
635-
aside.footnote > span:last-of-type,
636-
div.citation > span:last-of-type {
637-
padding-right: 0.5em;
638-
}
639-
aside.footnote > p {
640-
margin-left: 2em;
641-
}
642-
div.citation > p {
643-
margin-left: 4em;
644-
}
645-
aside.footnote > p:last-of-type,
646-
div.citation > p:last-of-type {
647-
margin-bottom: 0em;
648-
}
649-
aside.footnote > p:last-of-type:after,
650-
div.citation > p:last-of-type:after {
651-
content: "";
652-
clear: both;
653-
}
654-
655-
/* Footnotes & citations ends */
656-
657628
dl.field-list {
658629
display: grid;
659630
grid-template-columns: fit-content(30%) auto;
@@ -665,11 +636,11 @@ dl.field-list > dt {
665636
padding-left: 0.5em;
666637
padding-right: 5px;
667638
}
668-
669639
dl.field-list > dt:after {
670640
content: ":";
671641
}
672642

643+
673644
dl.field-list > dd {
674645
padding-left: 0.5em;
675646
margin-top: 0em;

_static/design-style.4045f2051d55cab465a707391d5b2007.min.css _static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_static/doctools.js

+11-119
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010
*/
1111
"use strict";
1212

13+
const BLACKLISTED_KEY_CONTROL_ELEMENTS = new Set([
14+
"TEXTAREA",
15+
"INPUT",
16+
"SELECT",
17+
"BUTTON",
18+
]);
19+
1320
const _ready = (callback) => {
1421
if (document.readyState !== "loading") {
1522
callback();
@@ -18,73 +25,11 @@ const _ready = (callback) => {
1825
}
1926
};
2027

21-
/**
22-
* highlight a given string on a node by wrapping it in
23-
* span elements with the given class name.
24-
*/
25-
const _highlight = (node, addItems, text, className) => {
26-
if (node.nodeType === Node.TEXT_NODE) {
27-
const val = node.nodeValue;
28-
const parent = node.parentNode;
29-
const pos = val.toLowerCase().indexOf(text);
30-
if (
31-
pos >= 0 &&
32-
!parent.classList.contains(className) &&
33-
!parent.classList.contains("nohighlight")
34-
) {
35-
let span;
36-
37-
const closestNode = parent.closest("body, svg, foreignObject");
38-
const isInSVG = closestNode && closestNode.matches("svg");
39-
if (isInSVG) {
40-
span = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
41-
} else {
42-
span = document.createElement("span");
43-
span.classList.add(className);
44-
}
45-
46-
span.appendChild(document.createTextNode(val.substr(pos, text.length)));
47-
parent.insertBefore(
48-
span,
49-
parent.insertBefore(
50-
document.createTextNode(val.substr(pos + text.length)),
51-
node.nextSibling
52-
)
53-
);
54-
node.nodeValue = val.substr(0, pos);
55-
56-
if (isInSVG) {
57-
const rect = document.createElementNS(
58-
"http://www.w3.org/2000/svg",
59-
"rect"
60-
);
61-
const bbox = parent.getBBox();
62-
rect.x.baseVal.value = bbox.x;
63-
rect.y.baseVal.value = bbox.y;
64-
rect.width.baseVal.value = bbox.width;
65-
rect.height.baseVal.value = bbox.height;
66-
rect.setAttribute("class", className);
67-
addItems.push({ parent: parent, target: rect });
68-
}
69-
}
70-
} else if (node.matches && !node.matches("button, select, textarea")) {
71-
node.childNodes.forEach((el) => _highlight(el, addItems, text, className));
72-
}
73-
};
74-
const _highlightText = (thisNode, text, className) => {
75-
let addItems = [];
76-
_highlight(thisNode, addItems, text, className);
77-
addItems.forEach((obj) =>
78-
obj.parent.insertAdjacentElement("beforebegin", obj.target)
79-
);
80-
};
81-
8228
/**
8329
* Small JavaScript module for the documentation.
8430
*/
8531
const Documentation = {
8632
init: () => {
87-
Documentation.highlightSearchWords();
8833
Documentation.initDomainIndexTable();
8934
Documentation.initOnKeyListeners();
9035
},
@@ -126,51 +71,6 @@ const Documentation = {
12671
Documentation.LOCALE = catalog.locale;
12772
},
12873

129-
/**
130-
* highlight the search words provided in the url in the text
131-
*/
132-
highlightSearchWords: () => {
133-
const highlight =
134-
new URLSearchParams(window.location.search).get("highlight") || "";
135-
const terms = highlight.toLowerCase().split(/\s+/).filter(x => x);
136-
if (terms.length === 0) return; // nothing to do
137-
138-
// There should never be more than one element matching "div.body"
139-
const divBody = document.querySelectorAll("div.body");
140-
const body = divBody.length ? divBody[0] : document.querySelector("body");
141-
window.setTimeout(() => {
142-
terms.forEach((term) => _highlightText(body, term, "highlighted"));
143-
}, 10);
144-
145-
const searchBox = document.getElementById("searchbox");
146-
if (searchBox === null) return;
147-
searchBox.appendChild(
148-
document
149-
.createRange()
150-
.createContextualFragment(
151-
'<p class="highlight-link">' +
152-
'<a href="javascript:Documentation.hideSearchWords()">' +
153-
Documentation.gettext("Hide Search Matches") +
154-
"</a></p>"
155-
)
156-
);
157-
},
158-
159-
/**
160-
* helper function to hide the search marks again
161-
*/
162-
hideSearchWords: () => {
163-
document
164-
.querySelectorAll("#searchbox .highlight-link")
165-
.forEach((el) => el.remove());
166-
document
167-
.querySelectorAll("span.highlighted")
168-
.forEach((el) => el.classList.remove("highlighted"));
169-
const url = new URL(window.location);
170-
url.searchParams.delete("highlight");
171-
window.history.replaceState({}, "", url);
172-
},
173-
17474
/**
17575
* helper function to focus on search bar
17676
*/
@@ -210,15 +110,11 @@ const Documentation = {
210110
)
211111
return;
212112

213-
const blacklistedElements = new Set([
214-
"TEXTAREA",
215-
"INPUT",
216-
"SELECT",
217-
"BUTTON",
218-
]);
219113
document.addEventListener("keydown", (event) => {
220-
if (blacklistedElements.has(document.activeElement.tagName)) return; // bail for input elements
221-
if (event.altKey || event.ctrlKey || event.metaKey) return; // bail with special keys
114+
// bail for input elements
115+
if (BLACKLISTED_KEY_CONTROL_ELEMENTS.has(document.activeElement.tagName)) return;
116+
// bail with special keys
117+
if (event.altKey || event.ctrlKey || event.metaKey) return;
222118

223119
if (!event.shiftKey) {
224120
switch (event.key) {
@@ -240,10 +136,6 @@ const Documentation = {
240136
event.preventDefault();
241137
}
242138
break;
243-
case "Escape":
244-
if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) break;
245-
Documentation.hideSearchWords();
246-
event.preventDefault();
247139
}
248140
}
249141

_static/documentation_options.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ var DOCUMENTATION_OPTIONS = {
1010
SOURCELINK_SUFFIX: '',
1111
NAVIGATION_WITH_KEYS: false,
1212
SHOW_SEARCH_SUMMARY: true,
13-
ENABLE_SEARCH_SHORTCUTS: false,
13+
ENABLE_SEARCH_SHORTCUTS: true,
1414
};

_static/locales/ar/LC_MESSAGES/booktheme.po

+38-38
Original file line numberDiff line numberDiff line change
@@ -8,68 +8,68 @@ msgstr ""
88
"Language: ar\n"
99
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
1010

11-
msgid "suggest edit"
12-
msgstr "أقترح تحرير"
11+
msgid "Theme by the"
12+
msgstr "موضوع بواسطة"
1313

14-
msgid "Last updated on"
15-
msgstr "آخر تحديث في"
14+
msgid "Open an issue"
15+
msgstr "افتح قضية"
1616

17-
msgid "Edit this page"
18-
msgstr "قم بتحرير هذه الصفحة"
17+
msgid "Contents"
18+
msgstr "محتويات"
1919

20-
msgid "Launch"
21-
msgstr "إطلاق"
20+
msgid "Download notebook file"
21+
msgstr "تنزيل ملف دفتر الملاحظات"
2222

23-
msgid "Print to PDF"
24-
msgstr "طباعة إلى PDF"
23+
msgid "Sphinx Book Theme"
24+
msgstr "موضوع كتاب أبو الهول"
2525

26-
msgid "open issue"
27-
msgstr "قضية مفتوحة"
26+
msgid "Fullscreen mode"
27+
msgstr "وضع ملء الشاشة"
2828

29-
msgid "Download notebook file"
30-
msgstr "تنزيل ملف دفتر الملاحظات"
29+
msgid "Edit this page"
30+
msgstr "قم بتحرير هذه الصفحة"
3131

32-
msgid "Toggle navigation"
33-
msgstr "تبديل التنقل"
32+
msgid "By"
33+
msgstr "بواسطة"
34+
35+
msgid "Copyright"
36+
msgstr "حقوق النشر"
3437

3538
msgid "Source repository"
3639
msgstr "مستودع المصدر"
3740

38-
msgid "By the"
39-
msgstr "بواسطة"
41+
msgid "previous page"
42+
msgstr "الصفحة السابقة"
4043

4144
msgid "next page"
4245
msgstr "الصفحة التالية"
4346

47+
msgid "Toggle navigation"
48+
msgstr "تبديل التنقل"
49+
4450
msgid "repository"
4551
msgstr "مخزن"
4652

47-
msgid "Sphinx Book Theme"
48-
msgstr "موضوع كتاب أبو الهول"
49-
50-
msgid "Download source file"
51-
msgstr "تنزيل ملف المصدر"
53+
msgid "suggest edit"
54+
msgstr "أقترح تحرير"
5255

53-
msgid "Contents"
54-
msgstr "محتويات"
56+
msgid "open issue"
57+
msgstr "قضية مفتوحة"
5558

56-
msgid "By"
57-
msgstr "بواسطة"
59+
msgid "Launch"
60+
msgstr "إطلاق"
5861

59-
msgid "Copyright"
60-
msgstr "حقوق النشر"
62+
msgid "Print to PDF"
63+
msgstr "طباعة إلى PDF"
6164

62-
msgid "Fullscreen mode"
63-
msgstr "وضع ملء الشاشة"
65+
msgid "By the"
66+
msgstr "بواسطة"
6467

65-
msgid "Open an issue"
66-
msgstr "افتح قضية"
68+
msgid "Last updated on"
69+
msgstr "آخر تحديث في"
6770

68-
msgid "previous page"
69-
msgstr "الصفحة السابقة"
71+
msgid "Download source file"
72+
msgstr "تنزيل ملف المصدر"
7073

7174
msgid "Download this page"
7275
msgstr "قم بتنزيل هذه الصفحة"
73-
74-
msgid "Theme by the"
75-
msgstr "موضوع بواسطة"

0 commit comments

Comments
 (0)