Global constants used at various places.
Config options, to be used as part of the arguments in [[Options]] to overwrite the configuration options of ReSpec.
Acceptable endings for document URL-s. We try to avoid cases when the relative URL calculations go wrong
CORS headers to be added to the server response
Entity/code pairs: the XHTML conversion is supposed to remove the XML entities (if used) to their code alternatives.
Environmental variable name for the location of external copies of some css and image files
Flag to decide whether the code runs in a browser, in Deno, or in node.js.
Generic 'fixup' script (used for warnings for rescinded or obsolete versions).
Invalid host names (essentially "localhost" and friends); unless explicitly set in the environment, these are considered to be unsafe. This is important for server deployment: servers should never accept these host names
Default port number for the server locally.
Set to the default HTTP port number; the environment variable PORT
may,
however, overwrite this for a server.
Local (relative) URL for styles and logos
Various media types used in the code.
Base URL for the W3C files (like base.css
, logos in SVG format) modified for EPUB.
Cut-off date for the publication process change
Process version being used
URL of the spec generator service, used if the source has to be transformed via respec first.
Valid Spec Status values
These media types refer to textual content, no reason to bother about streaming when fetching them...
Base URL for the official W3C css files (only the non-SVG ones are used directly).
Extra CSS file for EPUB content; mainly used to adapt and, possibly, to compensate the effects of the main CSS file. The features are
Base URL for the official W3C logos (only the non-SVG ones are used directly).
Generic ICON directory on the W3C site
Document types that are supposed to be WCAG A level due to the W3C publication check.
Usage
import * as mod from "lib/common.ts";