Enables the edit-on-GitHub link.
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-repoAdvanced
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=developOptions
NEXT_PUBLIC_REPO_URLenvNEXT_PUBLIC_REPO_BRANCHenvDefault: mainBranch for the edit link.
Related pages
Was this page helpful?