From 579334a7d806a8d8edc1f3a51399c05636354759 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sat, 5 Feb 2022 10:29:33 +0100 Subject: [PATCH] [help] move about.md to searx/help/en/ --- searx/help/{ => en}/about.md | 0 searx/user_help.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename searx/help/{ => en}/about.md (100%) diff --git a/searx/help/about.md b/searx/help/en/about.md similarity index 100% rename from searx/help/about.md rename to searx/help/en/about.md diff --git a/searx/user_help.py b/searx/user_help.py index ae08ce760..1914c7c84 100644 --- a/searx/user_help.py +++ b/searx/user_help.py @@ -47,7 +47,7 @@ def render(app: flask.Flask): define_link_targets = ''.join(f'[{name}]: {url}\n' for name, url in link_targets.items()) for pagename in _TOC: - file_content = pkg_resources.resource_string(__name__, 'help/' + pagename + '.md').decode() + file_content = pkg_resources.resource_string(__name__, 'help/en/' + pagename + '.md').decode() markdown = define_link_targets + file_content assert file_content.startswith('# ') title = file_content.split('\n', maxsplit=1)[0].strip('# ')