- Nothing changed yet.
- Add support for Python 3.12 and 3.13.
- Add support for Python 3.11.
- Drop support for Python 3.6.
- Restrict readme-renderer to < 37.0, because it switched to a different docutils writer (html5_polyglot instead of html4css1), which causes issues (issue 65). This will be fixed properly in a newer release.
- Drop support for Python 2.7.
- Fix incompatibility with docutils 0.18.1 that resulted in "Cannot embed stylesheet" errors (issue 61, contributed by Sébastien Besson).
- Add support for Python 3.8, 3.9, and 3.10.
- Drop support for Python 3.5.
- Claim Python 3.7 support.
- Drop Python 3.4 support.
- Ignore stderr from external commands that successfully produce stdout (like warnings printed by setup.py --long-description). Fixes #55.
- Cope with readme_renderer.clean.clean() returning None on failure.
- Added
__main__.py
module to allow package to be executable withpython -m restview
. - SimplyKnownAsG
- Protect against DNS rebinding attacks. See #51.
- Claim Python 3.6 support.
- Drop Python 3.3 support.
- New option
--report-level
that defaults to 2 (previously this was hardcoded to 0). See #49. - Relax
--strict
to mean--halt-level=2
(previously it meant--halt-level=1
). See #49.
- Implement
restview --version
(#37). - Highlight the bad source line when rendering fails completely due to an
error, e.g. in
--strict
mode (#40).
- Use the right content type for SVG images (#36).
- Support SVG images (#36).
- Fix HTML cleaning code in --pypi-strict mode (#33).
- Drop Python 2.6 support.
- Claim Python 3.5 support.
- Drop Python 3.2 support.
- Stop dynamic computation of install_requires in setup.py, this doesn't work well in the presence of the pip 7 wheel cache.
- Fix style loss on autoreloading. Fixes #25.
Reload the page using AJAX to preserve scroll position. Fixes #22.
Use the default docutils CSS instead of replacing it wholesale. Drop some of our styles, including:
- left-aligned document title
- sans-serif font override for document text
- fully-justified text
- bold terms in definition lists
- custom table rendering with just horizontal rules (issue #23)
Keep other custom style overrides:
- custom footnote rendering (I really like it)
- white background for code blocks
- prettier system error messages
- unified alignment of code blocks, block quotes and doctests
Fixes #23.
The
--css
option can be provided multiple times and can refer to standard stylesheets (the ones provided by docutils as well as the ones provided by restview) without specifying the full path.For example, if you want to go back to the style used by restview before version 2.2.0, you can use
restview --css oldrestview.css ...
If you want your own custom style on top of the standard docutils styles, use
restview --css html4css1.css --css ./path/to/my.css
And if you want to completely override the stylesheet, use
restview --css ./path/to/my.css
New option:
--watch
. Reloads pages when a given file changes. Mostly useful with-e
, but can also come in handy when you're developing your CSS. Can be specified multiple times, e.g.restview --css my.css -e 'cat one.rst two.rst' -w my.css -w one.rst -w two.rst
restview --long-description
watches setup.py, README.rst and CHANGES.rst for updates and reloads the description automatically.Error pages will also reload automatically if the source file changes.
Error pages in strict mode will mention the filename instead of
<string>
.File watching now pays attention to fractional seconds.
- Fix TypeError on Python 3 when reporting ReST errors (typically in strict mode). Fixes #21.
- Fix TypeError on Python 3 when using
--pypi-strict
.
--pypi-strict
mode to catch additional problems that break rendering on the Python Packaging Index.--long-description
enables this automatically. Fixes #18.- Added installation section to the README. Fixes #19.
- Avoid Unicode errors on Python 3 when the ReStructuredText file is in an encoding that doesn't match the locale. Fixes #16.
- Avoid Unicode errors on Python 3when there are filenames in an encoding that doesn't match the locale. Fixes #17.
- Show a clear error when external command fails. Fixes #14.
- Stop mangling document titles. Fixes #15.
- Distinguish document title from section titles with a larger font. Fixes #12.
- Minor tweaks and fixes to make restview work better on Windows (e.g. all tests now pass).
- Suppress errors when file disappears while restview is polling for changes. Fixes #11.
- Added a favicon. Fixes #8.
- Always require Pygments. Fixes #9.
- Python 3 support (LP#1093098). Patch by Steven Myint (git@stevenmyint.com).
- Moved to Github.
- 100% test coverage.
- Automatically reload the web page when the source file changes (LP#965746). Patch by speq (sp@bsdx.org), with modifications by Eric Knibbe and Marius Gedminas.
- New option: restview --long-description (shows the output of python setup.py --long-description).
- New option: restview --strict. Patch by Steven Myint (git@stevenmyint.com).
- Improve auto-linkification of local file names:
- allow subdirectories
- recognize .rst extensions
- Many improvements by Eric Knibbe:
restview dirname
now ignores hidden subdirectories.- files in directory listings are sorted case-insensitively.
- allow serving gif and jpg images.
- CSS rules for rubric, sidebars, and many other things.
- syntax highlighting for code blocks.
- improved HTTP error messages.
- HTTP headers to prevent browser caching of dynamic content.
- setup.py no longer requires docutils (LP#637423).
- Handle spaces and other special characters in URLs (LP#616335).
- Don't linkify filenames inside external references (LP#634827).
- "SEVERE" docutils errors now display a message and unformatted file in the browser, instead of a traceback on the console.
- New command-line option, -e COMMAND.
- Added styles for admonitions; many other important styles are still missing.
- Spell 'extras_require' correctly in setup.py (LP#459840).
- Add a MANIFEST.in for complete source distributions (LP#459845).
- Fix for 'localhost' name resolution error on Mac OS X.
- Launches the web server in the background.
- Accepts any number of files and directories on the command line.
- New option: --css. Accepts a filename or an HTTP/HTTPS URL.
- Bumped version number to reflect the stability.
- Minor CSS tweaks.
- Create links to other local files referenced by name.
- Use pygments (if available) to syntax-highlight doctest blocks.
- Handle JPEG images.
- Remove the unstable Gtk+ version.
- Use setuptools for packaging.
- Browser-based version.
- Command line options -l, -b (thanks to Charlie Shepherd).
- CSS tweaks.
- Unicode bugfix.
- Can browse directory trees.
- Can serve images.
- PyGtk+ version with GtkMozEmbed. Not very stable.