diff --git a/docs/community/contributing.md b/docs/community/contributing.md index d61ab25c4..614e0599f 100644 --- a/docs/community/contributing.md +++ b/docs/community/contributing.md @@ -8,7 +8,7 @@ You decided to take part in the development? Welcome! -We were trying to make our guidelines for you as explicit and detailed as possible. +We are trying to make our guidelines for you as explicit and detailed as possible. ## Initial Setup @@ -111,7 +111,7 @@ pnpm test **Docker** ```bash -./run pnpm test +./run pnpm vitest ``` The `test` script and others are in the top-level `package.json` file. diff --git a/packages/mermaid/src/docs/.vitepress/config.ts b/packages/mermaid/src/docs/.vitepress/config.ts index 710aa6b2d..5a2509820 100644 --- a/packages/mermaid/src/docs/.vitepress/config.ts +++ b/packages/mermaid/src/docs/.vitepress/config.ts @@ -84,8 +84,8 @@ function nav() { }, { text: 'Contributing', - link: '/comminuty/intro', - activeMatch: '/comminuty/', + link: '/community/intro', + activeMatch: '/community/', }, { text: 'Latest News', @@ -200,11 +200,11 @@ function sidebarCommunity() { text: '🙌 Contributing', collapsed: false, items: [ - { text: 'Getting Started', link: '/contributing/intro' }, - { text: 'Contributing to Mermaid', link: '/contributing/contributing' }, - { text: 'Adding Diagrams', link: '/contributing/new-diagram' }, - { text: 'Questions and Suggestions', link: '/contributing/questions-and-suggestions' }, - { text: 'Security', link: '/contributing/security' }, + { text: 'Getting Started', link: '/community/intro' }, + { text: 'Contributing to Mermaid', link: '/community/contributing' }, + { text: 'Adding Diagrams', link: '/community/new-diagram' }, + { text: 'Questions and Suggestions', link: '/community/questions-and-suggestions' }, + { text: 'Security', link: '/community/security' }, ], }, ]; diff --git a/packages/mermaid/src/docs/.vitepress/theme/redirect.spec.ts b/packages/mermaid/src/docs/.vitepress/theme/redirect.spec.ts index 09c14d935..9455882c5 100644 --- a/packages/mermaid/src/docs/.vitepress/theme/redirect.spec.ts +++ b/packages/mermaid/src/docs/.vitepress/theme/redirect.spec.ts @@ -38,6 +38,11 @@ test.each([ ['https://mermaid.js.org/#/flowchart.md', 'syntax/flowchart.html'], // New docs, without base path, new domain ['https://mermaid.js.org/misc/faq.html', 'configure/faq.html'], + ['https://mermaid.js.org/community/newDiagram.html', 'community/new-diagram.html'], + ['https://mermaid.js.org/community/development.html', 'community/contributing.html#initial-setup'], + ['https://mermaid.js.org/community/docker-development.html', 'community/contributing.html#initial-setup'], + ['https://mermaid.js.org/community/code.html', 'community/contributing.html#contributing-code'], + ['https://mermaid.js.org/community/documentation.html', 'community/contributing.html#contributing-documentation'], [ 'https://mermaid.js.org/misc/faq.html#frequently-asked-questions', 'configure/faq.html#frequently-asked-questions', diff --git a/packages/mermaid/src/docs/.vitepress/theme/redirect.ts b/packages/mermaid/src/docs/.vitepress/theme/redirect.ts index e24d2beb9..57cac6800 100644 --- a/packages/mermaid/src/docs/.vitepress/theme/redirect.ts +++ b/packages/mermaid/src/docs/.vitepress/theme/redirect.ts @@ -58,7 +58,7 @@ const idRedirectMap: Record = { 'n00b-gettingstarted': 'intro/getting-started', 'n00b-overview': 'intro/getting-started', 'n00b-syntaxreference': 'intro/syntax-reference', - newdiagram: 'community/newDiagram', + newdiagram: 'community/new-diagram', pie: 'syntax/pie', plugins: '', quickstart: 'intro/getting-started', @@ -88,10 +88,15 @@ const urlRedirectMap: Record = { '/syntax/c4c.html': 'syntax/c4.html', '/ecosystem/integrations.html': 'ecosystem/integrations-community.html', '/ecosystem/showcases.html': 'ecosystem/integrations-create', - '/config/n00b-advanced.html': 'config/advanced', - '/intro/n00b-gettingStarted.html': 'intro/getting-started', - '/intro/n00b-syntaxReference.html': 'intro/syntax-reference', - '/community/n00b-overview.html': 'intro/getting-started', + '/config/n00b-advanced.html': 'config/configuration.html', + '/intro/n00b-gettingStarted.html': 'intro/getting-started.html', + '/intro/n00b-syntaxReference.html': 'intro/syntax-reference.html', + '/community/n00b-overview.html': 'intro/getting-started.html', + '/community/newDiagram.html': 'community/new-diagram.html', + '/community/development.html': 'community/contributing.html#initial-setup', + '/community/docker-development.html': 'community/contributing.html#initial-setup', + '/community/code.html': 'community/contributing.html#contributing-code', + '/community/documentation.html': 'community/contributing.html#contributing-documentation', }; /** diff --git a/packages/mermaid/src/docs/community/contributing.md b/packages/mermaid/src/docs/community/contributing.md index 5a54b8757..695736cc9 100644 --- a/packages/mermaid/src/docs/community/contributing.md +++ b/packages/mermaid/src/docs/community/contributing.md @@ -2,7 +2,7 @@ You decided to take part in the development? Welcome! -We were trying to make our guidelines for you as explicit and detailed as possible. +We are trying to make our guidelines for you as explicit and detailed as possible. ## Initial Setup