kr.motd.maven.sphinx.dist.recommonmark.transform$py.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sphinx-maven-plugin Show documentation
Show all versions of sphinx-maven-plugin Show documentation
Maven plugin that creates the site with Sphinx
???? 1{ f$0 R(Lorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; __doc__ /Implement some common transforms on parsed AST. org/python/core/PyString fromInterned .(Ljava/lang/String;)Lorg/python/core/PyString;
org/python/core/PyFrame
setglobal /(Ljava/lang/String;Lorg/python/core/PyObject;)V
setline (I)V
os org/python/core/imp importOne H(Ljava/lang/String;Lorg/python/core/PyFrame;I)Lorg/python/core/PyObject;
setlocal
sys " states $ java/lang/String & DummyStateMachine (
importFrom \(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject; * +
, docutils . nodes 0
transforms 2 docutils.statemachine 4
StringList 6 org/python/core/PyObject 8 getname .(Ljava/lang/String;)Lorg/python/core/PyObject; : ;
< Transform > __getattr__ @ ;
9 A
AutoStructify C AutoStructify$1
__module__ F __name__ H ?Automatically try to transform blocks to sphinx directives.
This class is designed to handle AST generated by CommonMarkParser.
J org/python/core/Py L
newInteger (I)Lorg/python/core/PyInteger; N O
M P default_priority R set T org/python/core/PyList V md X rst Z ([Lorg/python/core/PyObject;)V \ ]
W ^ __call__ S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ` a
9 b
suffix_set d org/python/core/PyDictionary f enable_auto_doc_ref h True j auto_toc_tree_section l None n enable_auto_toc_tree p enable_eval_rst r enable_math t enable_inline_math v url_resolver x EmptyObjects [Lorg/python/core/PyObject; z { M | org/python/core/PyFunction ~ f_globals Lorg/python/core/PyObject; ? ? ? f$2 getlocal (I)Lorg/python/core/PyObject; ? ?
? f_lasti I ? ? ? recommonmark/transform$py ? Lorg/python/core/PyCode; ? ? ? ? P(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;)V \ ?
?
g ^ default_config ? parse_ref$3Analyze the ref block, and return the information needed.
Parameters
----------
ref : nodes.reference
Returns
-------
result : tuple of (str, str, str)
The returned result is tuple of (title, uri, docpath).
title is the display title of the ref.
uri is the html uri of to the ref after resolve.
docpath is the absolute document path to the document, if
the target corresponds to an internal document, this can bex None
? __debug__ ? getglobal ? ;
? __nonzero__ ()Z ? ?
9 ?
isinstance ? reference ? m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ` ?
9 ? n ? M ? AssertionError ?
makeException S(Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyException; ? ?
M ? (ILorg/python/core/PyObject;)V ?
? len ? children ? _eq 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
9 ? name ? __getitem__ ? ?
9 ? Text ? astext ? 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; ` ?
9 ? refuri ? find ? :// ? _ne ? ?
9 ? org/python/core/PyTuple ?
? ^ split ? # ? _gt ? ?
9 ? path ? abspath ? join ? file_dir ? relpath ? root_dir ? rsplit ? . ? _in ? ?
9 ? exists ?
startswith ? / ? _add ? ?
9 ? .html ? _is ? ?
9 ? _iadd ? ?
9 ? ? ? ? j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V \
parse_ref auto_toc_tree$4?Try to convert a list block to toctree in rst.
This function detects if the matches the condition and return
a converted toc tree node. The matching condition:
The list only contains one level, and only contains references
Parameters
----------
node: nodes.Sequential
A list node in the doctree
Returns
-------
tocnode: docutils node
The converted toc tree node, None if conversion is not possible.
config __not__ ()Lorg/python/core/PyObject;
9 _isnot ?
9 parent section title strip bullet_list enumerated_list __getslice__ j(Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; !
9" __iter__$
9% list_item' paragraph) unpackSequence 8(Lorg/python/core/PyObject;I)[Lorg/python/core/PyObject;+,
M- append/ __iternext__1
92
state_machine4 reset6 document8
current_level: ?(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; `<
9=
run_directive? toctreeA maxdepthC numberedE ()V \G
WH %s <%s>J _modL ?
9M dellocalO
P optionsR contentT g(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject; `V
9W ? ?Y
auto_toc_tree[ auto_doc_ref$50Try to convert a reference to docref in rst.
Parameters
----------
node : nodes.reference
A reference node in doctree.
Returns
-------
tocnode: docutils node
The converted toc tree node, None if conversion is not possible.
^ org/python/core/PyUnicode` /(Ljava/lang/String;)Lorg/python/core/PyUnicode; b
ac run_rolee docg __setitem__ 7(Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Vij
9k] ? ?m auto_doc_refo auto_inline_code$65Try to automatically generate nodes for inline literals.
Parameters
----------
node : nodes.literal
Original codeblock node
Returns
-------
tocnode: docutils node
The converted toc tree node, None if conversion is not possible.
r literalt $v endswithx mathzq ? ?| auto_inline_code~ auto_code_block$7