Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.171
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
sphinx /
ext /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
autodoc
[ DIR ]
drwxr-xr-x
autosummary
[ DIR ]
drwxr-xr-x
napoleon
[ DIR ]
drwxr-xr-x
__init__.py
208
B
-rw-r--r--
apidoc.py
18.93
KB
-rw-r--r--
autosectionlabel.py
2.19
KB
-rw-r--r--
coverage.py
13.85
KB
-rw-r--r--
doctest.py
22.29
KB
-rw-r--r--
duration.py
2.93
KB
-rw-r--r--
extlinks.py
3.47
KB
-rw-r--r--
githubpages.py
1.21
KB
-rw-r--r--
graphviz.py
15.6
KB
-rw-r--r--
ifconfig.py
2.56
KB
-rw-r--r--
imgconverter.py
3.44
KB
-rw-r--r--
imgmath.py
13.01
KB
-rw-r--r--
inheritance_diagram.py
16.78
KB
-rw-r--r--
intersphinx.py
21.01
KB
-rw-r--r--
linkcode.py
2.29
KB
-rw-r--r--
mathjax.py
5.14
KB
-rw-r--r--
todo.py
8.02
KB
-rw-r--r--
viewcode.py
13.47
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ifconfig.py
""" sphinx.ext.ifconfig ~~~~~~~~~~~~~~~~~~~ Provides the ``ifconfig`` directive that allows to write documentation that is included depending on configuration variables. Usage:: .. ifconfig:: releaselevel in ('alpha', 'beta', 'rc') This stuff is only included in the built docs for unstable versions. The argument for ``ifconfig`` is a plain Python expression, evaluated in the namespace of the project configuration (that is, all variables from ``conf.py`` are available.) :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ from typing import Any, Dict, List from docutils import nodes from docutils.nodes import Node import sphinx from sphinx.application import Sphinx from sphinx.util.docutils import SphinxDirective from sphinx.util.nodes import nested_parse_with_titles from sphinx.util.typing import OptionSpec class ifconfig(nodes.Element): pass class IfConfig(SphinxDirective): has_content = True required_arguments = 1 optional_arguments = 0 final_argument_whitespace = True option_spec: OptionSpec = {} def run(self) -> List[Node]: node = ifconfig() node.document = self.state.document self.set_source_info(node) node['expr'] = self.arguments[0] nested_parse_with_titles(self.state, self.content, node) return [node] def process_ifconfig_nodes(app: Sphinx, doctree: nodes.document, docname: str) -> None: ns = {confval.name: confval.value for confval in app.config} ns.update(app.config.__dict__.copy()) ns['builder'] = app.builder.name for node in doctree.traverse(ifconfig): try: res = eval(node['expr'], ns) except Exception as err: # handle exceptions in a clean fashion from traceback import format_exception_only msg = ''.join(format_exception_only(err.__class__, err)) newnode = doctree.reporter.error('Exception occurred in ' 'ifconfig expression: \n%s' % msg, base_node=node) node.replace_self(newnode) else: if not res: node.replace_self([]) else: node.replace_self(node.children) def setup(app: Sphinx) -> Dict[str, Any]: app.add_node(ifconfig) app.add_directive('ifconfig', IfConfig) app.connect('doctree-resolved', process_ifconfig_nodes) return {'version': sphinx.__display_version__, 'parallel_read_safe': True}
Close