summaryrefslogtreecommitdiff
path: root/docutils/tools/docutils-cli.py
Commit message (Collapse)AuthorAgeFilesLines
* Command line "entry point" to the docutils package. Part 2/2.milde2022-05-301-0/+24
| | | | | | | | | | | | | | Support ``python -m docutils`` with new module `docutils.__main__`. Support ``docutils`` CLI command via "entry point" in setup.py. Keep tools/docutils-cli.py for backwards compatibility and manual installation. Calls `docutils.__main__.main()`. Thanks to Adam Turner for contributions and review. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9061 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Command line "entry point" to the docutils package. Part 1/2.milde2022-05-301-106/+0
| | | | | | Move the generic command line interface to docutils/__main__.py. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9060 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Ensure at least two spaces before inline comment.milde2022-03-041-3/+3
| | | | | | | | | flake 8 rule E261 Exceptions for modules sheduled for removal or with 3rd-party origin and for data collections. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9021 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix unexpected spaces around equals indicating keyword arguments.milde2022-03-031-1/+1
| | | | | | flake8 rule E251 git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9020 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Make docutils-cli.py importable. Better/simpler help output.milde2022-02-101-57/+70
| | | | | | | | | | Put action code in function main(). Use CliSettingsSpec to provide both, defaults for Publisher.get_settings() and help with publish_cmdline(). git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9005 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix code indentationmilde2022-01-291-1/+1
| | | | | | | | | | | | | | | | | | | | Check conformance to our coding policies with flake8. Fix the following problems: E111 indentation is not a multiple of four E114 indentation is not a multiple of four (comment) E115 expected an indented block (comment) E116 unexpected indentation (comment) E117 over-indented E121 continuation line under-indented for hanging indent E122 continuation line missing indentation or outdented E124 closing bracked does not match visual indentaion E127 continuation line over-indented for visual indent E128 continuation line under-indented for visual indent E131 continuation line unaligned for hanging indent git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8994 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix trailing whitespace (flake warning W291).milde2022-01-291-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8992 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* docutils-cli: Use "SettingsSpec" interface for config file parsing.milde2022-01-251-58/+53
| | | | | | | | Use the high-level interface provided by docutils.core instead of the low-level classes/functions in docutils.frontend to get reader/parser/writer names from standard configuration files. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8965 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Drop use of utils.error_reporting module and deprecate it.milde2022-01-071-1/+1
| | | | | | | | | | SafeString not required in Python 3 ErrorString obsoleted by new function io.error_string(). ErrorOutput and locale_encoding moved to docutils.io. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8937 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Remove "coding:" slugmilde2022-01-031-1/+0
| | | | | | Only required with Python 2.x. Encoding in Py3k is utf8 by default. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8926 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* docutils-cli.py: allow drop-in components for reader and parser.milde2021-12-231-13/+16
| | | | | | | | | Now also reader and parser may be 3rd party modules: specify the import name of the module containing the parser. Fix help output. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8915 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* docutils-cli.py: Read settings from standard configuration files.milde2021-10-191-11/+35
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8858 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Review settings_spec.milde2021-05-171-3/+3
| | | | | | | Common options for HTML writers. Minor changes for xetex writer and docutils-cli.py. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8722 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Improve help and error msg for docutils-cli.milde2021-04-071-11/+16
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8673 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix typo.milde2021-03-271-2/+2
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8645 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Clean up Markdown support.milde2021-01-031-4/+4
| | | | | | | | | | Set 'docutils-cli.py' shebang to python3 (better chance of markdown support). Remove the 'md2*.py' wrappers. (Use 'docutils-cli.py --parser=markdown'.) Remove hard-coded print output from test suite when there is no recommonmark module. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8601 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Rename the generic command line frontend to "docutils-cli.py"milde2020-12-151-0/+67
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8591 929543f6-e4f2-0310-98a6-ba3bd3dd1d04