Last updated

editPage

Usage

Use the editPage section to display the edit button above the page table of contents in the top right. Selecting the edit button opens a GitHub or GitLab repository in a new tab.

The editPage section should be added to the top level of the siteConfig.yaml file.

To override the site-wide configuration, use the editPage section in the front matter of specific MD(X) pages.

Options

OptionDescription
baseUrlURL of the root folder of your GitHub or GitLab project.
textText to display on the edit button. The default value is Edit.
iconPath to the image file (svg or png) used as the button icon.

Examples

editPage:
  baseUrl: https://github.com/github/training-kit
  icon: ./images/pencil.svg