@svartz/plugin-history
10 exported symbols.
Interfaces
| i BrowserOptions | What the browser script receives: where history pages are, and which pages have one. |
Types
| t HistoryOptions | How a vault's history is read. |
Functions
| f history | Page 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 pageAt | The 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_ICON | Adds 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_PAGE | The 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_LENGTH | The longest reason a revert takes, which its commit message carries. |
| v VERSIONS_FIELD | The frontmatter field a note sets to `true` to publish its previous versions. |