Skip to main content
OwnDocs

Page Metadata

1 min readStableBeginner

Below every page OwnDocs renders a footer showing the last-updated timestamp from git log, the most recent contributors, and an "Edit on GitHub" link when NEXT_PUBLIC_REPO_URL is set.

Quick Start

The footer is data-driven and needs no configuration to show the last-updated timestamp and contributors. It renders only when git data or an edit URL is available.

Adding Options

Set the repository URL to enable the edit link.

Bash
Bash
NEXT_PUBLIC_REPO_URL=https://github.com/your-org/your-repo

Advanced

Set a non-main branch to point the edit link at it.

Bash
Bash
NEXT_PUBLIC_REPO_URL=https://github.com/your-org/your-repo
NEXT_PUBLIC_REPO_BRANCH=develop

Options

NEXT_PUBLIC_REPO_URLenv

Enables the edit-on-GitHub link.

NEXT_PUBLIC_REPO_BRANCHenvDefault: main

Branch for the edit link.

Was this page helpful?