Skip to main content

Creates a diff highlighting changes between two reStructuredText inputs

Project description

Overview

rstdiff takes two reStructuredText documents as input, does a structural comaprison on them and produces an annotated result highlighting the changes. rstdiff “understands” reStructuredText and therefore is able to care for the subtleties of such a comparison the result is usually much more useful than a plain source diff.

The result is then written by a Docutils writer. Use the –writer option to select a writer for the result.

Installation

rstdiff uses the standard Distutils package. Thus the installation is done with something like:

python setup.py install

Usage

SYNOPSIS

rstdiff.py [options]… old-reST [new-reST [diff-output]]

DESCRIPTION

Generates a structural diff from two reStructuredText input documents and produces an annotated result.

OPTIONS

--writer=WRITER         Select writer to write output with (default "xml").
--old                   Following options apply to the old input document
                        (default: both input documents).
--new                   Following options apply to the new input document
                        (default: both input documents).
--both                  Following options apply to both input documents
                        (default).
--compare-sections-by-names
                        Compare sections by comparing their names (default);
                        useful when section titles are stable but sections
                        change
--compare-sections-normally
                        Compare sections normally; useful when section titles
                        change

SEE ALSO

Docutils

http://docutils.sourceforge.net/

reStructuredText

http://docutils.sourceforge.net/rst.html

Original Source

https://sourceforge.net/p/docutils/code/HEAD/tree/trunk/sandbox/rstdiff/

AVAILABILITY

rstdiff is available from

https://github.com/SamWilsn/rstdiff

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rstdiff-0.5.2.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

rstdiff-0.5.2-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

Details for the file rstdiff-0.5.2.tar.gz.

File metadata

  • Download URL: rstdiff-0.5.2.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for rstdiff-0.5.2.tar.gz
Algorithm Hash digest
SHA256 67c3e7bc85dbe50650ccc786e0bf157da6cb13ff18db4bbd19b9fb0e04cf4fe2
MD5 31363ac0c26af6751076d16584bad2de
BLAKE2b-256 f190924af89c0e23cb89282804bf8b0c5a0a112058f8048829f0d2c0c765064c

See more details on using hashes here.

File details

Details for the file rstdiff-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: rstdiff-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 24.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for rstdiff-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 054111be45015be8eaead40596860bd2cf22530b2f30a9e8ae128e388b70da3f
MD5 9794fab5d58ac720c3264fcd5abc9c07
BLAKE2b-256 c4f42a6dc9cd59be4d5d617b1ae2aee82142b4efc21c4e404454a087582150c3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page