Skip to content

Commit 450c7ee

Browse files
committed
Add edit links for documentation pages
1 parent d1180fa commit 450c7ee

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.vitepress/config.mts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ export default defineConfig({
2020
{ text: 'Docs', link: '/docs/getting-started' },
2121
{ text: 'Blog', link: '/blog/' },
2222
],
23+
editLink: {
24+
pattern: 'https://github.com/php-testo/php-testo.github.io/edit/master/:path',
25+
text: 'Edit this page',
26+
},
2327
sidebar: {
2428
'/docs/': [
2529
{
@@ -56,6 +60,10 @@ export default defineConfig({
5660
{ text: 'Документация', link: '/ru/docs/getting-started' },
5761
{ text: 'Блог', link: '/ru/blog/' },
5862
],
63+
editLink: {
64+
pattern: 'https://github.com/php-testo/php-testo.github.io/edit/master/:path',
65+
text: 'Редактировать эту страницу',
66+
},
5967
sidebar: {
6068
'/ru/docs/': [
6169
{

0 commit comments

Comments
 (0)