.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
__init__ (self, fname) | |
raw_content (self) | |
content (self) | |
title (self) | |
html (self) | |
get_ctx (self) | |
__repr__ (self) | |
Public Attributes | |
fname = fname | |
content | |
A page of the :py:obj:`online documentation <InfoPageSet>`.
Definition at line 54 of file __init__.py.
searx.infopage.InfoPage.__init__ | ( | self, | |
fname ) |
Definition at line 57 of file __init__.py.
searx.infopage.InfoPage.__repr__ | ( | self | ) |
Definition at line 113 of file __init__.py.
searx.infopage.InfoPage.content | ( | self | ) |
Content of the page (rendered in a Jinja context)
Definition at line 67 of file __init__.py.
References searx.infopage.InfoPage.get_ctx(), and searx.infopage.InfoPage.raw_content().
searx.infopage.InfoPage.get_ctx | ( | self | ) |
Jinja context to render :py:obj:`InfoPage.content`
Definition at line 94 of file __init__.py.
Referenced by searx.infopage.InfoPage.content().
searx.infopage.InfoPage.html | ( | self | ) |
Render Markdown (CommonMark_) to HTML by using markdown-it-py_. .. _CommonMark: https://commonmark.org/ .. _markdown-it-py: https://github.com/executablebooks/markdown-it-py
Definition at line 83 of file __init__.py.
searx.infopage.InfoPage.raw_content | ( | self | ) |
Raw content of the page (without any jinja rendering)
Definition at line 61 of file __init__.py.
References searx.infopage.InfoPage.fname.
Referenced by searx.infopage.InfoPage.content(), and searx.infopage.InfoPage.title().
searx.infopage.InfoPage.title | ( | self | ) |
Title of the content (without any markup)
Definition at line 74 of file __init__.py.
References searx.infopage.InfoPage.raw_content().
searx.infopage.InfoPage.content |
Definition at line 91 of file __init__.py.
searx.infopage.InfoPage.fname = fname |
Definition at line 58 of file __init__.py.
Referenced by searx.infopage.InfoPage.raw_content().