.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
__init__ (self, str fname) | |
raw_content (self) | |
content (self) | |
title (self) | |
str | html (self) |
dict[str, str] | get_ctx (self) |
__repr__ (self) |
Public Attributes | |
str | 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, | |
str | 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 get_ctx(), and raw_content().
dict[str, str] searx.infopage.InfoPage.get_ctx | ( | self | ) |
Jinja context to render :py:obj:`InfoPage.content`
Definition at line 94 of file __init__.py.
Referenced by content().
str 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 fname.
Referenced by content(), and title().
searx.infopage.InfoPage.title | ( | self | ) |
Title of the content (without any markup)
Definition at line 74 of file __init__.py.
References 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 raw_content().