diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-11-18 13:49:33 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-11-18 13:49:33 +0000 |
| commit | 9ff518dbda9149593c7f711ed3871ffbaf3ac309 (patch) | |
| tree | ab27a3e3a3c1f059f9f7f0c93dcecaeb5a21d068 /docutils/docs/user | |
| parent | cb271c98d069029b3678628b43d2aec5a9414cd0 (diff) | |
| download | docutils-9ff518dbda9149593c7f711ed3871ffbaf3ac309.tar.gz | |
Documentation update
dev/hacking:
Format example code as script rather than as console log
(enables easier use via drag-and-drop).
Hint to the "quicktest" development tool.
Add links.
user/config:
Fix legacy-lass-functions default change warning.
user/toos:
Simplify description of the generic front end.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9255 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/docs/user')
| -rw-r--r-- | docutils/docs/user/config.txt | 4 | ||||
| -rw-r--r-- | docutils/docs/user/tools.txt | 35 |
2 files changed, 19 insertions, 20 deletions
diff --git a/docutils/docs/user/config.txt b/docutils/docs/user/config.txt index 289974647..9b867c838 100644 --- a/docutils/docs/user/config.txt +++ b/docutils/docs/user/config.txt @@ -1667,7 +1667,7 @@ comma-separated list of class values as optional argument. If `False`, class values are handled with wrappers and admonitions use the ``DUadmonition`` environment. See `Generating LaTeX with Docutils`__ for details. -Default: False (changed in Docutils 0.18). +Default: False (since Docutils 0.18). Options: ``--legacy-class-functions``, ``--new-class-functions``. New in Docutils 0.17. @@ -1686,7 +1686,7 @@ table width and keeps the ratio of specified column widths. Custom table and/or column widths can be set with the respective options of the `table directive`_. See also `Generating LaTeX with Docutils`__. -Default: True (will change to False in 0.19). +Default: True (will change to False in Docutils 1.0). Options: ``--legacy-column-widths``, ``--new-column-widths``. New in Docutils 0.18. diff --git a/docutils/docs/user/tools.txt b/docutils/docs/user/tools.txt index 13cf42e1f..1ff8d1e51 100644 --- a/docutils/docs/user/tools.txt +++ b/docutils/docs/user/tools.txt @@ -36,7 +36,7 @@ to generate a specific data format). Most [#]_ front ends have common options and the same command-line usage pattern:: - toolname [options] [<source> [<destination>]] + <toolname> [options] [<source> [<destination>]] See `the tools`_ below for concrete examples. @@ -75,34 +75,29 @@ Generic Command Line Front End :Readers: Standalone (default), PEP :Parsers: reStructuredText (default), Markdown (requires 3rd party packages) -:Writers: html_, html4css1_, html5_ (default), latex__, manpage_, +:Writers: html_, html4css1_, html5_ (default), latex2e_, manpage_, odt_, pep_html_, pseudo-xml_, s5_html_, xelatex_, xml_, :Config_: `[docutils application]`_ -The generic front end allows combining "reader", "parser", and -"writer" components from the Docutils package or 3rd party plug-ins. +Since Docutils 0.19, you can start the generic front end like:: -Since Docutils 0.19, it can be called by Python's ``-m`` option, -the ``docutils`` script installed in the binary PATH, or the -``docutils-cli.py`` script in the ``tools/`` directory. + docutils test.rst test.html +Alternatively, use Python's ``-m`` option, or the ``docutils-cli.py`` +script in the ``tools/`` directory. + +The generic front end allows combining "reader", "parser", and +"writer" components from the Docutils package or 3rd party plug-ins. For example, to process a Markdown_ file "``test.md``" into -Pseudo-XML_ :: +Pseudo-XML_:: - python3 -m docutils --parser=markdown --writer=pseudoxml\ - test.md test.txt + docutils --parser=markdown --writer=pseudoxml test.md test.txt Use the "--help" option together with the component-selection options to get the correct list of supported command-line options. Example:: docutils --parser=markdown --writer=xml --help - - -__ -.. _latex2e: -.. _Generating LaTeX with Docutils: latex.html -.. _manpage: manpage.html .. _Markdown: https://www.markdownguide.org/ .. _[docutils application]: config.html#docutils-application @@ -252,11 +247,10 @@ configuration files. For example, to process a PEP into HTML:: cd <path-to-docutils>/docs/peps - rstpep2html.py pep-0287.txt pep-0287.html + ../../tools/rstpep2html.py pep-0287.txt pep-0287.html The same result can be achieved with the genric front end:: - cd <path-to-docutils>/docs/peps docutils --reader=pep --writer=pep_html pep-0287.txt pep-0287.html The rendering of published PEPs is done by a Sphinx-based build system @@ -401,6 +395,10 @@ printing or on-screen viewing. For details see `Generating LaTeX with Docutils`_. +.. _latex2e: +.. _Generating LaTeX with Docutils: latex.html + + rst2xetex.py ------------ @@ -439,6 +437,7 @@ rst2man.py The ``rst2man.py`` front end reads standalone reStructuredText source files and produces troff_ sources for Unix man pages. +.. _manpage: manpage.html .. _troff: https://troff.org/ |
