From 49817181bad8d681446d87623c4c07c2c2bfff5d Mon Sep 17 00:00:00 2001 From: Mathieu Suen Date: Tue, 16 Nov 2021 10:14:39 +0100 Subject: [PATCH] SONAR-15466 Fix typo link --- .../sonar-docs/src/EmbedDocsSuggestions.json | 2 +- .../src/__tests__/BrokenLinkSafetyNet.test.js | 6 +- .../static/SonarCloudNavigationTree.json | 90 ------------------- 3 files changed, 2 insertions(+), 96 deletions(-) delete mode 100644 server/sonar-docs/static/SonarCloudNavigationTree.json diff --git a/server/sonar-docs/src/EmbedDocsSuggestions.json b/server/sonar-docs/src/EmbedDocsSuggestions.json index 2eb7800dd64..ac1f9b43c9a 100644 --- a/server/sonar-docs/src/EmbedDocsSuggestions.json +++ b/server/sonar-docs/src/EmbedDocsSuggestions.json @@ -42,7 +42,7 @@ }, { "link": "/documentation/user-guide/connected-mode/", - "text": "SonarLint connected mode" + "text": "SonarLint Connected Mode" } ], "permission_templates": [], diff --git a/server/sonar-docs/src/__tests__/BrokenLinkSafetyNet.test.js b/server/sonar-docs/src/__tests__/BrokenLinkSafetyNet.test.js index 74c4598bd57..c29aa77ed38 100644 --- a/server/sonar-docs/src/__tests__/BrokenLinkSafetyNet.test.js +++ b/server/sonar-docs/src/__tests__/BrokenLinkSafetyNet.test.js @@ -45,11 +45,7 @@ it('should have at least one instance of all possible frontmatter fields', () => /* eslint-disable no-console */ it('should have valid links in trees files', () => { - const trees = [ - 'SonarCloudNavigationTree.json', - 'SonarQubeNavigationTree.json', - 'StaticNavigationTree.json' - ]; + const trees = ['SonarQubeNavigationTree.json', 'StaticNavigationTree.json']; let hasErrors = false; trees.forEach(file => { const tree = JSON.parse(fs.readFileSync(path.join(rootPath, '..', 'static', file), 'utf8')); diff --git a/server/sonar-docs/static/SonarCloudNavigationTree.json b/server/sonar-docs/static/SonarCloudNavigationTree.json deleted file mode 100644 index 959f91ac13a..00000000000 --- a/server/sonar-docs/static/SonarCloudNavigationTree.json +++ /dev/null @@ -1,90 +0,0 @@ -[ - { - "title": "Get Started", - "children": ["/integrations/github/", "/integrations/bitbucketcloud/", "/integrations/vsts/"] - }, - { - "title": "Analyzing Source Code", - "children": [ - "/analysis/overview/", - "/analysis/analysis-parameters/", - { - "title": "Languages", - "children": [ - "/analysis/languages/abap/", - "/analysis/languages/apex/", - "/analysis/languages/csharp/", - "/analysis/languages/cfamily/", - "/analysis/languages/cobol/", - "/analysis/languages/flex/", - "/analysis/languages/go/", - "/analysis/languages/html/", - "/analysis/languages/java/", - "/analysis/languages/javascript/", - "/analysis/languages/kotlin/", - "/analysis/languages/php/", - "/analysis/languages/plsql/", - "/analysis/languages/python/", - "/analysis/languages/ruby/", - "/analysis/languages/scala/", - "/analysis/languages/swift/", - "/analysis/languages/tsql/", - "/analysis/languages/vbnet/", - "/analysis/languages/xml/" - ] - }, - "/analysis/coverage/", - "/analysis/external-issues/", - "/analysis/background-tasks/", - "/analysis/generic-issue/", - "/analysis/generic-test/", - "/analysis/pull-request/", - { - "title": "Branches", - "children": ["/branches/overview/", "/branches/branches-faq/"] - }, - "/analysis/supported-languages/" - ] - }, - { - "title": "User Guide", - "children": [ - "/user-guide/clean-as-you-code/", - "/user-guide/project-page/", - "/user-guide/issues/", - "/user-guide/security-hotspots/", - "/user-guide/rules/", - "/user-guide/security-rules/", - "/user-guide/built-in-rule-tags/", - "/user-guide/quality-gates/", - "/instance-administration/quality-profiles/", - "/user-guide/metric-definitions/", - "/user-guide/concepts/", - "/user-guide/activity-history/", - "/user-guide/visualizations/", - "/user-guide/security-reports/", - "/user-guide/user-account/", - "/user-guide/user-token/", - "/user-guide/keyboard-shortcuts/" - ] - }, - { - "title": "Project Admin Guide", - "children": [ - "/project-administration/webhooks/", - "/project-administration/narrowing-the-focus/" - ] - }, - { - "title": "Organization Admin Guide", - "children": [ - "/organizations/overview/", - "/organizations/manage-team/", - "/organizations/organization-visibility/" - ] - }, - { - "title": "Appendices", - "children": ["/sonarcloud-pricing/", "/privacy/", "/security/", "/faq/", "/autoscan/"] - } -] -- 2.39.5