Skip to content
Svartz v2.6.0

@svartz/plugin-history

10 exported symbols.

Interfaces

i BrowserOptionsWhat the browser script receives: where history pages are, and which pages have one.

Types

t HistoryOptionsHow a vault's history is read.

Functions

f historyPage history. By default, page history and Recent changes as plugin pages, and a History action on every published Markdown page. With `source: "git"`, prerendered previous versions of the notes that ask for them, on any target.
f mount
f pageAtThe index's route for `path`, which a URL may percent-encode: `/caf%C3%A9/` is `/café/`, `/a%26b/` is `/a&b/`.

Variables

v default
v HISTORY_ICONAdds History to the page actions of every page with a history, beside Copy page and Edit; on a user page, the account's contributions below the note; and on `/-/account/`, a link to the reader's contributions.
v MAX_HISTORY_PAGEThe last page of a file's history readers may page back to, counting from 1: its latest 1,000 changes. Older ones are on GitHub.
v MAX_REASON_LENGTHThe longest reason a revert takes, which its commit message carries.
v VERSIONS_FIELDThe frontmatter field a note sets to `true` to publish its previous versions.