Restview

Latest version: v3.0.1

Safety actively analyzes 631341 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 7

2.2.0

Not secure
------------------

- Reload the page using AJAX to preserve scroll position.
Fixes https://github.com/mgedmin/restview/issues/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 https://github.com/mgedmin/restview/issues/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.

2.1.1

Not secure
------------------

- Fix TypeError on Python 3 when reporting ReST errors (typically in strict
mode).
Fixes https://github.com/mgedmin/restview/issues/21.

- Fix TypeError on Python 3 when using ``--pypi-strict``.

2.1.0

Not secure
------------------

- ``--pypi-strict`` mode to catch additional problems that break rendering
on the Python Packaging Index. ``--long-description`` enables this
automatically.
Fixes https://github.com/mgedmin/restview/issues/18.

- Added installation section to the README.
Fixes https://github.com/mgedmin/restview/issues/19.

2.0.5

Not secure
------------------

- Avoid Unicode errors on Python 3 when the ReStructuredText file is in an
encoding that doesn't match the locale.
Fixes https://github.com/mgedmin/restview/issues/16.

- Avoid Unicode errors on Python 3when there are filenames in an encoding that
doesn't match the locale.
Fixes https://github.com/mgedmin/restview/issues/17.

2.0.4

Not secure
------------------

- Show a clear error when external command fails.
Fixes https://github.com/mgedmin/restview/issues/14.

- Stop mangling document titles.
Fixes https://github.com/mgedmin/restview/issues/15.

2.0.3

Not secure
------------------

- Distinguish document title from section titles with a larger font.
Fixes https://github.com/mgedmin/restview/issues/12.

- Minor tweaks and fixes to make restview work better on Windows (e.g. all
tests now pass).

Page 4 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.