Skip to main content

Build html files from the text RFCs and the errata database.

Project description

Automatically apply errata to RFCs

The RFC series is a suite of documents published by the RFC Editor for the benefit of the Internet community. It contains technical and organizational documents about the Internet, including the specifications and policy documents produced by four document streams within the RFC series: the Internet Engineering Task Force (IETF), the Internet Research Task Force (IRTF), the Internet Architecture Board (IAB), and Independent Submissions. Documents in the RFC series are identified by a number and are frozen forever and cannot be changed.

The RFC Editor maintains a database of errata that have been submitted by the consumers of RFCs. These errata, once reported, can be verified, rejected or “held for document update.” The visibility of errata to the consumers of RFCs has historically been poor or nonexistent. This program is part of an effort to raise the visibility of these errata.

This program pulls down a copy of the errata database from the RFC Editor and the text version of an RFC. It then merges the errata and the text of the RFC to produce an HTML file.

Usage

rfc-errata pulls all needed information to run from the RFC Editor website. The tool can be run either to update all RFCs that have errata or only a specific set of RFCs

Basic Usage: rfc-errata [options] [<list of RFCs>]

Options

The following parameters affect how svgcheck behaves, however none are required.

Short

Long

Description

-s

--server=

provide a server to download errata and RFCs from

.

--no-network

do not download errata.json from the website

.

--templates=

directory containing templates to be used

.

--text=

directory to store unmodified text RFCs in

.

--html=

directory to place modified HTML RFCs in

.

--css=

relative location for CSS files at final website

.

--all

update all RFCs rather than a list of RFCs

.

--reported=

apply ‘reported’ errata (yes/no)

.

--held=

apply ‘held for update’ errata (yes/no)

.

--rejected=

apply ‘rejected’ errata (yes/no)

.

--verified=

apply ‘verified’ errata (yes/no)

.

--force

rebuild all HTML files rather than using timestamps

.

--nocopy

clear destination copy list

.

--path

path to css files in the HTML output

.

--copyto

specify the destinations to copy to (multiple)

-v

--verbose

print extra information

-V

--version

display the version number and exit

Operations

The tool can be used in a batch mode which is designed to be used in a cron job. For this purpose, only the documents which have new errata will be regenerated and published to the necessary locations. Documents for which errata are removed will not be regenerated as there is no notification to that fact.

The tool stores information in the file status.json in the CWD. This file is used to remember command line options between different invocations of the tool. This means that, for example, the set of errata to be applied is remembered between invocations and does not need to be specified every time. The tool also stores the file errata.json in the CWD.

When failures occur during processing, they are logged into the file “errors.log” in the CWD.

The default values for options are:

  • server = www.rfc-editor.org

  • templates from the installation directory of rfc-errata

  • html = ./html

  • text = ./rfc

  • css = ./css

  • reported = no

  • rejected = no

  • held = yes

  • verified = yes

Dependencies

None

Changelog

Version 0.3.0 (Sun 02 Nov)

  • Modify the doc-id field so that it is lower-case and does not have leading zeros

Version 0.2.1 (Tue 06 August)

  • Update the header template to say this is not an offical RFC

Version 0.2.0 (Mon 22 July)

  • Fixed an error when specifying the html directory.

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

rfc-errata-0.3.0.tar.gz (25.6 kB view details)

Uploaded Source

File details

Details for the file rfc-errata-0.3.0.tar.gz.

File metadata

  • Download URL: rfc-errata-0.3.0.tar.gz
  • Upload date:
  • Size: 25.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.6

File hashes

Hashes for rfc-errata-0.3.0.tar.gz
Algorithm Hash digest
SHA256 7714c3d41ca38f6513397c90c6817774c9739520ccc77539253a3d6a6a70546b
MD5 8cb136b1a29f80f65ef79294979a7a0b
BLAKE2b-256 96a7653935b4d3a884fa4e6baf17e4ece72aea3ed63282e6f81d75e124923097

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