previousDiffURI - speced/respec GitHub Wiki
previousDiffURI
Type: string
Default: undefined
The URL to use as the "old" version when generating a diff-marked document. By default, ReSpec uses the previous published version. Override this to diff against a different version.
Basic usage
var respecConfig = {
previousPublishDate: "2024-01-15",
previousMaturity: "WD",
// Override: diff against the very first WD, not the immediately previous one
previousDiffURI: "https://www.w3.org/TR/2021/WD-my-spec-20210301/",
};
Notes
- Rarely needed — most specs just diff against the immediately previous version
- Use when the default diff target isn't the version you want to compare against