diff --git a/README.rst b/README.rst index cf8f0659..eb6d2c21 100644 --- a/README.rst +++ b/README.rst @@ -19,19 +19,19 @@ Screenshots Running py4web -.. image:: docs/images/first_run.png +.. image:: https://py4web.com/_documentation/static/en/_images/first_run.png The main Dashboard -.. image:: docs/images/dashboard_main.png +.. image:: https://py4web.com/_documentation/static/en/_images/dashboard_main.png Editing a file in the Dashboard -.. image:: docs/images/dashboard_edit.png +.. image:: https://py4web.com/_documentation/static/en/_images/dashboard_edit.png Editing a database in the Dashboard -.. image:: docs/images/dashboard_restapi.png +.. image:: https://py4web.com/_documentation/static/en/_images/dashboard_restapi.png Installation ############ diff --git a/apps/_documentation/static/en/.buildinfo b/apps/_documentation/static/en/.buildinfo index 3ecb0517..d5364a3c 100644 --- a/apps/_documentation/static/en/.buildinfo +++ b/apps/_documentation/static/en/.buildinfo @@ -1,4 +1,4 @@ # Sphinx build info version 1 # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. -config: 719409c852540c9b2fc6f3ba7d8ee30d +config: 05361d6f8693871fc2dbfcc71260e2ee tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/apps/_documentation/static/en/_static/documentation_options.js b/apps/_documentation/static/en/_static/documentation_options.js index 3d03ae6c..7d5644e0 100644 --- a/apps/_documentation/static/en/_static/documentation_options.js +++ b/apps/_documentation/static/en/_static/documentation_options.js @@ -1,5 +1,5 @@ const DOCUMENTATION_OPTIONS = { - VERSION: '20240713', + VERSION: '20240915', LANGUAGE: 'en', COLLAPSE_INDEX: false, BUILDER: 'html', diff --git a/apps/_documentation/static/en/_static/searchtools.js b/apps/_documentation/static/en/_static/searchtools.js index 92da3f8b..b08d58c9 100644 --- a/apps/_documentation/static/en/_static/searchtools.js +++ b/apps/_documentation/static/en/_static/searchtools.js @@ -178,7 +178,7 @@ const Search = { htmlToText: (htmlString, anchor) => { const htmlElement = new DOMParser().parseFromString(htmlString, 'text/html'); - for (const removalQuery of [".headerlinks", "script", "style"]) { + for (const removalQuery of [".headerlink", "script", "style"]) { htmlElement.querySelectorAll(removalQuery).forEach((el) => { el.remove() }); } if (anchor) { @@ -328,13 +328,14 @@ const Search = { for (const [title, foundTitles] of Object.entries(allTitles)) { if (title.toLowerCase().trim().includes(queryLower) && (queryLower.length >= title.length/2)) { for (const [file, id] of foundTitles) { - let score = Math.round(100 * queryLower.length / title.length) + const score = Math.round(Scorer.title * queryLower.length / title.length); + const boost = titles[file] === title ? 1 : 0; // add a boost for document titles normalResults.push([ docNames[file], titles[file] !== title ? `${titles[file]} > ${title}` : title, id !== null ? "#" + id : "", null, - score, + score + boost, filenames[file], ]); } diff --git a/apps/_documentation/static/en/chapter-01.html b/apps/_documentation/static/en/chapter-01.html index c68b8bf2..0aae81d0 100644 --- a/apps/_documentation/static/en/chapter-01.html +++ b/apps/_documentation/static/en/chapter-01.html @@ -4,7 +4,7 @@ -