4from searx.version import VERSION_STRING
5from pallets_sphinx_themes import ProjectLink
7GIT_URL = os.environ.get("GIT_URL", "https://github.com/asciimoo/searx")
8SEARX_URL = os.environ.get("SEARX_URL", "https://searx.me")
9DOCS_URL = os.environ.get("DOCS_URL", "https://asciimoo.github.io/searx/")
11# Project --------------------------------------------------------------
14copyright = u'2015-2019, Adam Tauber, Noémi Ványi'
15author = u'Adam Tauber'
16release, version = VERSION_STRING, VERSION_STRING
17highlight_language = 'none'
19# General --------------------------------------------------------------
25from searx import webapp
27 'webapp': dict(**webapp.__dict__)
30# usage:: lorem :patch:`f373169` ipsum
34extlinks['wiki'] = ('https://github.com/asciimoo/searx/wiki/%s', ' ')
35extlinks['pull'] = ('https://github.com/asciimoo/searx/pull/%s', 'PR ')
37# links to custom brand
38extlinks['origin'] = (GIT_URL + '/blob/master/%s', 'git://')
39extlinks['patch'] = (GIT_URL + '/commit/%s', '#')
40extlinks['search'] = (SEARX_URL + '/%s', '#')
41extlinks['docs'] = (DOCS_URL + '/%s', 'docs: ')
42extlinks['pypi'] = ('https://pypi.org/project/%s', 'PyPi: ')
43extlinks['man'] = ('https://manpages.debian.org/jump?q=%s', '')
45# 'https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#role-%s', '')
47 'http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#%s', '')
49 'http://docutils.sourceforge.net/docs/ref/rst/roles.html#%s', '')
51 'http://docutils.sourceforge.net/docs/ref/rst/directives.html#%s', '')
53 'https://ctan.org/pkg/%s', 'CTAN: ')
57 'sphinx.ext.extlinks',
58 'sphinx.ext.viewcode',
60 "sphinx.ext.intersphinx",
61 "pallets_sphinx_themes",
62 "sphinx_issues", # https://github.com/sloria/sphinx-issues/blob/master/README.rst
63 "sphinxcontrib.jinja", # https://github.com/tardyp/sphinx-jinja
64 "sphinxcontrib.programoutput", # https://github.com/NextThought/sphinxcontrib-programoutput
65 'linuxdoc.rstFlatTable', # Implementation of the 'flat-table' reST-directive.
66 'linuxdoc.kfigure', # Sphinx extension which implements scalable image handling.
67 "sphinx_tabs.tabs", # https://github.com/djungelorm/sphinx-tabs
70intersphinx_mapping = {
71 "python": ("https://docs.python.org/3/", None),
72 "flask": ("https://flask.palletsprojects.com/", None),
73 # "werkzeug": ("https://werkzeug.palletsprojects.com/", None),
74 "jinja": ("https://jinja.palletsprojects.com/", None),
75 "linuxdoc" : ("https://return42.github.io/linuxdoc/", None),
76 "sphinx" : ("https://www.sphinx-doc.org/en/master/", None),
79issues_github_path = "asciimoo/searx"
81# HTML -----------------------------------------------------------------
83sys.path.append(os.path.abspath('_themes'))
84html_theme_path = ['_themes']
87# sphinx.ext.imgmath setup
88html_math_renderer = 'imgmath'
89imgmath_image_format = 'svg'
91# sphinx.ext.imgmath setup END
93html_theme_options = {"index_sidebar_logo": True}
96 ProjectLink("Source", GIT_URL),
97 ProjectLink("Wiki", "https://github.com/asciimoo/searx/wiki"),
98 ProjectLink("Public instances", "https://asciimoo.github.io/searx/user/public_instances.html"),
99 ProjectLink("Twitter", "https://twitter.com/Searx_engine"),
103 "**": ["project.html", "relations.html", "searchbox.html"],
105singlehtml_sidebars = {"index": ["project.html", "localtoc.html"]}
106html_static_path = ["static"]
107html_logo = "static/img/searx_logo_small.png"
108html_title = "Searx Documentation ({})".format("Searx-{}.tex".format(VERSION_STRING))
109html_show_sourcelink = False
111# LaTeX ----------------------------------------------------------------
114 (master_doc, "searx-{}.tex".format(VERSION_STRING), html_title, author, "manual")
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list