Page History

Demo

Try history, contributors, and inline workspace changes with interactive examples.

Try history and contributors or inline workspace changes. Both demos run on saved data, so they work here on the published site.

History and contributors

Pick an Example, or change the Preview options to see what each setting does. You can expand and sort the list, switch the language, and use the site's theme switch to check dark mode.

Contributors

Page history

Reset goes back to the selected example. Language switches both the labels and the date format. Start expanded controls whether the list is open when the page loads. To use these settings on your site, see Display & language.

The data is a saved snapshot of this project's own history, with shenxianovo's GitHub profile. The Co-authors example adds a made-up second author with a long name and no avatar.

Inline workspace changes

Pick a Change example to see how different edits look: a reworded paragraph, Chinese text, table changes, and a changed link. Removed text is red and struck through; added text is green. When most of a paragraph is rewritten, both versions are shown in full, and the changed words are highlighted more strongly.

A rewrite keeps both paragraphs complete. Shared words use the light background; changed words have stronger highlights.

Green: addedRed: removed

Page History adds contributors and a collapsible commit timeline to your documentation. Try the interactive demo.

Page History brings Git context into your Fumadocs pages:

These examples run the package's real comparison and rendering code on fixed sample text. Nothing is read from your computer or from GitHub.

Try your own documents

To set this up on your site, follow the Workspace changes guide.

To try it in this repository, run pnpm docs-dev, then edit a sentence in Configuration reference and save. The edit is highlighted in the page. Stage or commit it, and the highlight updates within three seconds. Your edits to this page are highlighted too, while the examples above keep showing their saved text.

Highlighting only runs in local development. Published pages look normal.