D.1 Docs#

[1t] rivt Files#


Each rivt file outputs a corresponding formatted doc. A doc number has the form

rvAnn-filename.py

where rv is a required prefix, A is an alphanumeric character and nn are two digit non-negative integers.

A rivt report is organized using the rivt doc numbers. If the rivt file names are:

rvA01-filename.py
rv105-filename.py
rv212-filename.py

the report numbers would be:

  • A.1 (division A, subdivision 1)

  • 1.5 (division 1, subdivision 5)

  • 2.12 (division 2, subdivision 12)

Note that leading zeroes are dropped. Docs are sorted alpha-numerically into divisions and subdivisions in the report.

[2t] Docs#


Each rivt file outputs a corresponding formatted doc written to the publish folder unless it is a single doc.

Docs may be text, HTML or PDF. PDF doc files are produced using using the rst2pdf and Sphinx libraries. HTML doc files are produced using the Sphinx library.

If LaTeX is installed it may be used to produce PDF docs. A latex doc may require the separate installation of the texlive LaTeX library (approx. 3GB). Its advantage is additional control over doc formatting and appearance.

The report folder structure for docs is described in [3t] Report Folders.

[3t] Single docs#


A document that will not be part of a report may use the local rivt file folder for reading and writing files, without referencing the rivt report folders. A single doc is formatted by setting the rv_local variable in a comment, immediately following the rivtlib import statement.

from rivtlib import rivtlib.rvapi as rv

# rv singledoc=True

The text, PDF or HTML doc will be written to the local file folder. Single docs require less setup for docs that are not part of a larger report.

The folder structure for single docs is described in [2t] Single Doc Folders.