v4.41.1
This version was tagged but not published to npm. Its changes first shipped in v4.41.4.
Maintenance release; no user-facing changes.
v4.41.0
This version was tagged but not published to npm. Its changes first shipped in v4.41.4.
New features
- Doc Detective can now write “last verified” dates back into your documentation source files when tests pass. See Last verified on.
- Opt in with a
verified-byentry that setstool: doc-detectiveand achecknaming a test or spec ID. Put it in front matter to date the page, or in an inlinemetastatement to date one procedure. On a pass, Doc Detective fills in the entry’sversionandpasseddate, and setslast-verifiedonce every entry has passed. - Doc Detective never changes other tools’ entries, and writes nothing when a test fails, warns, or skips.
- Add
"badge": trueto an inlineteststatement to keep a “Last verified” badge on the line above the test. No test ID is required.
- Opt in with a
- Use the
verification.writeconfig field, or the--verificationCLI flag, to choose what a run writes back. See verification options."existing", the default, fills only what pages already declare.truealso adds entries for passing pages and tests, and writes generated test IDs into theirteststatements so the IDs stay stable.falsewrites nothing, including badges.
- Write-back supports Markdown, MDX, AsciiDoc, HTML, and DITA. Doc Detective warns when it can’t write a statement, such as some AsciiDoc forms.