summaryrefslogtreecommitdiff
path: root/docutils/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* Drop special-casing for Python 2.x in tests and tools.milde2022-01-0315-50/+20
| | | | | | | Use "python3" in the shebang line (cf. PEP 394 -- The "python" Command on Unix-Like Systems). git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8927 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Remove "coding:" slugmilde2022-01-033-5/+1
| | | | | | 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
* Remove 2.7-compatibility __future__ imports.milde2022-01-036-15/+7
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8925 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
* Add DeprecationWarnings and FutureWarnings for planned changes.milde2021-11-051-6/+21
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8880 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix spellingmilde2021-10-224-7/+7
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8860 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
* Rename buildhtml.py's "html-writer" option to "writer".milde2021-03-261-4/+9
| | | | | | | | | This is shorter and brings it in line with the "writer" option of the docutils-cli.py generic front end. The obsolete "html-writer" option is kept for backwards compatibility. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8643 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Clean up Markdown support.milde2021-01-034-110/+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/+0
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8591 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* New generic front endmilde2020-12-021-0/+67
| | | | | | | Allows the selection of reader, parser, and writer components from the command line. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8586 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add support for Markdown.milde2020-12-013-0/+106
| | | | | | | | | | | | | | Provide a wrapper for the 3rd party `recommonmark`__ Markdown parser already in use in Sphinx. Add test cases for CommonMark parsing. Also: Correct copyright note and set executable bit on two tests. Fix small typo in test content. __ https://pypi.org/project/recommonmark/ git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8585 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix a docstring.milde2020-09-301-2/+1
| | | | | | | The HTML5 writer output no longer conforms to XHTML1.1 transitional as it now uses HTML5-specific elements. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8567 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix link to 2-Clause BSD license.milde2020-09-042-3/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8554 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* rst2html5: fix description.milde2020-03-311-2/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8507 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* test_buildhtml.py: Wait for the subprocess to finishmilde2020-03-031-0/+1
| | | | | | To fix ResourceWarning: subprocess NNN is still running. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8500 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* test_buildhtml: Eliminate need for shell=Truemilde2020-03-031-3/+4
| | | | | | | Also use sys.executable, to make it possible to test buildhtml.py with different interpreter versions. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8499 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* test_buildhtml: Drop obsolete NameError handlingmilde2020-03-031-11/+4
| | | | | | | | It was added in r7442 because the imports were optional, however since r8333 the imports are unconditional, so the NameError will never be raised. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8498 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Use default encoding (utf8) for documentation in tools/editors/emacs.milde2020-02-062-21/+19
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8483 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Update and document configuration section dependencies.milde2019-11-061-1/+8
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8412 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* buildhtml.py: New option "--html-writer".milde2019-11-042-6/+18
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8410 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* trivial: Misc whitespace fixesmilde2019-08-271-1/+1
| | | | | | Signed-off-by: Stephen Finucane <stephen@that.guru> git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8376 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Formatting changes to facilitate integration of "py3" patchset.milde2019-08-273-5/+5
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8367 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* py3: Replace 'ur' prefixmilde2019-08-271-2/+8
| | | | | | | | | | While the 'u' prefix was backported to Python 3.3 or thereabouts, 'ur' remains invalid in Python 3. Just escape all backslashes and use plain old 'u'. Based on patch by Stephen Finucane <stephen@that.guru> git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8366 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Consistent Python 3 checks.milde2019-08-262-4/+4
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8360 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* py3: Use 'sorted(foo)' instead of 'foo.sort()'milde2019-08-262-6/+3
| | | | | | | | This works with iterators also (like 'dict.keys()' in Python 3) Signed-off-by: Stephen Finucane <stephen@that.guru> git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8357 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* py3: Resolve some additional undefined symbolsmilde2019-08-261-11/+0
| | | | | | | | Found with flake8 Signed-off-by: Stephen Finucane <stephen@that.guru> git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8352 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* py3: Add aliases for removed symbolsmilde2019-08-261-5/+5
| | | | | | | | | | Add aliases for symbols that have been removed in Python 3.x, namely basestring, unicode, unichr and StandardError. Signed-off-by: Stephen Finucane <stephen@that.guru> small fixes by Günter Milde. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8348 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* py3: Switch to print functionsmilde2019-08-266-59/+21
| | | | | | | | | | Remove all uses of print as a statement. This includes comments, many of which are simply removed as noise (they're in version control and can be re-added later, if necessary). Signed-off-by: Stephen Finucane <stephen@that.guru> git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8346 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* py3: Use new style classesmilde2019-08-263-5/+5
| | | | | | Signed-off-by: Stephen Finucane <stephen@that.guru> git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8345 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Drop support for Python 3.3milde2019-08-261-1/+1
| | | | | | | | | | This doesn't involve a whole lot of changes, but references to Python 3.3 (plus some to the already removed Python 2.6) are removed and 'setup.py' is updated as necessary. Signed-off-by: Stephen Finucane <stephen@that.guru> git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8338 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Remove legacy ImportError exception handlers (patch by Stephen Finucane).milde2019-08-211-9/+2
| | | | | | See https://sourceforge.net/p/docutils/patches/150/ git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8333 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* trailing blankgrubert2019-08-061-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8309 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add test for __version_info__, fix output of optional __version_details__.milde2017-06-231-4/+5
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8126 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Generate the complete punctuation_chars module with the corresponding tool.milde2017-01-171-60/+190
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8016 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Debug: `rst-forward-indented-block` starts at searching at next linesmerten2017-01-082-19/+55
| | | | | | | | again. Fixes fontification of comments continuing on the same line they started. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8015 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* "Outsourcing" of development code from utils.punctuation_chars.milde2017-01-051-0/+334
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8014 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Lots of refactorings and a few minor improvements.smerten2017-01-0326-2332/+3844
| | | | | | | | | | | | | | | | | | | | User visible improvements and changes: * Improve and debug `rst-forward-section` and `rst-backward-section`. * Auto-enumeration may be used with all styles for list insertion. * Improve and debug `rst-toc-insert`. * Adapt change in Emacs to use customization group `text` instead of `wp`. * Bind `n` and `p` in `rst-toc-mode`. * `z` in `toc-mode` returns to the previous window configuration. * Require Emacs version >= 24.1. Lots of refactorings including: * Silence byte compiler. * Use lexical binding. * Use `cl-lib`. * Add tests and raise test coverage. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8011 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add rst2html4 front end. Update docs.milde2016-12-101-0/+26
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7994 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Major refactoring:smerten2016-07-3124-1923/+7280
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Introduce classes `rst-Ado', `rst-Hdr', `rst-Ttl' and `rst-Stn' representing reStructuredText section header concepts. * Introduce use case approach for systematic testing of section header adjustment (files `tests/adjust-uc.el` and `tests/adjust-uc_doc.rst`). * Revise and refactor some old code. * Add lots of unit tests. * Replace `set (make-local-variable 'VAR)` by `setq-local VAR`. * Fix minor bugs. Minor feature changes and fixes: * Link final newline in a toc buffer so navigating at the end of the line works. * Improve section header adjustment slightly. * Integrate and update tutorial. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7963 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Replaced macros `rst-iterate-leftmost-...` by new functionsmerten2015-12-282-113/+625
| | | | | | | | | | | | | | | | `rst-apply-indented-blocks`. Refactored `rst-enumerate-region`, `rst-bullet-list-region` and `rst-line-block-region` to use `rst-apply-indented-blocks`. Improved `rst-enumerate-region` and `rst-bullet-list-region` to not indent empty lines and not indent lines before indented block. Debugged those commands to not run into endless loops on blocks at the end of a buffer missing a final newline. Improved `rst-line-block-region` to not kill indentation. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7931 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Update tutorial.smerten2015-10-043-131/+318
| | | | | | | | | | | Works with `electric-indent-mode` switched on globally in Emacs 24.4. Includes changes made in Emacs tree matching Emacs commit ``db828f62f6f17414fbbc3206dac123dc73dd6055`` of 2015-09-21 16:51:20 (GMT). git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7925 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Rename html_base writer to html_plain, move xhtml11 writer back to sandbox.milde2015-07-161-35/+0
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7901 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Small fixes to the writer aliases, supported formats, and front-end tools.milde2015-03-173-7/+8
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7847 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Base xhtml11 writer on html-base. Adapt and fix tests.milde2015-03-102-6/+8
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7818 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* New basic HTML writer: generates polyglott HTML 5 / XHTML 1.1 (transitional)milde2015-03-101-0/+35
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7815 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Basic documentation for the xhtml11 writer and frontend.milde2015-02-241-7/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7801 929543f6-e4f2-0310-98a6-ba3bd3dd1d04