![JAR search and dependency download from the Maven repository](/logo.png)
kr.motd.maven.sphinx.dist.docutils.transforms.frontmatter$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__ 4
Transforms related to the front matter of a document or a section
(information found before the main text):
- `DocTitle`: Used to transform a lone top level section's title to
the document title, promote a remaining lone top-level section's
title to the document subtitle, and determine the document's title
metadata (document['title']) based on the document title and/or the
"title" setting.
- `SectionSubTitle`: Used to transform a lone subsection into a
subtitle.
- `DocInfo`: Used to transform a bibliographic field list into docinfo
elements.
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
reStructuredText
__docformat__ setlocal
re org/python/core/imp importOne H(Ljava/lang/String;Lorg/python/core/PyFrame;I)Lorg/python/core/PyObject; " #
! $ docutils & java/lang/String ( nodes * utils ,
importFrom \(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject; . /
! 0 docutils.transforms 2 TransformError 4 Transform 6 org/python/core/PyObject 8 getname .(Ljava/lang/String;)Lorg/python/core/PyObject; : ;
<
TitlePromoter > TitlePromoter$1
__module__ A __name__ C J
Abstract base class for DocTitle and SectionSubTitle transforms.
E org/python/core/Py G EmptyObjects [Lorg/python/core/PyObject; I J H K org/python/core/PyFunction M f_globals Lorg/python/core/PyObject; O P Q promote_title$2
Transform the following tree::
...
into ::
...
`node` is normally a document.
T
isinstance V getglobal X ;
Y getlocal (I)Lorg/python/core/PyObject; [ \
] Element _ __getattr__ a ;
9 b __call__ m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; d e
9 f __not__ ()Lorg/python/core/PyObject; h i
9 j __nonzero__ ()Z l m
9 n TypeError p %node must be of Element-derived type. r
makeException S(Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyException; t u
H v __debug__ x len z S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; d |
9 }
newInteger (I)Lorg/python/core/PyInteger; ?
H ? __getitem__ 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
9 ? title ? None ? P H ? AssertionError ? candidate_index ? unpackSequence 8(Lorg/python/core/PyObject;I)[Lorg/python/core/PyObject; ? ?
H ? (ILorg/python/core/PyObject;)V ?
? ? _is ? ?
9 ? f_lasti I ? ? ? update_all_atts_concatenating ? True ? ?(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; d ?
9 ? __getslice__ j(Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
9 ? _add ? ?
9 ? __setslice__ k(Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)V ? ?
9 ? "docutils/transforms/frontmatter$py ? Lorg/python/core/PyCode; S ? ? ? j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V ? ?
N ?
promote_title ? promote_subtitle$3
Transform the following node tree::
...
into ::
...
? subtitle ? 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; d ?
9 ? org/python/core/PyList ? ([Lorg/python/core/PyObject;)V ? ?
? ? ? ? ? ? promote_subtitle ? candidate_index$4 ?
Find and return the promotion candidate and its index.
Return (None, None) if no valid candidate was found.
? first_child_not_matching_class ? PreBibliographic ? _gt ? ?
9 ? section ? org/python/core/PyTuple ?
? ? ? ? ? ? getf_locals ? i
? @ ? ? ? makeClass a(Ljava/lang/String;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;)Lorg/python/core/PyObject; ? ?
H ? java/util/Arrays ? fill (([Ljava/lang/Object;Ljava/lang/Object;)V ? ?
? ? DocTitle ?
DocTitle$5
?
In reStructuredText_, there is no way to specify a document title
and subtitle explicitly. Instead, we can supply the document title
(and possibly the subtitle as well) implicitly, and use this
two-step transform to "raise" or "promote" the title(s) (and their
corresponding section contents) to the document level.
1. If the document contains a single top-level section as its
first non-comment element, the top-level section's title
becomes the document's title, and the top-level section's
contents become the document's immediate contents. The lone
top-level section header must be the first non-comment element
in the document.
For example, take this input text::
=================
Top-Level Title
=================
A paragraph.
Once parsed, it looks like this::
Top-Level Title
A paragraph.
After running the DocTitle transform, we have::
Top-Level Title
A paragraph.
2. If step 1 successfully determines the document title, we
continue by checking for a subtitle.
If the lone top-level section itself contains a single
second-level section as its first non-comment element, that
section's title is promoted to the document's subtitle, and
that section's contents become the document's immediate
contents. Given this input text::
=================
Top-Level Title
=================
Second-Level Title
~~~~~~~~~~~~~~~~~~
A paragraph.
After parsing and running the Section Promotion transform, the
result is::
Top-Level Title
Second-Level Title
A paragraph.
(Note that the implicit hyperlink target generated by the
"Second-Level Title" is preserved on the "subtitle" element
itself.)
Any comment elements occurring before the document title or
subtitle are accumulated and inserted as the first body elements
after the title(s).
This transform also sets the document's metadata title
(document['title']).
.. _reStructuredText: http://docutils.sf.net/rst.html
? default_priority ? set_metadata$6
Set document['title'] metadata title from the following
sources, listed in order of priority:
* Existing document['title'] attribute.
* "title" setting.
* Document title node (as promoted by promote_title).
? document ? hasattr ? settings ? _isnot ? ?
9 ? __setitem__ 7(Lorg/python/core/PyObject;Lorg/python/core/PyObject;)V
9 astext ? ? ? set_metadata apply$7 getattr doctitle_xform
? ? apply ? ? ? SectionSubTitle SectionSubTitle$8?
This works like document subtitles, but for sections. For example, ::
Title
Subtitle
...
is transformed into ::
Title
Subtitle
...
For details refer to the docstring of DocTitle.
apply$9 sectsubtitle_xform traverse __iter__ i
9 __iternext__" i
9# ? ?% ? ?' DocInfo)
DocInfo$10T
This transform is specific to the reStructuredText_ markup syntax;
see "Bibliographic Fields" in the `reStructuredText Markup
Specification`_ for a high-level description. This transform
should be run *after* the `DocTitle` transform.
Given a field list as the first non-comment element after the
document title and subtitle (if present), registered bibliographic
field names are transformed to the corresponding DTD elements,
becoming child elements of the "docinfo" element (except for a
dedication and/or an abstract, which become "topic" elements after
"docinfo").
For example, given this document fragment after parsing::
Document Title
Author
A. Name
Status
$RCSfile$
...
After running the bibliographic field list transform, the
resulting document tree would look like this::
Document Title
A. Name
frontmatter.py
...
The "Status" field contained an expanded RCS keyword, which is
normally (but optionally) cleaned up by the transform. The sole
contents of the field body must be a paragraph containing an
expanded RCS keyword of the form "$keyword: expansion text $". Any
RCS keyword can be processed in any bibliographic field. The
dollar signs and leading RCS keyword name are removed. Extra
processing is done for the following RCS keywords:
- "RCSfile" expands to the name of the file in the RCS or CVS
repository, which is the name of the source file with a ",v"
suffix appended. The transform will remove the ",v" suffix.
- "Date" expands to the format "YYYY/MM/DD hh:mm:ss" (in the UTC
time zone). The RCS Keywords transform will extract just the
date itself and transform it to an ISO 8601 format date, as in
"2000-12-31".
(Since the source file for this text is itself stored under CVS,
we can't show an example of the "Date" RCS keyword because we
can't prevent any RCS keywords used in this explanation from
being expanded. Only the "RCSfile" keyword is stable; its
expansion text changes only if the file name changes.)
.. _reStructuredText: http://docutils.sf.net/rst.html
.. _reStructuredText Markup Specification:
http://docutils.sf.net/docs/ref/rst/restructuredtext.html
, org/python/core/PyDictionary. author0 authors2 organization4 address6 contact8 version: revision< status> date@ copyrightB
dedicationD topicF abstractH
/ ? biblio_nodesK eCanonical field name (lowcased) to node class name mapping for
bibliographic fields (field_list).M apply$11
docinfo_xformP
field_listR TitularT
DecorativeV extract_bibliographicX __delitem__ (Lorg/python/core/PyObject;)VZ[
9\O ? ?^ extract_bibliographic$12 docinfoa languagec bibliographic_fieldse labelsg fully_normalize_namei _eqk ?
9l _inn ?
9o check_empty_biblio_fieldq 9(Lorg/python/core/PyObject;)Lorg/python/core/PyException; ts
Ht
issubclassv TextElementx check_compound_biblio_fieldz clean_rcs_keywords| rcs_keyword_substitutions~ append? ?
_callextra ~([Lorg/python/core/PyObject;[Ljava/lang/String;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;??
9? extract_authors? reporter? warning? !There can only be one "%s" field.? _mod? ?
9? base_node? g(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject; d?
9? _iadd? ?
9? classes? children? setException M(Ljava/lang/Throwable;Lorg/python/core/PyFrame;)Lorg/python/core/PyException;??
H? org/python/core/PyException? match (Lorg/python/core/PyObject;)Z??
?? paragraph? _notin? ?
9? make_id? java/lang/Throwable? _ne? ?
9?` ? ?? check_empty_biblio_field$13 _lt? ?
9? .Cannot extract empty bibliographic field "%s".?? ? ?? check_compound_biblio_field$14 1Cannot extract compound bibliographic field "%s".? ZCannot extract bibliographic field "%s" containing anything other than a single paragraph.?? ? ?? compile? 8\$Date: (\d\d\d\d)[-/](\d\d)[-/](\d\d)[ T][\d:]+[^$]* \$?
IGNORECASE? \1-\2-\3? \$RCSfile: (.+),v \$? \1? \$[a-zA-Z]+: (.+) \$? extract_authors$15 authors_from_one_paragraph? bullet_list? authors_from_bullet_list? authors_from_paragraphs? ()V ??
?? dellocal?
? _ge? ?
9? ?Bibliographic field "%s" incompatible with extraction: it must contain either a single paragraph (with authors separated by one of "%s"), multiple paragraphs (one per author), or a bullet list with one paragraph (one author) per item.? join? author_separators? ()Lorg/python/core/PyException; t?
H?? ? ?? authors_from_one_paragraph$16 strip? split? Text?? ? ?? authors_from_bullet_list$17? ? ?? authors_from_paragraphs$18? ? ??+ ? ? (Ljava/lang/String;)V org/python/core/PyFunctionTable
? self $Ldocutils/transforms/frontmatter$py; ?
newCode ?(I[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZLorg/python/core/PyFunctionTable;I[Ljava/lang/String;[Ljava/lang/String;II)Lorg/python/core/PyCode;
H ? ? node index
subsection candidate biblioindex nodelist bibliofields topics! field# name%
normedname' canonical) biblioclass+
classvalue- authornodes/ _[488_27]1 text3 authorsep5 authornames7 _[513_23]9 _[514_19]; item= _[531_19]? getMain ()Lorg/python/core/PyCode; main ([Ljava/lang/String;)V ? ?
?FAB
?H org/python/core/CodeLoaderJ createSimpleBootstrap 9(Lorg/python/core/PyCode;)Lorg/python/core/CodeBootstrap;LM
KN runMain 5(Lorg/python/core/CodeBootstrap;[Ljava/lang/String;)VPQ
HR getCodeBootstrap !()Lorg/python/core/CodeBootstrap; #org/python/core/PyRunnableBootstrapV )getFilenameConstructorReflectionBootstrap 2(Ljava/lang/Class;)Lorg/python/core/CodeBootstrap;XY
WZ
call_function S(ILorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;
?^ @
?` S
?b ?
?d ?
?f ?
?h ?
?j
?l
?n
?p+
?rO
?t`
?v?
?x?
?z?
?|?
?~?
???
?? org/python/core/PyRunnable? Lorg/python/compiler/APIVersion; value % Lorg/python/compiler/MTime; `9p? Lorg/python/compiler/Filename; i/home/trustin/Workspaces/sphinx-maven-plugin/target/update-sphinx/dist/docutils/transforms/frontmatter.py org/python/core/ThreadState? J [Ljava/lang/String;? Code LineNumberTable StackMap
SourceFile RuntimeVisibleAnnotations ! ? ? ? @ ? S ? ? ? ? ? ? ? ? ?
? ? ? + ? O ? ` ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?+? ? +? ? W+? ? N+-? N+? +? %N+-? N+? '? )N-+S--S-+? 1N-2:++? :-2:+-? :+? 3? )N-5S-7S-+? 1N-2:+5? :-2:+7? :+? ? 9N+7? =-__S?-? ? ?:+?? :-? ?+ ?? ? 9N+?? =-__S?-?? ?:+?? :-? ?+ ?? ? 9N+?? =-__S-?(? ?:+? :-? ?+ ? ? 9N+7? =-__S*-?? ?:+*? :-? ?+? ?? ?? ? &