Skip to content

Commit

Permalink
Docs: fix wrong edit url
Browse files Browse the repository at this point in the history
  • Loading branch information
orestbida committed Aug 29, 2023
1 parent 7c2cca2 commit 56865ae
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/.vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import { SitemapStream } from 'sitemap'

const sitemapLinks = []

const split = pkg.repository.url.split('/tree/');
const repoUrl = split[0];
const branch = split[1] || 'master';
const editLink = `${repoUrl}/edit/${branch}/docs/:path`;

export default defineConfig({
lang: 'en-US',
title: 'CookieConsent',
Expand All @@ -25,7 +30,7 @@ export default defineConfig({
],

editLink: {
pattern: `${pkg.repository.url}/edit/v3.0-beta/docs/:path`,
pattern: editLink,
text: 'Suggest changes to this page'
},
algolia: {
Expand Down

1 comment on commit 56865ae

@vercel
Copy link

@vercel vercel bot commented on 56865ae Aug 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

cookieconsent-docs – ./

cookieconsent-docs-orest.vercel.app
cookieconsent.orestbida.com
cookieconsent-docs-git-v30-beta-orest.vercel.app

Please sign in to comment.