Skip to content

Commit

Permalink
chore: Add comments on redirectMaps
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Aug 19, 2023
1 parent b85c011 commit cfffba2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/mermaid/src/docs/.vitepress/theme/redirect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ const getBaseFile = (url: URL): Redirect => {
return { path, id };
};

/**
* Used to redirect old documentation pages to corresponding new pages.
*/
const idRedirectMap: Record<string, string> = {
'8.6.0_docs': '',
accessibility: 'config/theming',
Expand Down Expand Up @@ -68,6 +71,9 @@ const idRedirectMap: Record<string, string> = {
'user-journey': 'syntax/userJourney',
};

/**
* Used to redirect pages that have been moved in the vitepress site.
*/
const urlRedirectMap: Record<string, string> = {
'/misc/faq.html': 'configure/faq.html',
'/syntax/c4c.html': 'syntax/c4.html',
Expand Down

0 comments on commit cfffba2

Please sign in to comment.