# Fumadocs (Framework Mode, Astro): Page History
URL: /docs/astro/community/fumadocs-page-history
Source: https://raw.githubusercontent.com/fuma-nama/fumadocs/refs/heads/main/apps/docs/content/docs/(framework)/[framework]/community/fumadocs-page-history.mdx

Display contributors and Git history on documentation pages.

> This is a community-maintained integration.

[fumadocs-page-history](https://github.com/shenxianovo/fumadocs-page-history) displays contributors and a collapsible history of changes on documentation pages. It reads Git history at build time and supports Fumadocs MDX and Sätteri.

[View the live demo](https://fumadocs-page-history.vercel.app).

## Setup [#setup]

Requires Node.js 24.14 or later and Fumadocs 16.17 or later within the 16.x release line.

### 1. Install the package [#install-the-package]

```package-install
fumadocs-page-history
```

### 2. Import the styles [#import-the-styles]

Add the following import after your Fumadocs styles:

```css title="app/global.css"
@import 'fumadocs-page-history/css/preset.css';
```

### 3. Register the plugin [#register-the-plugin]

Add `remarkGitChangelog` to your docs collection and set `repoURL` to your repository URL. Keep any existing schema and compiler options.

```ts title="source.config.ts"
import { applyMdxPreset, defineDocs } from 'fumadocs-mdx/config';
import { remarkGitChangelog } from 'fumadocs-page-history/remark';

export const docs = defineDocs({
  dir: 'content/docs',
  docs: {
    mdxOptions: applyMdxPreset({
      remarkPlugins: [[remarkGitChangelog, { repoURL: 'https://github.com/owner/repository' }]],
    }),
  },
});
```

Contributors and page history now appear at the end of each document in this collection. No page-template changes are needed.

## Git history [#git-history]

The build environment needs Git and the repository's full history. In GitHub Actions, use `fetch-depth: 0`:

```yaml
- uses: actions/checkout@v6
  with:
    fetch-depth: 0
```

- Commit new files before building to include their history.
- Rebuild after new commits. During development, restart the server to pick up Git-only changes.

## Configuration [#configuration]

You can toggle contributors and history independently, customize translations, and optionally resolve GitHub avatars and profile links.