SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[docs] switch sphinx theme from pallets to furo (#3408)
Markus Heiser2f72fc4df2e1
diff --git a/docs/_static/searxng.css b/docs/_static/searxng.cssnew file mode 100644index 000000000..46787350d--- /dev/null+++ b/docs/_static/searxng.css@@ -0,0 +1,50 @@++aside.sidebar {+ border-color: lightsteelblue;+ border-radius: 3pt;+}++p.sidebar-title, .sidebar p {+ margin: 6pt;+}++.sidebar li,+.hlist li {+ list-style-type: disclosure-closed;+}++.sphinxsidebar .current > a {+ font-weight: bold;+}++/* admonitions with (rendered) reST markup examples (:class: rst-example)+ *+ * .. admonition:: title of the example+ * :class: rst-example+ * ....+*/++div.rst-example {+ background-color: inherit;+ margin: 0;+ border-top: none;+ border-right: 1px solid #ccc;+ border-bottom: none;+ border-left: none;+ border-radius: none;+ padding: 0;+}++div.rst-example > p.admonition-title {+ font-family: Sans Serif;+ font-style: italic;+ font-size: 0.8em;+ display: block;+ border-bottom: 1px solid #ccc;+ padding: 0.5em 1em;+ text-align: right;+}++div.sphinx-tabs {+ clear: both;+}diff --git a/docs/_themes/searxng/static/searxng.css b/docs/_themes/searxng/static/searxng.cssdeleted file mode 100644index a214bc9d1..000000000--- a/docs/_themes/searxng/static/searxng.css+++ /dev/null@@ -1,151 +0,0 @@-@import url("pocoo.css");--a, a.reference, a.footnote-reference {- color: #004b6b;- border-color: #004b6b;-}--a:hover {- color: #6d4100;- border-color: #6d4100;-}--p.version-warning {- background-color: #004b6b;-}--aside.sidebar {- background-color: whitesmoke;- border-color: lightsteelblue;- border-radius: 3pt;-}--div.sphinxsidebar p.caption {- display: none;-}--p.sidebar-title, .sidebar p {- margin: 6pt;-}--.sidebar li,-.hlist li {- list-style-type: disclosure-closed;-}--.sphinxsidebar .current > a {- font-weight: bold;-}--/* admonitions-*/--div.admonition, div.topic, nav.contents, div.toctree-wrapper {- background-color: #fafafa;- margin: 8px 0px;- padding: 1em;- border-radius: 3pt 0 0 3pt;- border-top: none;- border-right: none;- border-bottom: none;- border-left: 5pt solid #ccc;- list-style-type: disclosure-closed;-}--div.toctree-wrapper p.caption {- font-weight: normal;- font-size: 24px;- margin: 0 0 10px 0;- padding: 0;- line-height: 1;- display: inline;-}--p.admonition-title:after {- content: none;-}--.admonition.hint { border-color: #416dc0b0; }-.admonition.note { border-color: #6c856cb0; }-.admonition.tip { border-color: #85c5c2b0; }-.admonition.attention { border-color: #ecec97b0; }-.admonition.caution { border-color: #a6c677b0; }-.admonition.danger { border-color: #d46262b0; }-.admonition.important { border-color: #dfa3a3b0; }-.admonition.error { border-color: red; }-.admonition.warning { border-color: darkred; }--.admonition.admonition-generic-admonition-title {- border-color: #416dc0b0;-}---/* admonitions with (rendered) reST markup examples (:class: rst-example)- *- * .. admonition:: title of the example- * :class: rst-example- * ....-*/--div.rst-example {- background-color: inherit;- margin: 0;- border-top: none;- border-right: 1px solid #ccc;- border-bottom: none;- border-left: none;- border-radius: none;- padding: 0;-}--div.rst-example > p.admonition-title {- font-family: Sans Serif;- font-style: italic;- font-size: 0.8em;- display: block;- border-bottom: 1px solid #ccc;- padding: 0.5em 1em;- text-align: right;-}--/* code block in figures- */--div.highlight pre {- text-align: left;-}--/* Table theme-*/--thead, tfoot {- background-color: #fff;-}--th:hover, td:hover {- background-color: #ffc;-}--thead th, tfoot th, tfoot td, tbody th {- background-color: #fffaef;-}--tbody tr:nth-child(odd) {- background-color: #fff;-}--tbody tr:nth-child(even) {- background-color: #fafafa;-}--caption {- font-family: Sans Serif;- padding: 0.5em;- margin: 0.5em 0 0.5em 0;- caption-side: top;- text-align: left;-}--div.sphinx-tabs {- clear: both;-}diff --git a/docs/_themes/searxng/theme.conf b/docs/_themes/searxng/theme.confdeleted file mode 100644index 069a40818..000000000--- a/docs/_themes/searxng/theme.conf+++ /dev/null@@ -1,7 +0,0 @@-[theme]-inherit = pocoo-stylesheet = searxng.css--[options]-touch_icon =-globaltoc_maxdepth = 5\ No newline at end of filediff --git a/docs/conf.py b/docs/conf.pyindex e9d9db846..b976f0209 100644--- a/docs/conf.py+++ b/docs/conf.py@@ -1,8 +1,7 @@# SPDX-License-Identifier: AGPL-3.0-or-later-import sys, os+import sys, osfrom pathlib import Path-from pallets_sphinx_themes import ProjectLinkfrom searx import get_settingfrom searx.version import VERSION_STRING, GIT_URL, GIT_BRANCH@@ -98,7 +97,6 @@ extlinks['pull-searx'] = ('https://github.com/searx/searx/pull/%s', 'PR %s')extlinks['origin'] = (GIT_URL + '/blob/' + GIT_BRANCH + '/%s', 'git://%s')extlinks['patch'] = (GIT_URL + '/commit/%s', '#%s')extlinks['docs'] = (DOCS_URL + '/%s', 'docs: %s')-extlinks['pypi'] = ('https://pypi.org/project/%s', 'PyPi: %s')extlinks['man'] = ('https://manpages.debian.org/jump?q=%s', '%s')#extlinks['role'] = (# 'https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#role-%s', '')@@ -117,7 +115,6 @@ extensions = ['sphinx.ext.viewcode',"sphinx.ext.autodoc","sphinx.ext.intersphinx",- "pallets_sphinx_themes","sphinx_issues", # https://github.com/sloria/sphinx-issues/blob/master/README.rst"sphinx_jinja", # https://github.com/tardyp/sphinx-jinja"sphinxcontrib.programoutput", # https://github.com/NextThought/sphinxcontrib-programoutput@@ -158,15 +155,29 @@ issues_github_path = "searxng/searxng"# HTML -----------------------------------------------------------------+html_theme = "furo"++html_sidebars = {+ "**": [+ "sidebar/scroll-start.html",+ "sidebar/brand.html",+ "sidebar/search.html",+ "sidebar/navigation.html",+ "sidebar/ethical-ads.html",+ "sidebar/scroll-end.html",+ ]+}++html_static_path = ['_static']++html_css_files = [+ 'searxng.css',+]+# https://searxng.github.io/searxng --> '/searxng/'# https://docs.searxng.org --> '/'notfound_urls_prefix = '/'-sys.path.append(os.path.abspath('_themes'))-sys.path.insert(0, os.path.abspath("../"))-html_theme_path = ['_themes']-html_theme = "searxng"-# sphinx.ext.imgmath setuphtml_math_renderer = 'imgmath'imgmath_image_format = 'svg'@@ -174,31 +185,6 @@ imgmath_font_size = 14# sphinx.ext.imgmath setup ENDhtml_show_sphinx = False-html_theme_options = {"index_sidebar_logo": True}-html_context = {"project_links": [] }-html_context["project_links"].append(ProjectLink("Source", GIT_URL + '/tree/' + GIT_BRANCH))--if WIKI_URL:- html_context["project_links"].append(ProjectLink("Wiki", WIKI_URL))-if PUBLIC_INSTANCES:- html_context["project_links"].append(ProjectLink("Public instances", PUBLIC_INSTANCES))-if ISSUE_URL:- html_context["project_links"].append(ProjectLink("Issue Tracker", ISSUE_URL))-if PRIVACYPOLICY_URL:- html_context["project_links"].append(ProjectLink("Privacy Policy", PRIVACYPOLICY_URL))-if CONTACT_URL:- html_context["project_links"].append(ProjectLink("Contact", CONTACT_URL))--html_sidebars = {- "**": [- "globaltoc.html",- "project.html",- "relations.html",- "searchbox.html",- "sourcelink.html"- ],-}-singlehtml_sidebars = {"index": ["project.html", "localtoc.html"]}html_logo = "../client/simple/src/brand/searxng-wordmark.svg"html_title = "SearXNG Documentation ({})".format(VERSION_STRING)html_show_sourcelink = Truediff --git a/requirements-dev.txt b/requirements-dev.txtindex 15002f9cf..0ad42b624 100644--- a/requirements-dev.txt+++ b/requirements-dev.txt@@ -5,12 +5,12 @@ black==25.9.0pylint==4.0.5splinter==0.21.0selenium==4.43.0-Pallets-Sphinx-Themes==2.5.0Sphinx==8.2.3;python_version <= "3.11"Sphinx==9.1.0; python_version > "3.11"sphinx-issues==6.0.0sphinx-jinja==2.0.2sphinx-tabs==3.5.0+furo==2025.12.19sphinxcontrib-programoutput==0.19sphinx-autobuild==2025.8.25sphinx-notfound-page==1.1.0