├── test ├── data │ ├── stylesheet.txt │ ├── raw.txt │ ├── csv_data.txt │ ├── include.txt │ ├── ham.tex │ ├── csv_dep.txt │ ├── ham.css │ ├── config_error_handler.txt │ ├── latin1.txt │ ├── config_list_2.txt │ ├── config_2.txt │ ├── config_old.txt │ ├── config_list.txt │ ├── config_1.txt │ ├── dependencies.txt │ └── full-template.txt ├── functional │ ├── input │ │ ├── simple.txt │ │ ├── data │ │ │ ├── header_footer.txt │ │ │ ├── errors.txt │ │ │ ├── table_colspan.txt │ │ │ ├── nonalphanumeric.txt │ │ │ ├── option_lists.txt │ │ │ ├── section_titles.txt │ │ │ ├── table_rowspan.txt │ │ │ ├── swf_images.txt │ │ │ ├── list_table.txt │ │ │ ├── hyperlinking.txt │ │ │ ├── table_complex.txt │ │ │ ├── custom_roles.txt │ │ │ ├── latex_encoding.txt │ │ │ ├── unicode.txt │ │ │ ├── custom_roles_latex.txt │ │ │ └── urls.txt │ │ ├── odt_no_class.txt │ │ ├── odt_unnested_class.txt │ │ ├── odt_basic.txt │ │ ├── odt_nested_class.txt │ │ ├── field_list.txt │ │ ├── odt_custom_headfoot.txt │ │ ├── standalone_rst_docutils_xml.txt │ │ ├── standalone_rst_pseudoxml.txt │ │ ├── latex_docinfo.txt │ │ ├── dangerous.txt │ │ ├── footnotes.txt │ │ ├── link_in_substitution.txt │ │ ├── pep_html.txt │ │ ├── cyrillic.txt │ │ ├── standalone_rst_html4css1.txt │ │ ├── compact_lists.txt │ │ ├── standalone_rst_latex.txt │ │ ├── latex_babel.txt │ │ └── standalone_rst_xetex.txt │ ├── expected │ │ ├── odt_basic.odt │ │ ├── odt_tables1.odt │ │ ├── odt_no_class.odt │ │ ├── odt_nested_class.odt │ │ ├── ui │ │ │ ├── default │ │ │ │ ├── blank.gif │ │ │ │ ├── opera.css │ │ │ │ ├── slides.css │ │ │ │ ├── s5-core.css │ │ │ │ ├── outline.css │ │ │ │ ├── print.css │ │ │ │ ├── framing.css │ │ │ │ └── iepngfix.htc │ │ │ └── small-black │ │ │ │ ├── blank.gif │ │ │ │ ├── opera.css │ │ │ │ ├── slides.css │ │ │ │ ├── s5-core.css │ │ │ │ ├── outline.css │ │ │ │ ├── print.css │ │ │ │ ├── framing.css │ │ │ │ └── iepngfix.htc │ │ ├── odt_unnested_class.odt │ │ ├── odt_custom_headfoot.odt │ │ ├── latex_docinfo.tex │ │ ├── misc_rst_html4css1.html │ │ ├── field_name_limit.html │ │ ├── compact_lists.html │ │ └── cyrillic.tex │ ├── output │ │ └── README.txt │ ├── README.txt │ └── tests │ │ ├── _standalone_rst_defaults.py │ │ ├── _default.py │ │ ├── latex_babel.py │ │ ├── standalone_rst_manpage.py │ │ ├── latex_cornercases.py │ │ ├── standalone_rst_s5_html_2.py │ │ ├── latex_docinfo.py │ │ ├── standalone_rst_latex.py │ │ ├── standalone_rst_xetex.py │ │ ├── compact_lists.py │ │ ├── latex_literal_block.py │ │ ├── standalone_rst_pseudoxml.py │ │ ├── latex_literal_block_fancyvrb.py │ │ ├── latex_literal_block_verbatim.py │ │ ├── latex_literal_block_verbatimtab.py │ │ ├── math_output_latex.py │ │ ├── misc_rst_html4css1.py │ │ ├── dangerous.py │ │ ├── math_output_html.py │ │ ├── math_output_mathjax.py │ │ ├── standalone_rst_html4css1.py │ │ ├── field_name_limit.py │ │ ├── math_output_mathml.py │ │ ├── standalone_rst_docutils_xml.py │ │ ├── footnotes_html5.py │ │ ├── standalone_rst_html5.py │ │ ├── latex_cyrillic.py │ │ ├── xetex_cyrillic.py │ │ ├── pep_html.py │ │ └── latex_literal_block_listings.py ├── test_parsers │ ├── test_rst │ │ ├── test_directives │ │ │ ├── empty.txt │ │ │ ├── include 11.txt │ │ │ ├── raw1.txt │ │ │ ├── includes │ │ │ │ ├── sibling │ │ │ │ │ └── include7.txt │ │ │ │ ├── include5.txt │ │ │ │ ├── more │ │ │ │ │ └── include6.txt │ │ │ │ ├── include14.txt │ │ │ │ └── include4.txt │ │ │ ├── include3.txt │ │ │ ├── include8.txt │ │ │ ├── include1.txt │ │ │ ├── utf-16.csv │ │ │ ├── include2.txt │ │ │ ├── include_literal.txt │ │ │ ├── include12.txt │ │ │ ├── include13.txt │ │ │ ├── __init__.py │ │ │ ├── test_title.py │ │ │ ├── include10.txt │ │ │ ├── test_class.py │ │ │ ├── test_sectnum.py │ │ │ ├── test_block_quotes.py │ │ │ ├── test_math.py │ │ │ ├── test_date.py │ │ │ ├── test_parsed_literals.py │ │ │ ├── test_code_none.py │ │ │ └── test_target_notes.py │ │ ├── includes │ │ │ └── include9.txt │ │ ├── __init__.py │ │ ├── test_interpreted_fr.py │ │ ├── test_doctest_blocks.py │ │ └── test_paragraphs.py │ ├── __init__.py │ ├── test_get_parser_class.py │ └── test_parser.py ├── test_readers │ ├── __init__.py │ ├── test_pep │ │ └── __init__.py │ └── test_get_reader_class.py ├── test_writers │ ├── __init__.py │ ├── test_null.py │ ├── test_get_writer_class.py │ └── test_pseudoxml.py ├── test_transforms │ ├── __init__.py │ ├── test_filter.py │ ├── test_strip_comments.py │ ├── test_expose_internals.py │ ├── test___init__.py │ ├── test_strip_elements_with_class.py │ └── test_peps.py ├── docutils.conf ├── local-reader.py ├── local-parser.py ├── test_pickle.py ├── local-writer.py ├── coverage.sh └── test_command_line.py ├── tools ├── dev │ ├── README.txt │ └── profile_docutils.py ├── editors │ ├── emacs │ │ ├── docutils.conf │ │ ├── IDEAS.rst │ │ ├── tests │ │ │ ├── README.txt │ │ │ ├── Makefile │ │ │ └── init.el │ │ └── README.txt │ └── README.txt ├── docutils.conf ├── rst2html.py ├── rst2xml.py ├── rst2pseudoxml.py ├── rst2man.py ├── rst2s5.py ├── rstpep2html.py ├── rst2html4.py ├── rst2odt.py ├── rst2latex.py ├── rst2xetex.py ├── rst2html5.py └── rst2odt_prepstyles.py ├── README.md ├── docutils ├── writers │ ├── s5_html │ │ └── themes │ │ │ ├── big-black │ │ │ ├── __base__ │ │ │ └── framing.css │ │ │ ├── medium-black │ │ │ └── __base__ │ │ │ ├── small-black │ │ │ └── __base__ │ │ │ ├── default │ │ │ ├── blank.gif │ │ │ ├── opera.css │ │ │ ├── slides.css │ │ │ ├── s5-core.css │ │ │ ├── outline.css │ │ │ ├── print.css │ │ │ ├── framing.css │ │ │ └── iepngfix.htc │ │ │ ├── README.txt │ │ │ ├── big-white │ │ │ └── framing.css │ │ │ ├── small-white │ │ │ └── framing.css │ │ │ └── medium-white │ │ │ └── framing.css │ ├── odf_odt │ │ └── styles.odt │ ├── html4css1 │ │ └── template.txt │ ├── html5_polyglot │ │ └── template.txt │ ├── latex2e │ │ ├── default.tex │ │ ├── titlepage.tex │ │ └── xelatex.tex │ ├── null.py │ ├── pseudoxml.py │ └── pep_html │ │ └── template.txt ├── docutils.conf ├── parsers │ ├── rst │ │ ├── include │ │ │ ├── isogrk4.txt │ │ │ ├── isomfrk.txt │ │ │ ├── isomopf.txt │ │ │ ├── README.txt │ │ │ ├── isomscr.txt │ │ │ ├── isodia.txt │ │ │ ├── s5defs.txt │ │ │ ├── isogrk2.txt │ │ │ ├── isoamsc.txt │ │ │ ├── isocyr2.txt │ │ │ └── isomopf-wide.txt │ │ ├── directives │ │ │ └── references.py │ │ └── languages │ │ │ └── __init__.py │ ├── null.py │ └── __init__.py ├── _compat.py ├── languages │ ├── __init__.py │ ├── de.py │ ├── ko.py │ ├── ja.py │ ├── it.py │ └── af.py ├── readers │ ├── pep.py │ └── doctree.py └── utils │ └── math │ └── __init__.py ├── docs └── user │ ├── images │ ├── big-black.png │ ├── big-white.png │ ├── default.png │ ├── rsp-all.png │ ├── rsp-cuts.png │ ├── rsp-empty.png │ ├── s5-files.png │ ├── rsp-breaks.png │ ├── rsp-covers.png │ ├── rsp-objects.png │ ├── small-black.png │ ├── small-white.png │ ├── happy_monkey.png │ ├── medium-black.png │ └── medium-white.png │ ├── rst │ └── images │ │ ├── title.png │ │ ├── biohazard.png │ │ ├── biohazard.swf │ │ ├── biohazard-bitmap.svg │ │ └── biohazard-bitmap-scaling.svg │ └── Makefile.docutils-update ├── licenses ├── docutils.conf └── BSD-2-Clause.txt ├── MANIFEST.in ├── setup.cfg └── install.py /test/data/stylesheet.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/raw.txt: -------------------------------------------------------------------------------- 1 | Raw text. 2 | -------------------------------------------------------------------------------- /test/data/csv_data.txt: -------------------------------------------------------------------------------- 1 | foo, bar 2 | -------------------------------------------------------------------------------- /test/data/include.txt: -------------------------------------------------------------------------------- 1 | Some include text. 2 | -------------------------------------------------------------------------------- /tools/dev/README.txt: -------------------------------------------------------------------------------- 1 | Tools for developers. 2 | -------------------------------------------------------------------------------- /test/functional/input/simple.txt: -------------------------------------------------------------------------------- 1 | simple input 2 | -------------------------------------------------------------------------------- /test/test_parsers/test_rst/test_directives/empty.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/ham.tex: -------------------------------------------------------------------------------- 1 | \newcommand{\ham}{wonderful ham} 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # docutils-mirror 2 | A mirror for docutils code 3 | -------------------------------------------------------------------------------- /test/data/csv_dep.txt: -------------------------------------------------------------------------------- 1 | .. csv-table:: 2 | :file: csv_data.txt 3 | -------------------------------------------------------------------------------- /test/data/ham.css: -------------------------------------------------------------------------------- 1 | dl.docutils dd { 2 | margin-bottom: 0.5em } 3 | -------------------------------------------------------------------------------- /test/test_parsers/test_rst/test_directives/include 11.txt: -------------------------------------------------------------------------------- 1 | some text 2 | -------------------------------------------------------------------------------- /tools/editors/emacs/docutils.conf: -------------------------------------------------------------------------------- 1 | [general] 2 | input_encoding: latin-1 3 | -------------------------------------------------------------------------------- /test/data/config_error_handler.txt: -------------------------------------------------------------------------------- 1 | [general] 2 | error_encoding: ascii:strict 3 | -------------------------------------------------------------------------------- /docutils/writers/s5_html/themes/big-black/__base__: -------------------------------------------------------------------------------- 1 | # base theme of this theme: 2 | big-white 3 | -------------------------------------------------------------------------------- /docutils/writers/s5_html/themes/medium-black/__base__: -------------------------------------------------------------------------------- 1 | # base theme of this theme: 2 | medium-white 3 | -------------------------------------------------------------------------------- /docutils/writers/s5_html/themes/small-black/__base__: -------------------------------------------------------------------------------- 1 | # base theme of this theme: 2 | small-white 3 | -------------------------------------------------------------------------------- /test/data/latin1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/test/data/latin1.txt -------------------------------------------------------------------------------- /test/functional/input/data/header_footer.txt: -------------------------------------------------------------------------------- 1 | .. header:: Document header 2 | .. footer:: Document footer 3 | -------------------------------------------------------------------------------- /test/functional/input/odt_no_class.txt: -------------------------------------------------------------------------------- 1 | .. role:: action 2 | 3 | Hello... `(beat)`:action: ...there! 4 | -------------------------------------------------------------------------------- /test/test_parsers/test_rst/test_directives/raw1.txt: -------------------------------------------------------------------------------- 1 |
This file is used by test_raw.py.
2 | -------------------------------------------------------------------------------- /test/test_parsers/test_rst/test_directives/includes/sibling/include7.txt: -------------------------------------------------------------------------------- 1 | In includes/sibling/include7.txt 2 | -------------------------------------------------------------------------------- /docs/user/images/big-black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/docs/user/images/big-black.png -------------------------------------------------------------------------------- /docs/user/images/big-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/docs/user/images/big-white.png -------------------------------------------------------------------------------- /docs/user/images/default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/docs/user/images/default.png -------------------------------------------------------------------------------- /docs/user/images/rsp-all.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/docs/user/images/rsp-all.png -------------------------------------------------------------------------------- /docs/user/images/rsp-cuts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/docs/user/images/rsp-cuts.png -------------------------------------------------------------------------------- /docs/user/images/rsp-empty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/docs/user/images/rsp-empty.png -------------------------------------------------------------------------------- /docs/user/images/s5-files.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/docs/user/images/s5-files.png -------------------------------------------------------------------------------- /docs/user/rst/images/title.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/docs/user/rst/images/title.png -------------------------------------------------------------------------------- /test/test_parsers/test_rst/test_directives/include3.txt: -------------------------------------------------------------------------------- 1 | In include3.txt 2 | 3 | .. include:: includes/include4.txt 4 | -------------------------------------------------------------------------------- /test/test_parsers/test_rst/test_directives/include8.txt: -------------------------------------------------------------------------------- 1 | In include8.txt 2 | 3 | .. include:: ../includes/include9.txt 4 | -------------------------------------------------------------------------------- /tools/editors/emacs/IDEAS.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/tools/editors/emacs/IDEAS.rst -------------------------------------------------------------------------------- /docs/user/images/rsp-breaks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/docs/user/images/rsp-breaks.png -------------------------------------------------------------------------------- /docs/user/images/rsp-covers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/docs/user/images/rsp-covers.png -------------------------------------------------------------------------------- /docs/user/images/rsp-objects.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/docs/user/images/rsp-objects.png -------------------------------------------------------------------------------- /docs/user/images/small-black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/docs/user/images/small-black.png -------------------------------------------------------------------------------- /docs/user/images/small-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/docs/user/images/small-white.png -------------------------------------------------------------------------------- /docs/user/images/happy_monkey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/docs/user/images/happy_monkey.png -------------------------------------------------------------------------------- /docs/user/images/medium-black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/docs/user/images/medium-black.png -------------------------------------------------------------------------------- /docs/user/images/medium-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/docs/user/images/medium-white.png -------------------------------------------------------------------------------- /docs/user/rst/images/biohazard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/docs/user/rst/images/biohazard.png -------------------------------------------------------------------------------- /docs/user/rst/images/biohazard.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/docs/user/rst/images/biohazard.swf -------------------------------------------------------------------------------- /docutils/writers/odf_odt/styles.odt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/docutils/writers/odf_odt/styles.odt -------------------------------------------------------------------------------- /test/functional/input/odt_unnested_class.txt: -------------------------------------------------------------------------------- 1 | .. role:: action 2 | :class: action 3 | 4 | Hello... `(beat)`:action: ...there! 5 | -------------------------------------------------------------------------------- /test/test_parsers/test_rst/test_directives/includes/include5.txt: -------------------------------------------------------------------------------- 1 | In includes/include5.txt 2 | 3 | .. include:: more/include6.txt 4 | -------------------------------------------------------------------------------- /test/data/config_list_2.txt: -------------------------------------------------------------------------------- 1 | [general] 2 | expose_internals: f 3 | strip-classes: ham, eggs 4 | strip-elements-with-classes: eggs,salt 5 | -------------------------------------------------------------------------------- /test/test_parsers/test_rst/includes/include9.txt: -------------------------------------------------------------------------------- 1 | In ../includes/include9.txt. 2 | 3 | .. include:: ../test_directives/include2.txt 4 | -------------------------------------------------------------------------------- /test/test_parsers/test_rst/test_directives/include1.txt: -------------------------------------------------------------------------------- 1 | Inclusion 1 2 | ----------- 3 | 4 | This file is used by ``test_include.py``. 5 | -------------------------------------------------------------------------------- /test/functional/expected/odt_basic.odt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/test/functional/expected/odt_basic.odt -------------------------------------------------------------------------------- /test/functional/expected/odt_tables1.odt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/test/functional/expected/odt_tables1.odt -------------------------------------------------------------------------------- /test/functional/input/odt_basic.txt: -------------------------------------------------------------------------------- 1 | ===== 2 | Test 3 | ===== 4 | 5 | Basic # 1 6 | ========== 7 | 8 | A *simple* test. 9 | 10 | -------------------------------------------------------------------------------- /test/functional/expected/odt_no_class.odt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/test/functional/expected/odt_no_class.odt -------------------------------------------------------------------------------- /test/functional/expected/odt_nested_class.odt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/test/functional/expected/odt_nested_class.odt -------------------------------------------------------------------------------- /test/functional/expected/ui/default/blank.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/test/functional/expected/ui/default/blank.gif -------------------------------------------------------------------------------- /test/test_parsers/test_rst/test_directives/includes/more/include6.txt: -------------------------------------------------------------------------------- 1 | In includes/more/include6.txt 2 | 3 | .. include:: ../sibling/include7.txt 4 | -------------------------------------------------------------------------------- /test/functional/expected/odt_unnested_class.odt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/test/functional/expected/odt_unnested_class.odt -------------------------------------------------------------------------------- /test/functional/input/odt_nested_class.txt: -------------------------------------------------------------------------------- 1 | .. role:: action 2 | :class: action parenthetical direction 3 | 4 | Hello... `(beat)`:action: ...there! 5 | -------------------------------------------------------------------------------- /docutils/writers/s5_html/themes/default/blank.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/docutils/writers/s5_html/themes/default/blank.gif -------------------------------------------------------------------------------- /test/functional/expected/odt_custom_headfoot.odt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/test/functional/expected/odt_custom_headfoot.odt -------------------------------------------------------------------------------- /test/functional/expected/ui/small-black/blank.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/test/functional/expected/ui/small-black/blank.gif -------------------------------------------------------------------------------- /test/test_parsers/test_rst/test_directives/utf-16.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuantEcon/docutils-mirror/master/test/test_parsers/test_rst/test_directives/utf-16.csv -------------------------------------------------------------------------------- /test/functional/output/README.txt: -------------------------------------------------------------------------------- 1 | This is the directory where the actual output is stored. 2 | 3 | This README.txt is just a placeholder to make CVS create the directory. 4 | -------------------------------------------------------------------------------- /docutils/writers/html4css1/template.txt: -------------------------------------------------------------------------------- 1 | %(head_prefix)s 2 | %(head)s 3 | %(stylesheet)s 4 | %(body_prefix)s 5 | %(body_pre_docinfo)s 6 | %(docinfo)s 7 | %(body)s 8 | %(body_suffix)s 9 | -------------------------------------------------------------------------------- /test/test_parsers/test_rst/test_directives/include2.txt: -------------------------------------------------------------------------------- 1 | Here are some paragraphs 2 | that can appear at any level. 3 | 4 | This file (include2.txt) is used by 5 | ``test_include.py``. 6 | -------------------------------------------------------------------------------- /test/test_parsers/test_rst/test_directives/include_literal.txt: -------------------------------------------------------------------------------- 1 | Literal included this should **not** be *marked* `up`. 2 | <- leading raw tab. 3 | 4 | Newlines 5 | are 6 | normalized. 7 | -------------------------------------------------------------------------------- /docutils/docutils.conf: -------------------------------------------------------------------------------- 1 | # This configuration file is to prevent tools/buildhtml.py from 2 | # processing text files in and below this directory. 3 | 4 | [buildhtml application] 5 | prune: . 6 | -------------------------------------------------------------------------------- /docutils/writers/html5_polyglot/template.txt: -------------------------------------------------------------------------------- 1 | %(head_prefix)s 2 | %(head)s 3 | %(stylesheet)s 4 | %(body_prefix)s 5 | %(body_pre_docinfo)s 6 | %(docinfo)s 7 | %(body)s 8 | %(body_suffix)s 9 | -------------------------------------------------------------------------------- /licenses/docutils.conf: -------------------------------------------------------------------------------- 1 | # This configuration file is to prevent tools/buildhtml.py from 2 | # processing text files in and below this directory. 3 | 4 | [buildhtml application] 5 | prune: . 6 | -------------------------------------------------------------------------------- /test/test_parsers/test_rst/test_directives/includes/include14.txt: -------------------------------------------------------------------------------- 1 | Including more/include6.txt as rst-code from includes/include14.txt: 2 | 3 | .. include:: more/include6.txt 4 | :code: rst 5 | -------------------------------------------------------------------------------- /test/functional/README.txt: -------------------------------------------------------------------------------- 1 | This directory stores data files for functional tests. 2 | 3 | Please see the documentation on `functional testing`__ for details. 4 | 5 | __ ../../docs/dev/testing.html#functional 6 | -------------------------------------------------------------------------------- /test/data/config_2.txt: -------------------------------------------------------------------------------- 1 | # Test config file (new format) 2 | 3 | [general] 4 | 5 | generator: no 6 | 7 | 8 | [html4css1 writer] 9 | 10 | footnote-references: superscript 11 | stylesheet-path: test.css 12 | -------------------------------------------------------------------------------- /test/functional/input/field_list.txt: -------------------------------------------------------------------------------- 1 | :short: This field's name is short. 2 | :medium-length: This field's name is medium-length. 3 | :long field name: This field's name is long. 4 | :very very long field name: 5 | This field's name is quite long. 6 | -------------------------------------------------------------------------------- /test/functional/input/odt_custom_headfoot.txt: -------------------------------------------------------------------------------- 1 | ============================ 2 | Custom Headers and Footers 3 | ============================ 4 | 5 | Test for custom headers and footers and for page numbers, date, 6 | time, etc. 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /test/test_parsers/test_rst/test_directives/include12.txt: -------------------------------------------------------------------------------- 1 | In include12.txt (but before "start here") 2 | 3 | .. start here 4 | 5 | In include12.txt (after "start here", before "stop here") 6 | 7 | .. stop here 8 | 9 | In include12.txt (after "stop here") 10 | -------------------------------------------------------------------------------- /test/test_parsers/test_rst/test_directives/includes/include4.txt: -------------------------------------------------------------------------------- 1 | In includes/include4.txt 2 | 3 | .. include:: include5.txt 4 | 5 | .. include:: include5.txt 6 | :literal: 7 | 8 | .. csv-table:: 9 | :file: sibling/include7.txt 10 | :delim: space 11 | -------------------------------------------------------------------------------- /test/functional/tests/_standalone_rst_defaults.py: -------------------------------------------------------------------------------- 1 | # Keyword parameters passed to publish_file. 2 | reader_name = "standalone" 3 | parser_name = "rst" 4 | 5 | # Settings. 6 | settings_overrides['sectsubtitle_xform'] = 1 7 | settings_overrides['syntax_highlight'] = 'none' 8 | -------------------------------------------------------------------------------- /test/test_parsers/test_rst/test_directives/include13.txt: -------------------------------------------------------------------------------- 1 | In include13.txt (but before header) 2 | 3 | From: me 4 | To: you 5 | 6 | In include13.txt (between header and signature) 7 | 8 | ------- 9 | -- mork of ork 10 | 11 | In include13.txt (after signature) 12 | -------------------------------------------------------------------------------- /test/functional/tests/_default.py: -------------------------------------------------------------------------------- 1 | # Default settings for all tests. 2 | 3 | settings_overrides['report_level'] = 2 4 | settings_overrides['halt_level'] = 5 5 | settings_overrides['warning_stream'] = '' 6 | settings_overrides['input_encoding'] = 'utf-8' 7 | settings_overrides['embed_stylesheet'] = False 8 | -------------------------------------------------------------------------------- /test/functional/input/standalone_rst_docutils_xml.txt: -------------------------------------------------------------------------------- 1 | .. include:: data/standard.txt 2 | .. include:: data/header_footer.txt 3 | .. include:: data/table_colspan.txt 4 | .. include:: data/table_rowspan.txt 5 | .. include:: data/table_complex.txt 6 | .. include:: data/list_table.txt 7 | .. include:: data/errors.txt 8 | -------------------------------------------------------------------------------- /test/functional/input/standalone_rst_pseudoxml.txt: -------------------------------------------------------------------------------- 1 | .. include:: data/standard.txt 2 | .. include:: data/header_footer.txt 3 | .. include:: data/table_colspan.txt 4 | .. include:: data/table_rowspan.txt 5 | .. include:: data/table_complex.txt 6 | .. include:: data/list_table.txt 7 | .. include:: data/errors.txt 8 | -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- 1 | include *.txt 2 | include *.py 3 | include setup.cfg 4 | include MANIFEST 5 | include MANIFEST.in 6 | recursive-include docutils * 7 | recursive-include docs * 8 | recursive-include licenses * 9 | recursive-include test * 10 | recursive-include tools * 11 | recursive-exclude * *.pyc *~ .DS_Store 12 | -------------------------------------------------------------------------------- /test/functional/tests/latex_babel.py: -------------------------------------------------------------------------------- 1 | # Source and destination file names. 2 | test_source = "latex_babel.txt" 3 | test_destination = "latex_babel.tex" 4 | 5 | # Keyword parameters passed to publish_file. 6 | reader_name = "standalone" 7 | parser_name = "rst" 8 | writer_name = "latex" 9 | 10 | # Extra setting we need 11 | -------------------------------------------------------------------------------- /test/functional/expected/ui/default/opera.css: -------------------------------------------------------------------------------- 1 | /* This file has been placed in the public domain. */ 2 | /* DO NOT CHANGE THESE unless you really want to break Opera Show */ 3 | .slide { 4 | visibility: visible !important; 5 | position: static !important; 6 | page-break-before: always; 7 | } 8 | #slide0 {page-break-before: avoid;} 9 | -------------------------------------------------------------------------------- /test/functional/input/data/errors.txt: -------------------------------------------------------------------------------- 1 | Error Handling 2 | ============== 3 | 4 | Any errors caught during processing will generate system messages. 5 | 6 | There should be five messages in the following, auto-generated 7 | section, "Docutils System Messages": 8 | 9 | .. section should be added by Docutils automatically 10 | -------------------------------------------------------------------------------- /test/functional/input/latex_docinfo.txt: -------------------------------------------------------------------------------- 1 | :Author: Foo Fred 2 | :Organization: Food Foomatics & Friends 3 | :Contact: foo@food.example.info 4 | :Address: Fox St 13 5 | Foowood 6 | :Author: Bar Barney 7 | :Organization: Bar-BQ Bar 8 | :Contact: 1-800-BARBQBAR 9 | :Address: Barbara St 16 10 | South Barwell 11 | -------------------------------------------------------------------------------- /docutils/writers/s5_html/themes/default/opera.css: -------------------------------------------------------------------------------- 1 | /* This file has been placed in the public domain. */ 2 | /* DO NOT CHANGE THESE unless you really want to break Opera Show */ 3 | .slide { 4 | visibility: visible !important; 5 | position: static !important; 6 | page-break-before: always; 7 | } 8 | #slide0 {page-break-before: avoid;} 9 | -------------------------------------------------------------------------------- /test/functional/expected/ui/small-black/opera.css: -------------------------------------------------------------------------------- 1 | /* This file has been placed in the public domain. */ 2 | /* DO NOT CHANGE THESE unless you really want to break Opera Show */ 3 | .slide { 4 | visibility: visible !important; 5 | position: static !important; 6 | page-break-before: always; 7 | } 8 | #slide0 {page-break-before: avoid;} 9 | -------------------------------------------------------------------------------- /test/functional/tests/standalone_rst_manpage.py: -------------------------------------------------------------------------------- 1 | exec(open('functional/tests/_standalone_rst_defaults.py').read()) 2 | 3 | # Source and destination file names. 4 | test_source = "standalone_rst_manpage.txt" 5 | test_destination = "standalone_rst_manpage.man" 6 | 7 | # Keyword parameters passed to publish_file. 8 | writer_name = "manpage" 9 | -------------------------------------------------------------------------------- /test/functional/tests/latex_cornercases.py: -------------------------------------------------------------------------------- 1 | # Source and destination file names. 2 | test_source = "latex_cornercases.txt" 3 | test_destination = "latex_cornercases.tex" 4 | 5 | # Keyword parameters passed to publish_file. 6 | reader_name = "standalone" 7 | parser_name = "rst" 8 | writer_name = "latex" 9 | 10 | # Extra setting we need 11 | -------------------------------------------------------------------------------- /test/data/config_old.txt: -------------------------------------------------------------------------------- 1 | # Test config file (old format) 2 | 3 | [options] 4 | 5 | source-link: 1 6 | datestamp: %Y-%m-%d %H:%M UTC 7 | generator: 1 8 | 9 | stylesheet-path: stylesheets/default.css 10 | 11 | pep-template: pep-html-template 12 | pep-stylesheet-path: stylesheets/pep.css 13 | python-home: http://www.python.org 14 | no-random: 1 15 | -------------------------------------------------------------------------------- /docutils/writers/s5_html/themes/README.txt: -------------------------------------------------------------------------------- 1 | Except where otherwise noted (default/iepngfix.htc), all files in this 2 | directory have been released into the Public Domain. 3 | 4 | These files are based on files from S5 1.1, released into the Public 5 | Domain by Eric Meyer. For further details, please see 6 | http://www.meyerweb.com/eric/tools/s5/credits.html. 7 | -------------------------------------------------------------------------------- /test/functional/expected/ui/default/slides.css: -------------------------------------------------------------------------------- 1 | /* This file has been placed in the public domain. */ 2 | 3 | /* required to make the slide show run at all */ 4 | @import url(s5-core.css); 5 | 6 | /* sets basic placement and size of slide components */ 7 | @import url(framing.css); 8 | 9 | /* styles that make the slides look good */ 10 | @import url(pretty.css); 11 | -------------------------------------------------------------------------------- /docutils/writers/s5_html/themes/default/slides.css: -------------------------------------------------------------------------------- 1 | /* This file has been placed in the public domain. */ 2 | 3 | /* required to make the slide show run at all */ 4 | @import url(s5-core.css); 5 | 6 | /* sets basic placement and size of slide components */ 7 | @import url(framing.css); 8 | 9 | /* styles that make the slides look good */ 10 | @import url(pretty.css); 11 | -------------------------------------------------------------------------------- /test/functional/expected/ui/small-black/slides.css: -------------------------------------------------------------------------------- 1 | /* This file has been placed in the public domain. */ 2 | 3 | /* required to make the slide show run at all */ 4 | @import url(s5-core.css); 5 | 6 | /* sets basic placement and size of slide components */ 7 | @import url(framing.css); 8 | 9 | /* styles that make the slides look good */ 10 | @import url(pretty.css); 11 | -------------------------------------------------------------------------------- /test/functional/tests/standalone_rst_s5_html_2.py: -------------------------------------------------------------------------------- 1 | # initialize with the settings & definitions from test 1: 2 | exec(open('functional/tests/standalone_rst_s5_html_1.py').read()) 3 | 4 | # overrides specific to this test: 5 | test_destination = 'standalone_rst_s5_html_2.html' 6 | del settings_overrides['theme'] # use the default 7 | settings_overrides['current_slide'] = 1 8 | -------------------------------------------------------------------------------- /test/functional/tests/latex_docinfo.py: -------------------------------------------------------------------------------- 1 | # Source and destination file names. 2 | test_source = "latex_docinfo.txt" 3 | test_destination = "latex_docinfo.tex" 4 | 5 | # Keyword parameters passed to publish_file. 6 | reader_name = "standalone" 7 | parser_name = "rst" 8 | writer_name = "latex" 9 | 10 | # Extra setting we need 11 | 12 | settings_overrides['use_latex_docinfo'] = 1 13 | -------------------------------------------------------------------------------- /docs/user/Makefile.docutils-update: -------------------------------------------------------------------------------- 1 | slide-shows.s5.html: slide-shows.txt 2 | rst2s5.py slide-shows.txt slide-shows.s5.html \ 3 | --config ../../tools/docutils.conf \ 4 | --overwrite-theme-files \ 5 | --link-stylesheet \ 6 | --no-generator --no-datestamp --no-source-link 7 | 8 | smartquotes.html: smartquotes.txt 9 | rst2html.py smartquotes.txt smartquotes.html --smart-quotes=true 10 | -------------------------------------------------------------------------------- /test/data/config_list.txt: -------------------------------------------------------------------------------- 1 | [general] 2 | expose_internals: a 3 | strip-classes: spam 4 | strip-elements-with-classes: sugar, flour 5 | 6 | [html4css1 writer] 7 | expose_internals: b:c:d 8 | strip-classes: pan, 9 | fun, 10 | strip-elements-with-classes: milk 11 | 12 | [pep_html writer] 13 | expose_internals: e 14 | strip-classes: parrot 15 | strip-elements-with-classes: safran 16 | -------------------------------------------------------------------------------- /test/functional/input/data/table_colspan.txt: -------------------------------------------------------------------------------- 1 | Colspanning tables 2 | ------------------ 3 | 4 | This table has a cell spanning two columns: 5 | 6 | ===== ===== ====== 7 | Inputs Output 8 | ------------ ------ 9 | A B A or B 10 | ===== ===== ====== 11 | False False False 12 | True False True 13 | False True True 14 | True True True 15 | ===== ===== ====== 16 | -------------------------------------------------------------------------------- /test/test_parsers/__init__.py: -------------------------------------------------------------------------------- 1 | import os 2 | import os.path 3 | import sys 4 | 5 | sys.path.insert(0, os.path.abspath(os.path.dirname(__file__))) 6 | prev = '' 7 | while sys.path[0] != prev: 8 | try: 9 | import DocutilsTestSupport 10 | break 11 | except ImportError: 12 | prev = sys.path[0] 13 | sys.path[0] = os.path.dirname(prev) 14 | sys.path.pop(0) 15 | -------------------------------------------------------------------------------- /test/test_readers/__init__.py: -------------------------------------------------------------------------------- 1 | import os 2 | import os.path 3 | import sys 4 | 5 | sys.path.insert(0, os.path.abspath(os.path.dirname(__file__))) 6 | prev = '' 7 | while sys.path[0] != prev: 8 | try: 9 | import DocutilsTestSupport 10 | break 11 | except ImportError: 12 | prev = sys.path[0] 13 | sys.path[0] = os.path.dirname(prev) 14 | sys.path.pop(0) 15 | -------------------------------------------------------------------------------- /test/test_writers/__init__.py: -------------------------------------------------------------------------------- 1 | import os 2 | import os.path 3 | import sys 4 | 5 | sys.path.insert(0, os.path.abspath(os.path.dirname(__file__))) 6 | prev = '' 7 | while sys.path[0] != prev: 8 | try: 9 | import DocutilsTestSupport 10 | break 11 | except ImportError: 12 | prev = sys.path[0] 13 | sys.path[0] = os.path.dirname(prev) 14 | sys.path.pop(0) 15 | -------------------------------------------------------------------------------- /tools/docutils.conf: -------------------------------------------------------------------------------- 1 | # These entries affect all processing: 2 | [general] 3 | source-link: yes 4 | datestamp: %Y-%m-%d %H:%M UTC 5 | generator: on 6 | 7 | # These entries affect HTML output: 8 | [html4css1 writer] 9 | # Required for docutils-update, the website build system: 10 | stylesheet-path: ../docutils/writers/html4css1/html4css1.css 11 | embed-stylesheet: no 12 | field-name-limit: 20 13 | -------------------------------------------------------------------------------- /test/test_transforms/__init__.py: -------------------------------------------------------------------------------- 1 | import os 2 | import os.path 3 | import sys 4 | 5 | sys.path.insert(0, os.path.abspath(os.path.dirname(__file__))) 6 | prev = '' 7 | while sys.path[0] != prev: 8 | try: 9 | import DocutilsTestSupport 10 | break 11 | except ImportError: 12 | prev = sys.path[0] 13 | sys.path[0] = os.path.dirname(prev) 14 | sys.path.pop(0) 15 | -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- 1 | [bdist_rpm] 2 | doc_files = BUGS.txt 3 | COPYING.txt 4 | FAQ.txt 5 | HISTORY.txt 6 | README.txt 7 | RELEASE-NOTES.txt 8 | THANKS.txt 9 | docs/ 10 | licenses/ 11 | 12 | # [build] 13 | # executable = /usr/bin/env python 14 | # Uncomment to keep unchanged in the "shebang line" of front-end scripts 15 | -------------------------------------------------------------------------------- /test/test_parsers/test_rst/__init__.py: -------------------------------------------------------------------------------- 1 | import os 2 | import os.path 3 | import sys 4 | 5 | sys.path.insert(0, os.path.abspath(os.path.dirname(__file__))) 6 | prev = '' 7 | while sys.path[0] != prev: 8 | try: 9 | import DocutilsTestSupport 10 | break 11 | except ImportError: 12 | prev = sys.path[0] 13 | sys.path[0] = os.path.dirname(prev) 14 | sys.path.pop(0) 15 | -------------------------------------------------------------------------------- /test/test_readers/test_pep/__init__.py: -------------------------------------------------------------------------------- 1 | import os 2 | import os.path 3 | import sys 4 | 5 | sys.path.insert(0, os.path.abspath(os.path.dirname(__file__))) 6 | prev = '' 7 | while sys.path[0] != prev: 8 | try: 9 | import DocutilsTestSupport 10 | break 11 | except ImportError: 12 | prev = sys.path[0] 13 | sys.path[0] = os.path.dirname(prev) 14 | sys.path.pop(0) 15 | -------------------------------------------------------------------------------- /test/test_parsers/test_rst/test_directives/__init__.py: -------------------------------------------------------------------------------- 1 | import os 2 | import os.path 3 | import sys 4 | 5 | sys.path.insert(0, os.path.abspath(os.path.dirname(__file__))) 6 | prev = '' 7 | while sys.path[0] != prev: 8 | try: 9 | import DocutilsTestSupport 10 | break 11 | except ImportError: 12 | prev = sys.path[0] 13 | sys.path[0] = os.path.dirname(prev) 14 | sys.path.pop(0) 15 | -------------------------------------------------------------------------------- /docutils/parsers/rst/include/isogrk4.txt: -------------------------------------------------------------------------------- 1 | .. This data file has been placed in the public domain. 2 | .. Derived from the Unicode character mappings available from 3 |