From 05149db4c1e495eecaf74d267e91f61dee7ee40d Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sat, 15 Jan 2022 06:09:37 +0100 Subject: [help] render user documentation once on startup Currently we have two kinds of user documentation: * the about page[1] which is written in HTML and part of the web application and can therefore link instance-specific pages (like e.g. the preferences) via Jinja variables * the Sphinx documentation[2] which is written in reStructuredText and cannot link instance-specific pages since it doesn't know which instance the user is using The plan is to integrate the user documentation currently in Sphinx into the application, so that it can also link instance specific pages. We also want to enable the user documentation to be translated. This commit implements the first step in this endeavor (see #722). [1]: searx/templates/__common__/about.html [2]: docs/user/ (currently served at https://docs.searxng.org/user/) --- searx/templates/simple/about.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searx/templates/simple/about.html') diff --git a/searx/templates/simple/about.html b/searx/templates/simple/about.html index 1913879da..a59699367 100644 --- a/searx/templates/simple/about.html +++ b/searx/templates/simple/about.html @@ -1,4 +1,4 @@ {% extends 'simple/base.html' %} {% block content %} -{% include '__common__/about.html' %} +{{ help.about | safe }} {% endblock %} -- cgit v1.2.3 From 105c5a6a9839c65a81b32cdf82278c5cc629ae4a Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sat, 15 Jan 2022 09:34:08 +0100 Subject: [help] stop rendering documentation with Jinja2 To facilitate translation of the user documentation we move the templating logic outside of the user documentation. --- searx/templates/simple/about.html | 1 + 1 file changed, 1 insertion(+) (limited to 'searx/templates/simple/about.html') diff --git a/searx/templates/simple/about.html b/searx/templates/simple/about.html index a59699367..9f6a10ced 100644 --- a/searx/templates/simple/about.html +++ b/searx/templates/simple/about.html @@ -1,4 +1,5 @@ {% extends 'simple/base.html' %} {% block content %} {{ help.about | safe }} +{% include "__common__/aboutextend.html" ignore missing %} {% endblock %} -- cgit v1.2.3