From 7642cf2a1a0fd0c69831bdbe708dc0b05210c8ae Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Date: Mon, 13 Jun 2022 20:53:53 +0100 Subject: [PATCH 01/10] Add copy of Docutils docs --- .../bm_docutils/data/docs/api/notes.txt | 42 + .../bm_docutils/data/docs/api/publisher.txt | 354 ++ .../data/docs/api/runtime-settings.txt | 220 + .../bm_docutils/data/docs/api/transforms.txt | 209 + .../data/docs/dev/distributing.txt | 151 + .../data/docs/dev/enthought-plan.txt | 480 ++ .../data/docs/dev/enthought-rfp.txt | 146 + .../bm_docutils/data/docs/dev/hacking.txt | 266 + .../bm_docutils/data/docs/dev/policies.txt | 688 +++ .../bm_docutils/data/docs/dev/pysource.dtd | 260 + .../bm_docutils/data/docs/dev/pysource.txt | 133 + .../bm_docutils/data/docs/dev/release.txt | 129 + .../bm_docutils/data/docs/dev/repository.txt | 315 + .../data/docs/dev/rst/alternatives.txt | 3213 ++++++++++ .../data/docs/dev/rst/problems.txt | 873 +++ .../docs/dev/runtime-settings-processing.txt | 308 + .../bm_docutils/data/docs/dev/semantics.txt | 121 + .../bm_docutils/data/docs/dev/testing.txt | 303 + .../bm_docutils/data/docs/dev/todo.txt | 2871 +++++++++ .../bm_docutils/data/docs/dev/website.txt | 109 + .../bm_docutils/data/docs/header.txt | 14 + .../bm_docutils/data/docs/header2.txt | 15 + .../data/docs/howto/cmdline-tool.txt | 68 + .../data/docs/howto/html-stylesheets.txt | 96 + .../bm_docutils/data/docs/howto/i18n.txt | 180 + .../data/docs/howto/rst-directives.txt | 432 ++ .../bm_docutils/data/docs/howto/rst-roles.txt | 237 + .../bm_docutils/data/docs/howto/security.txt | 208 + .../bm_docutils/data/docs/index.txt | 239 + .../bm_docutils/data/docs/peps/pep-0256.txt | 303 + .../bm_docutils/data/docs/peps/pep-0257.txt | 328 + .../bm_docutils/data/docs/peps/pep-0258.txt | 1034 ++++ .../bm_docutils/data/docs/peps/pep-0287.txt | 815 +++ .../bm_docutils/data/docs/ref/doctree.txt | 5420 +++++++++++++++++ .../bm_docutils/data/docs/ref/docutils.dtd | 682 +++ .../data/docs/ref/rst/definitions.txt | 182 + .../data/docs/ref/rst/directives.txt | 2077 +++++++ .../data/docs/ref/rst/history.html | 935 +++ .../data/docs/ref/rst/introduction.txt | 313 + .../data/docs/ref/rst/mathematics.txt | 1100 ++++ .../data/docs/ref/rst/restructuredtext.txt | 3269 ++++++++++ .../bm_docutils/data/docs/ref/rst/roles.txt | 393 ++ .../bm_docutils/data/docs/ref/soextblx.dtd | 312 + .../data/docs/user/Makefile.docutils-update | 9 + .../bm_docutils/data/docs/user/config.txt | 2338 +++++++ .../bm_docutils/data/docs/user/emacs.txt | 962 +++ .../bm_docutils/data/docs/user/html.txt | 240 + .../data/docs/user/images/big-black.png | Bin 0 -> 19823 bytes .../data/docs/user/images/big-white.png | Bin 0 -> 25697 bytes .../data/docs/user/images/default.png | Bin 0 -> 59358 bytes .../data/docs/user/images/happy_monkey.png | Bin 0 -> 5202 bytes .../data/docs/user/images/medium-black.png | Bin 0 -> 24021 bytes .../data/docs/user/images/medium-white.png | Bin 0 -> 33756 bytes .../data/docs/user/images/rsp-all.png | Bin 0 -> 32565 bytes .../data/docs/user/images/rsp-breaks.png | Bin 0 -> 17754 bytes .../data/docs/user/images/rsp-covers.png | Bin 0 -> 19080 bytes .../data/docs/user/images/rsp-cuts.png | Bin 0 -> 20751 bytes .../data/docs/user/images/rsp-empty.png | Bin 0 -> 4900 bytes .../data/docs/user/images/rsp-objects.png | Bin 0 -> 21291 bytes .../bm_docutils/data/docs/user/images/rsp.svg | 636 ++ .../data/docs/user/images/s5-files.png | Bin 0 -> 25404 bytes .../data/docs/user/images/s5-files.svg | 639 ++ .../data/docs/user/images/small-black.png | Bin 0 -> 41144 bytes .../data/docs/user/images/small-white.png | Bin 0 -> 41120 bytes .../bm_docutils/data/docs/user/latex.txt | 2172 +++++++ .../bm_docutils/data/docs/user/links.txt | 456 ++ .../data/docs/user/mailing-lists.txt | 152 + .../bm_docutils/data/docs/user/manpage.txt | 170 + .../bm_docutils/data/docs/user/odt.txt | 1202 ++++ .../data/docs/user/rst/cheatsheet.txt | 132 + .../bm_docutils/data/docs/user/rst/demo.txt | 567 ++ .../rst/images/biohazard-bitmap-scaling.svg | 51 + .../docs/user/rst/images/biohazard-bitmap.svg | 50 + .../user/rst/images/biohazard-scaling.svg | 5 + .../data/docs/user/rst/images/biohazard.png | Bin 0 -> 179 bytes .../data/docs/user/rst/images/biohazard.svg | 5 + .../data/docs/user/rst/images/biohazard.swf | Bin 0 -> 1307 bytes .../data/docs/user/rst/images/pens.mp4 | Bin 0 -> 139138 bytes .../docs/user/rst/images/title-scaling.svg | 11 + .../data/docs/user/rst/images/title.png | Bin 0 -> 1155 bytes .../data/docs/user/rst/images/title.svg | 11 + .../data/docs/user/rst/quickref.html | 1359 +++++ .../data/docs/user/rst/quickstart.txt | 406 ++ .../data/docs/user/slide-shows.txt | 1000 +++ .../data/docs/user/smartquotes.txt | 485 ++ .../bm_docutils/data/docs/user/tools.txt | 571 ++ 86 files changed, 43472 insertions(+) create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/api/notes.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/api/publisher.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/api/runtime-settings.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/api/transforms.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/dev/distributing.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/dev/enthought-plan.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/dev/enthought-rfp.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/dev/hacking.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/dev/policies.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/dev/pysource.dtd create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/dev/pysource.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/dev/release.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/dev/repository.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/dev/rst/alternatives.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/dev/rst/problems.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/dev/runtime-settings-processing.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/dev/semantics.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/dev/testing.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/dev/todo.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/dev/website.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/header.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/header2.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/howto/cmdline-tool.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/howto/html-stylesheets.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/howto/i18n.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/howto/rst-directives.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/howto/rst-roles.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/howto/security.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/index.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/peps/pep-0256.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/peps/pep-0257.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/peps/pep-0258.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/peps/pep-0287.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/ref/doctree.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/ref/docutils.dtd create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/ref/rst/definitions.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/ref/rst/directives.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/ref/rst/history.html create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/ref/rst/introduction.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/ref/rst/mathematics.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/ref/rst/restructuredtext.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/ref/rst/roles.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/ref/soextblx.dtd create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/Makefile.docutils-update create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/config.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/emacs.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/html.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/images/big-black.png create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/images/big-white.png create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/images/default.png create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/images/happy_monkey.png create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/images/medium-black.png create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/images/medium-white.png create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/images/rsp-all.png create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/images/rsp-breaks.png create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/images/rsp-covers.png create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/images/rsp-cuts.png create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/images/rsp-empty.png create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/images/rsp-objects.png create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/images/rsp.svg create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/images/s5-files.png create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/images/s5-files.svg create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/images/small-black.png create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/images/small-white.png create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/latex.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/links.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/mailing-lists.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/manpage.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/odt.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/rst/cheatsheet.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/rst/demo.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/rst/images/biohazard-bitmap-scaling.svg create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/rst/images/biohazard-bitmap.svg create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/rst/images/biohazard-scaling.svg create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/rst/images/biohazard.png create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/rst/images/biohazard.svg create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/rst/images/biohazard.swf create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/rst/images/pens.mp4 create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/rst/images/title-scaling.svg create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/rst/images/title.png create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/rst/images/title.svg create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/rst/quickref.html create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/rst/quickstart.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/slide-shows.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/smartquotes.txt create mode 100644 pyperformance/data-files/benchmarks/bm_docutils/data/docs/user/tools.txt diff --git a/pyperformance/data-files/benchmarks/bm_docutils/data/docs/api/notes.txt b/pyperformance/data-files/benchmarks/bm_docutils/data/docs/api/notes.txt new file mode 100644 index 00000000..84a263c9 --- /dev/null +++ b/pyperformance/data-files/benchmarks/bm_docutils/data/docs/api/notes.txt @@ -0,0 +1,42 @@ +https://sourceforge.net/p/docutils/feature-requests/89/ + +At the very least I would suggest, docutils.nodes, the reader/writer/parser aliases, docutils.core, and the front end tools. + +-------------------- + +https://sourceforge.net/p/docutils/feature-requests/89/#f2e1 + + any script.py + any css/dom-construct + any tex-macro + +might be API + +-------------------- + +https://sourceforge.net/p/docutils/feature-requests/89/#a0ff + + +> At the very least I would suggest, docutils.nodes, the +> reader/writer/parser aliases, docutils.core, and the front end tools. + +The abstract base classes for reader, writer, parser, and transforms come to mind. +Also docutils.__init__ and the "plug-in API" for the components. + +The modules and classes intended as part of the public API come with +comprehensive docstrings which are a good guide to differentiate core objects from +auxiliary, internal objects and ambiguous (non-core) cases +(that may be useful for clients or may be used by existing applications). + +For the Docutils project version number, the document model (docutils.dtd, doctree.txt) +and the rST specification are equally important (unless they get their own version identifier). + +Yes, the final document should be a collaborative effort and we may +improve/clean the code base in the process. +OTOH, Sphinx is so closely intertwined to Docutils that it, IMO, +deserves a special handling ensuring synchronised changes. +This may be extended to other projects that use non-core objects +and are ready to follow the development, test, and report back. + + +---------------- diff --git a/pyperformance/data-files/benchmarks/bm_docutils/data/docs/api/publisher.txt b/pyperformance/data-files/benchmarks/bm_docutils/data/docs/api/publisher.txt new file mode 100644 index 00000000..86f2affe --- /dev/null +++ b/pyperformance/data-files/benchmarks/bm_docutils/data/docs/api/publisher.txt @@ -0,0 +1,354 @@ +.. include:: ../header.txt + +======================== + The Docutils Publisher +======================== + +:Author: David Goodger +:Contact: docutils-develop@lists.sourceforge.net +:Date: $Date$ +:Revision: $Revision$ +:Copyright: This document has been placed in the public domain. + +.. contents:: + + +The ``docutils.core.Publisher`` class is the core of Docutils, +managing all the processing and relationships between components. See +`PEP 258`_ for an overview of Docutils components. + +The ``docutils.core.publish_*`` convenience functions are the normal +entry points for using Docutils as a library. + +See `Inside A Docutils Command-Line Front-End Tool`_ for an overview +of a typical Docutils front-end tool, including how the Publisher +class is used. + +.. _PEP 258: ../peps/pep-0258.html +.. _Inside A Docutils Command-Line Front-End Tool: ../howto/cmdline-tool.html + + +Publisher Convenience Functions +=============================== + +Each of these functions set up a ``docutils.core.Publisher`` object, +then call its ``publish`` method. ``docutils.core.Publisher.publish`` +handles everything else. There are several convenience functions in +the ``docutils.core`` module: + +:_`publish_cmdline()`: for command-line front-end tools, like + ``rst2html.py``. There are several examples in the ``tools/`` + directory. A detailed analysis of one such tool is in `Inside A + Docutils Command-Line Front-End Tool`_ + +:_`publish_file()`: for programmatic use with file-like I/O. In + addition to writing the encoded output to a file, also returns the + encoded output as a string. + +:_`publish_string()`: for programmatic use with string I/O. Returns + the encoded output as a string. + +:_`publish_parts()`: for programmatic use with string input; returns a + dictionary of document parts. Dictionary keys are the names of + parts, and values are Unicode strings; encoding is up to the client. + Useful when only portions of the processed document are desired. + See `publish_parts() Details`_ below. + + There are usage examples in the `docutils/examples.py`_ module. + +:_`publish_doctree()`: for programmatic use with string input; returns a + Docutils document tree data structure (doctree). The doctree can be + modified, pickled & unpickled, etc., and then reprocessed with + `publish_from_doctree()`_. + +:_`publish_from_doctree()`: for programmatic use to render from an + existing document tree data structure (doctree); returns the encoded + output as a string. + +:_`publish_programmatically()`: for custom programmatic use. This + function implements common code and is used by ``publish_file``, + ``publish_string``, and ``publish_parts``. It returns a 2-tuple: + the encoded string output and the Publisher object. + +.. _Inside A Docutils Command-Line Front-End Tool: ../howto/cmdline-tool.html +.. _docutils/examples.py: ../../docutils/examples.py + + +Configuration +------------- + +To pass application-specific setting defaults to the Publisher +convenience functions, use the ``settings_overrides`` parameter. Pass +a dictionary of setting names & values, like this:: + + overrides = {'input_encoding': 'ascii', + 'output_encoding': 'latin-1'} + output = publish_string(..., settings_overrides=overrides) + +Settings from command-line options override configuration file +settings, and they override application defaults. For details, see +`Docutils Runtime Settings`_. See `Docutils Configuration`_ for +details about individual settings. + +.. _Docutils Runtime Settings: ./runtime-settings.html +.. _Docutils Configuration: ../user/config.html + + +Encodings +--------- + +The default output encoding of Docutils is UTF-8. +Docutils may introduce some non-ASCII text if you use +`auto-symbol footnotes`_ or the `"contents" directive`_. + +.. _auto-symbol footnotes: + ../ref/rst/restructuredtext.html#auto-symbol-footnotes +.. _"contents" directive: + ../ref/rst/directives.html#table-of-contents + + +``publish_parts()`` Details +=========================== + +The ``docutils.core.publish_parts()`` convenience function returns a +dictionary of document parts. Dictionary keys are the names of parts, +and values are Unicode strings. + +Each Writer component may publish a different set of document parts, +described below. Not all writers implement all parts. + + +Parts Provided By All Writers +----------------------------- + +_`encoding` + The output encoding setting. + +_`version` + The version of Docutils used. + +_`whole` + ``parts['whole']`` contains the entire formatted document. + + +Parts Provided By the HTML Writers +---------------------------------- + +HTML4 Writer +```````````` + +_`body` + ``parts['body']`` is equivalent to parts['fragment_']. It is + *not* equivalent to parts['html_body_']. + +_`body_prefix` + ``parts['body_prefix']`` contains:: + + +
+