编辑链接
指向源文件的链接。
编辑链接允许您在每个页面的末尾显示一个链接,用于在 GitHub / GitLab 上编辑页面。
app.config.ts
pattern选项定义链接的 URL 结构,:path将被替换为页面路径。text选项允许您自定义链接文本(默认为Edit this page)icon选项允许您自定义图标(默认为lucide:square-pen)placement选项控制编辑链接的放置位置。docsFooter:在页面末尾。toc:在目录链接部分。
Front Matter
可以使用 front matter 中的 editLink 选项在每个页面上禁用编辑链接。
参数
enableboolean
falsepatternstring
textstring
Edit this pageiconstring
lucide:square-penplacement('docsFooter' | 'toc')[]
['docsFooter']