Skip to content

Commit e1a00f1

Browse files
author
Massimo Di Pierro
committed
Added docs/_build to gitignore and rebuilt docs
1 parent 40b4f06 commit e1a00f1

File tree

345 files changed

+2388
-88888
lines changed

Some content is hidden

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

345 files changed

+2388
-88888
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ Thumbs.db
1818
./build
1919
./dist
2020
./ssl
21-
./docs
2221
./logs
2322
./*.zip
23+
docs/_build
2424
requirements.txt
2525
apps/_documentation/static/*/*.pdf
2626
apps/_documentation/static/*/*.epub
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
2-
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: f0db29b0663542267f2bca43d72818cc
2+
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
3+
config: 561f6adc6a95dd3c3a572e0df89dc265
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

apps/_documentation/static/en/_static/basic.css

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
/*
2-
* basic.css
3-
* ~~~~~~~~~
4-
*
52
* Sphinx stylesheet -- basic theme.
6-
*
7-
* :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
8-
* :license: BSD, see LICENSE for details.
9-
*
103
*/
114

125
/* -- main layout ----------------------------------------------------------- */
@@ -115,15 +108,11 @@ img {
115108
/* -- search page ----------------------------------------------------------- */
116109

117110
ul.search {
118-
margin: 10px 0 0 20px;
119-
padding: 0;
111+
margin-top: 10px;
120112
}
121113

122114
ul.search li {
123-
padding: 5px 0 5px 20px;
124-
background-image: url(file.png);
125-
background-repeat: no-repeat;
126-
background-position: 0 7px;
115+
padding: 5px 0;
127116
}
128117

129118
ul.search li a {
@@ -752,14 +741,6 @@ abbr, acronym {
752741
cursor: help;
753742
}
754743

755-
.translated {
756-
background-color: rgba(207, 255, 207, 0.2)
757-
}
758-
759-
.untranslated {
760-
background-color: rgba(255, 207, 207, 0.2)
761-
}
762-
763744
/* -- code displays --------------------------------------------------------- */
764745

765746
pre {

apps/_documentation/static/en/_static/doctools.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
/*
2-
* doctools.js
3-
* ~~~~~~~~~~~
4-
*
52
* Base JavaScript utilities for all Sphinx HTML documentation.
6-
*
7-
* :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
8-
* :license: BSD, see LICENSE for details.
9-
*
103
*/
114
"use strict";
125

apps/_documentation/static/en/_static/documentation_options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const DOCUMENTATION_OPTIONS = {
2-
VERSION: '20250902',
2+
VERSION: '20251212',
33
LANGUAGE: 'en',
44
COLLAPSE_INDEX: false,
55
BUILDER: 'html',

apps/_documentation/static/en/_static/language_data.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
/*
2-
* language_data.js
3-
* ~~~~~~~~~~~~~~~~
4-
*
52
* This script contains the language-specific data used by searchtools.js,
63
* namely the list of stopwords, stemmer, scorer and splitter.
7-
*
8-
* :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
9-
* :license: BSD, see LICENSE for details.
10-
*
114
*/
125

136
var stopwords = ["a", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it", "near", "no", "not", "of", "on", "or", "such", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with"];

apps/_documentation/static/en/_static/searchtools.js

Lines changed: 33 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
/*
2-
* searchtools.js
3-
* ~~~~~~~~~~~~~~~~
4-
*
52
* Sphinx JavaScript utilities for the full-text search.
6-
*
7-
* :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
8-
* :license: BSD, see LICENSE for details.
9-
*
103
*/
114
"use strict";
125

@@ -20,7 +13,7 @@ if (typeof Scorer === "undefined") {
2013
// and returns the new score.
2114
/*
2215
score: result => {
23-
const [docname, title, anchor, descr, score, filename] = result
16+
const [docname, title, anchor, descr, score, filename, kind] = result
2417
return score
2518
},
2619
*/
@@ -47,6 +40,14 @@ if (typeof Scorer === "undefined") {
4740
};
4841
}
4942

43+
// Global search result kind enum, used by themes to style search results.
44+
class SearchResultKind {
45+
static get index() { return "index"; }
46+
static get object() { return "object"; }
47+
static get text() { return "text"; }
48+
static get title() { return "title"; }
49+
}
50+
5051
const _removeChildren = (element) => {
5152
while (element && element.lastChild) element.removeChild(element.lastChild);
5253
};
@@ -64,9 +65,13 @@ const _displayItem = (item, searchTerms, highlightTerms) => {
6465
const showSearchSummary = DOCUMENTATION_OPTIONS.SHOW_SEARCH_SUMMARY;
6566
const contentRoot = document.documentElement.dataset.content_root;
6667

67-
const [docName, title, anchor, descr, score, _filename] = item;
68+
const [docName, title, anchor, descr, score, _filename, kind] = item;
6869

6970
let listItem = document.createElement("li");
71+
// Add a class representing the item's type:
72+
// can be used by a theme's CSS selector for styling
73+
// See SearchResultKind for the class names.
74+
listItem.classList.add(`kind-${kind}`);
7075
let requestUrl;
7176
let linkUrl;
7277
if (docBuilder === "dirhtml") {
@@ -115,8 +120,10 @@ const _finishSearch = (resultCount) => {
115120
"Your search did not match any documents. Please make sure that all words are spelled correctly and that you've selected enough categories."
116121
);
117122
else
118-
Search.status.innerText = _(
119-
"Search finished, found ${resultCount} page(s) matching the search query."
123+
Search.status.innerText = Documentation.ngettext(
124+
"Search finished, found one page matching the search query.",
125+
"Search finished, found ${resultCount} pages matching the search query.",
126+
resultCount,
120127
).replace('${resultCount}', resultCount);
121128
};
122129
const _displayNextItem = (
@@ -138,7 +145,7 @@ const _displayNextItem = (
138145
else _finishSearch(resultCount);
139146
};
140147
// Helper function used by query() to order search results.
141-
// Each input is an array of [docname, title, anchor, descr, score, filename].
148+
// Each input is an array of [docname, title, anchor, descr, score, filename, kind].
142149
// Order the results by score (in opposite order of appearance, since the
143150
// `_displayNextItem` function uses pop() to retrieve items) and then alphabetically.
144151
const _orderResultsByScoreThenName = (a, b) => {
@@ -248,6 +255,7 @@ const Search = {
248255
searchSummary.classList.add("search-summary");
249256
searchSummary.innerText = "";
250257
const searchList = document.createElement("ul");
258+
searchList.setAttribute("role", "list");
251259
searchList.classList.add("search");
252260

253261
const out = document.getElementById("search-results");
@@ -318,7 +326,7 @@ const Search = {
318326
const indexEntries = Search._index.indexentries;
319327

320328
// Collect multiple result groups to be sorted separately and then ordered.
321-
// Each is an array of [docname, title, anchor, descr, score, filename].
329+
// Each is an array of [docname, title, anchor, descr, score, filename, kind].
322330
const normalResults = [];
323331
const nonMainIndexResults = [];
324332

@@ -337,6 +345,7 @@ const Search = {
337345
null,
338346
score + boost,
339347
filenames[file],
348+
SearchResultKind.title,
340349
]);
341350
}
342351
}
@@ -354,6 +363,7 @@ const Search = {
354363
null,
355364
score,
356365
filenames[file],
366+
SearchResultKind.index,
357367
];
358368
if (isMain) {
359369
normalResults.push(result);
@@ -475,6 +485,7 @@ const Search = {
475485
descr,
476486
score,
477487
filenames[match[0]],
488+
SearchResultKind.object,
478489
]);
479490
};
480491
Object.keys(objects).forEach((prefix) =>
@@ -502,9 +513,11 @@ const Search = {
502513
// perform the search on the required terms
503514
searchTerms.forEach((word) => {
504515
const files = [];
516+
// find documents, if any, containing the query word in their text/title term indices
517+
// use Object.hasOwnProperty to avoid mismatching against prototype properties
505518
const arr = [
506-
{ files: terms[word], score: Scorer.term },
507-
{ files: titleTerms[word], score: Scorer.title },
519+
{ files: terms.hasOwnProperty(word) ? terms[word] : undefined, score: Scorer.term },
520+
{ files: titleTerms.hasOwnProperty(word) ? titleTerms[word] : undefined, score: Scorer.title },
508521
];
509522
// add support for partial matches
510523
if (word.length > 2) {
@@ -536,8 +549,9 @@ const Search = {
536549

537550
// set score for the word in each file
538551
recordFiles.forEach((file) => {
539-
if (!scoreMap.has(file)) scoreMap.set(file, {});
540-
scoreMap.get(file)[word] = record.score;
552+
if (!scoreMap.has(file)) scoreMap.set(file, new Map());
553+
const fileScores = scoreMap.get(file);
554+
fileScores.set(word, record.score);
541555
});
542556
});
543557

@@ -576,7 +590,7 @@ const Search = {
576590
break;
577591

578592
// select one (max) score for the file.
579-
const score = Math.max(...wordList.map((w) => scoreMap.get(file)[w]));
593+
const score = Math.max(...wordList.map((w) => scoreMap.get(file).get(w)));
580594
// add result to the result list
581595
results.push([
582596
docNames[file],
@@ -585,6 +599,7 @@ const Search = {
585599
null,
586600
score,
587601
filenames[file],
602+
SearchResultKind.text,
588603
]);
589604
}
590605
return results;

apps/_documentation/static/en/chapter-01.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
77

88
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
9-
<title>What is py4web? &mdash; py4web 20250902 documentation</title>
9+
<title>What is py4web? &mdash; py4web 20251212 documentation</title>
1010
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=b86133f3" />
1111
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />
1212
<link rel="stylesheet" type="text/css" href="_static/css/toggle.css?v=029c1802" />
@@ -15,8 +15,8 @@
1515
<link rel="shortcut icon" href="_static/logo-32x32.ico"/>
1616
<script src="_static/jquery.js?v=5d32c60e"></script>
1717
<script src="_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
18-
<script src="_static/documentation_options.js?v=2a8d5aee"></script>
19-
<script src="_static/doctools.js?v=9a2dae69"></script>
18+
<script src="_static/documentation_options.js?v=f6b33611"></script>
19+
<script src="_static/doctools.js?v=9bcbadda"></script>
2020
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
2121
<script src="_static/js/toggle.js?v=e1b5a5a1"></script>
2222
<script src="_static/js/theme.js"></script>
@@ -253,7 +253,7 @@ <h2>Acknowledgments<a class="headerlink" href="#acknowledgments" title="Link to
253253
<label for="switch"></label>
254254
</span>
255255

256-
v: 20250902
256+
v: 20251212
257257
<span class="fa fa-caret-down"></span>
258258
</span>
259259
<div class="rst-other-versions">
@@ -269,6 +269,10 @@ <h2>Acknowledgments<a class="headerlink" href="#acknowledgments" title="Link to
269269

270270
<dd><a href="../pt/index.html">pt</a></dd>
271271

272+
273+
274+
<dd><a href="../zh_CN/index.html">zh_CN</a></dd>
275+
272276
</dl>
273277

274278

apps/_documentation/static/en/chapter-02.html

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
77

88
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
9-
<title>Help, resources and hints &mdash; py4web 20250902 documentation</title>
9+
<title>Help, resources and hints &mdash; py4web 20251212 documentation</title>
1010
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=b86133f3" />
1111
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />
1212
<link rel="stylesheet" type="text/css" href="_static/css/toggle.css?v=029c1802" />
@@ -15,8 +15,8 @@
1515
<link rel="shortcut icon" href="_static/logo-32x32.ico"/>
1616
<script src="_static/jquery.js?v=5d32c60e"></script>
1717
<script src="_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
18-
<script src="_static/documentation_options.js?v=2a8d5aee"></script>
19-
<script src="_static/doctools.js?v=9a2dae69"></script>
18+
<script src="_static/documentation_options.js?v=f6b33611"></script>
19+
<script src="_static/doctools.js?v=9bcbadda"></script>
2020
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
2121
<script src="_static/js/toggle.js?v=e1b5a5a1"></script>
2222
<script src="_static/js/theme.js"></script>
@@ -59,7 +59,7 @@
5959
</ul>
6060
</li>
6161
<li class="toctree-l2"><a class="reference internal" href="#hints-and-tips">Hints and tips</a><ul>
62-
<li class="toctree-l3"><a class="reference internal" href="#prerequisites">Prerequisites</a></li>
62+
<li class="toctree-l3"><a class="reference internal" href="#prerequisite">Prerequisite</a></li>
6363
<li class="toctree-l3"><a class="reference internal" href="#a-modern-python-workplace">A modern python workplace</a></li>
6464
<li class="toctree-l3"><a class="reference internal" href="#debugging-py4web-with-vscode">Debugging py4web with VScode</a></li>
6565
<li class="toctree-l3"><a class="reference internal" href="#debugging-py4web-with-pycharm">Debugging py4web with PyCharm</a></li>
@@ -155,8 +155,8 @@ <h3>The sources on GitHub<a class="headerlink" href="#the-sources-on-github" tit
155155
<section id="hints-and-tips">
156156
<h2>Hints and tips<a class="headerlink" href="#hints-and-tips" title="Link to this heading"></a></h2>
157157
<p>This paragraph is dedicated to preliminary hints, suggestions and tips that could be helpful to know before starting to learn py4web.</p>
158-
<section id="prerequisites">
159-
<h3>Prerequisites<a class="headerlink" href="#prerequisites" title="Link to this heading"></a></h3>
158+
<section id="prerequisite">
159+
<h3>Prerequisite<a class="headerlink" href="#prerequisite" title="Link to this heading"></a></h3>
160160
<p>In order to understand py4web you need at least a basic python knowledge. There are many books, courses and tutorials available on the web - choose
161161
what’s best for you. The python’s decorators, in particular, are a milestone of any python web framework and you have to fully understand it.</p>
162162
</section>
@@ -261,7 +261,7 @@ <h2>How to contribute<a class="headerlink" href="#how-to-contribute" title="Link
261261
<label for="switch"></label>
262262
</span>
263263

264-
v: 20250902
264+
v: 20251212
265265
<span class="fa fa-caret-down"></span>
266266
</span>
267267
<div class="rst-other-versions">
@@ -277,6 +277,10 @@ <h2>How to contribute<a class="headerlink" href="#how-to-contribute" title="Link
277277

278278
<dd><a href="../pt/index.html">pt</a></dd>
279279

280+
281+
282+
<dd><a href="../zh_CN/index.html">zh_CN</a></dd>
283+
280284
</dl>
281285

282286

0 commit comments

Comments
 (0)