From: 7PH Date: Thu, 6 Jun 2024 08:35:21 +0000 (+0200) Subject: SONAR-22360 Update links to documentation after C Family tutorial revamp X-Git-Tag: 10.6.0.92116~47 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=79df6bad021b632d0f3d7bd00d8d223324868e5d;p=sonarqube.git SONAR-22360 Update links to documentation after C Family tutorial revamp --- diff --git a/server/sonar-web/src/main/js/components/tutorials/components/CompilationInfo.tsx b/server/sonar-web/src/main/js/components/tutorials/components/CompilationInfo.tsx index 7b3b0e5e36d..199326e947d 100644 --- a/server/sonar-web/src/main/js/components/tutorials/components/CompilationInfo.tsx +++ b/server/sonar-web/src/main/js/components/tutorials/components/CompilationInfo.tsx @@ -41,7 +41,7 @@ export function CompilationInfo({ className = 'sw-my-2' }: CompilationInfoProps) defaultMessage={translate('onboarding.tutorial.cfamilly.compilation_database_info')} values={{ link: ( - + {translate('onboarding.tutorial.cfamilly.compilation_database_info.link')} ), diff --git a/server/sonar-web/src/main/js/components/tutorials/other/commands/ExecBuildWrapper.tsx b/server/sonar-web/src/main/js/components/tutorials/other/commands/ExecBuildWrapper.tsx index 1ac8372adf0..46e23428d55 100644 --- a/server/sonar-web/src/main/js/components/tutorials/other/commands/ExecBuildWrapper.tsx +++ b/server/sonar-web/src/main/js/components/tutorials/other/commands/ExecBuildWrapper.tsx @@ -39,7 +39,7 @@ const executables: { [x in OSs]: string } = { export default function ExecBuildWrapper(props: ExecBuildWrapperProps) { const { os } = props; - const docUrl = useDocUrl(DocLink.CFamily); + const docUrl = useDocUrl(DocLink.CFamilyBuildWrapper); return ( <> diff --git a/server/sonar-web/src/main/js/helpers/doc-links.ts b/server/sonar-web/src/main/js/helpers/doc-links.ts index a7f62f03eb0..148dc4b7702 100644 --- a/server/sonar-web/src/main/js/helpers/doc-links.ts +++ b/server/sonar-web/src/main/js/helpers/doc-links.ts @@ -43,8 +43,8 @@ export enum DocLink { BackgroundTasks = '/analyzing-source-code/background-tasks/', BranchAnalysis = '/analyzing-source-code/branches/branch-analysis/', CaYC = '/user-guide/clean-as-you-code/', - CFamily = '/analyzing-source-code/languages/c-family/', - CFamilyAnalysisCache = '/analyzing-source-code/languages/c-family/#analysis-cache', + CFamilyBuildWrapper = '/analyzing-source-code/languages/c-family/prerequisites/#using-buildwrapper', + CFamilyCompilationDatabase = '/analyzing-source-code/languages/c-family/prerequisites/#using-thirdparty-tools', CIAnalysisSetup = '/analyzing-source-code/ci-integration/overview/', CIJenkins = '/analyzing-source-code/ci-integration/jenkins-integration/', CleanCodeIntroduction = '/user-guide/clean-code/introduction/', diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index 078b6e470f4..80151c38d2b 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -4575,7 +4575,7 @@ onboarding.analysis.build_wrapper.text=And add the executable's directory to the onboarding.analysis.build_wrapper.execute=Execute the Build Wrapper as a prefix to your build command onboarding.analysis.build_wrapper.execute_text=Run the following command in your project's folder. onboarding.analysis.build_wrapper.execute_build_command= -onboarding.analysis.build_wrapper.docs=Please visit the {link} of the Build Wrapper for more details. +onboarding.analysis.build_wrapper.docs=Please visit the {link} of the Build Wrapper for more details. onboarding.analysis.build_wrapper.docs_link=official documentation