]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19761 Change documentation URL
authorWouter Admiraal <wouter.admiraal@sonarsource.com>
Thu, 24 Aug 2023 08:00:50 +0000 (10:00 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 24 Aug 2023 20:03:09 +0000 (20:03 +0000)
31 files changed:
README.md
server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v100/LogMessageIfSonarScimEnabledPresentProperty.java
server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v100/LogMessageIfSonarScimEnabledPresentPropertyTest.java
server/sonar-web/src/main/js/app/components/__tests__/DocumentationRedirect-test.tsx
server/sonar-web/src/main/js/app/components/app-state/AppStateContext.tsx
server/sonar-web/src/main/js/app/components/app-state/__tests__/__snapshots__/AppStateContextProvider-test.tsx.snap
server/sonar-web/src/main/js/app/components/indexation/PageUnavailableDueToIndexation.tsx
server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/IndexationContextProvider-test.tsx.snap
server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/PageUnavailableDueToIndexation-test.tsx.snap
server/sonar-web/src/main/js/apps/issues/sidebar/Sidebar.tsx
server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotDisabledFilterTooltip-test.tsx.snap
server/sonar-web/src/main/js/helpers/mocks/definitions-list.ts
server/sonar-web/src/main/js/helpers/testMocks.ts
server/sonar-webserver-core/src/main/java/org/sonar/server/platform/DatabaseServerCompatibility.java
server/sonar-webserver-core/src/test/java/org/sonar/server/platform/DatabaseServerCompatibilityTest.java
server/sonar-webserver-webapi/src/it/java/org/sonar/server/newcodeperiod/ws/ListActionIT.java
server/sonar-webserver-webapi/src/it/java/org/sonar/server/newcodeperiod/ws/SetActionIT.java
server/sonar-webserver-webapi/src/it/java/org/sonar/server/newcodeperiod/ws/ShowActionIT.java
server/sonar-webserver-webapi/src/it/java/org/sonar/server/newcodeperiod/ws/UnsetActionIT.java
server/sonar-webserver-webapi/src/main/resources/org/sonar/server/ce/ws/activity-example.json
server/sonar-webserver-webapi/src/main/resources/org/sonar/server/ce/ws/task-example.json
server/sonar-webserver-webapi/src/test/java/org/sonar/server/ui/ws/GlobalActionTest.java
server/sonar-webserver/src/main/java/org/sonar/server/platform/PlatformImpl.java
sonar-application/src/main/assembly/conf/sonar.properties
sonar-application/src/main/assembly/extensions/jdbc-driver/oracle/README.txt
sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java
sonar-core/src/main/java/org/sonar/core/documentation/DefaultDocumentationLinkGenerator.java
sonar-markdown/src/main/java/org/sonar/markdown/HtmlLinkChannel.java
sonar-markdown/src/test/java/org/sonar/markdown/MarkdownTest.java
sonar-scanner-engine/src/main/java/org/sonar/scanner/rule/DefaultActiveRulesLoader.java
sonar-scanner-engine/src/test/java/org/sonar/scanner/rule/DefaultActiveRulesLoaderTest.java

index 13740774dd00745d3d2a0ac67d0536a2ad2be7e0..eeebd1f62d26079859b6571e5a663dba951c838f 100644 (file)
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@ SonarQube provides the capability to not only show health of an application but
 
 - [Website](https://www.sonarqube.org)
 - [Download](https://www.sonarqube.org/downloads/)
-- [Documentation](https://docs.sonarqube.org)
+- [Documentation](https://docs.sonarsource.com/sonarqube)
 - [Twitter](https://twitter.com/SonarQube)
 - [SonarSource](https://www.sonarsource.com), author of SonarQube
 - [Issue tracking](https://jira.sonarsource.com/browse/SONAR/), read-only. Only SonarSourcers can create tickets.
@@ -17,7 +17,7 @@ SonarQube provides the capability to not only show health of an application but
 
 ## Have Question or Feedback?
 
-For support questions ("How do I?", "I got this error, why?", ...), please first read the [documentation](https://docs.sonarqube.org) and then head to the [SonarSource Community](https://community.sonarsource.com/c/help/sq/10). The answer to your question has likely already been answered! ðŸ¤“
+For support questions ("How do I?", "I got this error, why?", ...), please first read the [documentation](https://docs.sonarsource.com/sonarqube) and then head to the [SonarSource Community](https://community.sonarsource.com/c/help/sq/10). The answer to your question has likely already been answered! ðŸ¤“
 
 Be aware that this forum is a community, so the standard pleasantries ("Hi", "Thanks", ...) are expected. And if you don't get an answer to your thread, you should sit on your hands for at least three days before bumping it. Operators are not standing by. ðŸ˜„
 
index c6ce70da1c39b177b5fad56c6ba005bbd744a158..5fa37bfefb9f791f5cad36167f2b1d5d04581c77 100644 (file)
@@ -29,7 +29,7 @@ public class LogMessageIfSonarScimEnabledPresentProperty extends DataChange {
 
   private static final Logger LOG = LoggerFactory.getLogger(LogMessageIfSonarScimEnabledPresentProperty.class);
   public static final String SONAR_SCIM_ENABLED = "sonar.scim.enabled";
-  private static final String SCIM_DOC_URL = "https://docs.sonarqube.org/10.1/instance-administration/authentication/saml/scim/overview/";
+  private static final String SCIM_DOC_URL = "https://docs.sonarsource.com/sonarqube/10.1/instance-administration/authentication/saml/scim/overview/";
 
   public LogMessageIfSonarScimEnabledPresentProperty(Database db) {
     super(db);
index f0c196d068ab8bf5d9e0e2c89a716bb4ef8be896..b3a2aaa121af728198a6ed7f5fbabac48b036763 100644 (file)
@@ -62,7 +62,7 @@ public class LogMessageIfSonarScimEnabledPresentPropertyTest {
       .containsExactly("'" + SONAR_SCIM_ENABLED + "' property is defined but not read anymore. Please read the upgrade notes" +
         " for the instruction to upgrade. User provisioning is deactivated until reactivated from the SonarQube" +
         " Administration Interface (\"General->Authentication\"). "
-        + "See documentation: https://docs.sonarqube.org/10.1/instance-administration/authentication/saml/scim/overview/");
+        + "See documentation: https://docs.sonarsource.com/sonarqube/10.1/instance-administration/authentication/saml/scim/overview/");
   }
 
   @Test
index a8db8911181476611942327128ef9c1ee6450633..45d78f8cba906a004f8197be38e35d53008622c7 100644 (file)
@@ -29,7 +29,7 @@ it('should redirect to static doc for specific version', async () => {
 
   expect(await screen.findByRole('link')).toHaveAttribute(
     'href',
-    'https://docs.sonarqube.org/10.0/land'
+    'https://docs.sonarsource.com/sonarqube/10.0/land'
   );
 });
 
@@ -38,7 +38,7 @@ it('should redirect to static doc for latest version', async () => {
 
   expect(await screen.findByRole('link')).toHaveAttribute(
     'href',
-    'https://docs.sonarqube.org/latest/land'
+    'https://docs.sonarsource.com/sonarqube/latest/land'
   );
 });
 
index ed03861f3e59f025dc08d45f5e32d2820e7c6e6c..185e42ef2e71c464c69086eff70a36de4902f198 100644 (file)
@@ -28,6 +28,6 @@ export const DEFAULT_APP_STATE = {
   qualifiers: [],
   settings: {},
   version: '',
-  documentationUrl: 'https://docs.sonarqube.org/latest',
+  documentationUrl: 'https://docs.sonarsource.com/sonarqube/latest',
 };
 export const AppStateContext = React.createContext<AppState>(DEFAULT_APP_STATE);
index 9881aed06e7f346f69c361f393d81aee57bba9c9..aef5aa5c07628529509c97eb2d36d7483054d434 100644 (file)
@@ -4,7 +4,7 @@ exports[`should set value correctly 1`] = `
 <AppStateContextProvider
   appState={
     {
-      "documentationUrl": "https://docs.sonarqube.org/10.0",
+      "documentationUrl": "https://docs.sonarsource.com/sonarqube/10.0",
       "edition": "community",
       "productionDatabase": true,
       "qualifiers": [
index 6dfa918d7bc68415bd2a348c54b9cac79cc11204..f59a04ab5256f73ed82f198358ff8e2a6ff48026 100644 (file)
@@ -50,7 +50,7 @@ export class PageUnavailableDueToIndexation extends React.PureComponent<WithInde
                 id="indexation.page_unavailable.description.additional_information"
                 values={{
                   link: (
-                    <Link to="https://docs.sonarqube.org/latest/instance-administration/reindexing/">
+                    <Link to="https://docs.sonarsource.com/sonarqube/latest/instance-administration/reindexing/">
                       {translate('learn_more')}
                     </Link>
                   ),
index c8202de2b5438bb1ab64892dcde1ff2f5b7d0d40..143f0fac15f58ea94ab9b80160c16bfed2bd528c 100644 (file)
@@ -4,7 +4,7 @@ exports[`should render correctly and start polling if issue sync is needed 1`] =
 <IndexationContextProvider
   appState={
     {
-      "documentationUrl": "https://docs.sonarqube.org/10.0",
+      "documentationUrl": "https://docs.sonarsource.com/sonarqube/10.0",
       "edition": "community",
       "needIssueSync": true,
       "productionDatabase": true,
index 539329001983548669dacccc82ca1e35f45de961..2d3cf8c163a8e403b1fa15e10a156e89a4e57462 100644 (file)
@@ -21,7 +21,7 @@ exports[`should render correctly 1`] = `
           values={
             {
               "link": <StandoutLink
-                to="https://docs.sonarqube.org/latest/instance-administration/reindexing/"
+                to="https://docs.sonarsource.com/sonarqube/latest/instance-administration/reindexing/"
               >
                 learn_more
               </StandoutLink>,
index ad2a4340e02e698418925464966f690bc4b91297..2b86e04154c89cd6441432ab991bfc5b2b64284c 100644 (file)
@@ -425,7 +425,7 @@ export class SidebarClass extends React.PureComponent<Props> {
                     id="indexation.filters_unavailable"
                     values={{
                       link: (
-                        <Link to="https://docs.sonarqube.org/latest/instance-administration/reindexing/">
+                        <Link to="https://docs.sonarsource.com/sonarqube/latest/instance-administration/reindexing/">
                           {translate('learn_more')}
                         </Link>
                       ),
index baba3c9fd1ae9b630062d018bdc7640f1676673f..6e09e138b58cc85d87eafb460276848b0840ed68 100644 (file)
@@ -20,7 +20,7 @@ exports[`should render correctly and stop event propagation 1`] = `
     </span>
     <a
       class="sw-ml-1"
-      href="https://docs.sonarqube.org/latest/instance-administration/reindexing/"
+      href="https://docs.sonarsource.com/sonarqube/latest/instance-administration/reindexing/"
       rel="noopener noreferrer"
       target="_blank"
     >
index 6b56a5ad3f4642a41af91b91ad278073208e07bc..3d92f418a3a7ef53cf41dd3fee064f6a4ab448e0 100644 (file)
@@ -554,7 +554,7 @@ export const definitions: ExtendedSettingDefinition[] = [
     key: 'sonar.cobol.aucobol.preprocessor.directives.default',
     name: 'AcuCobol preprocessor default directives',
     description:
-      'This property allows to set preprocessor directives used to compile every COBOL program. See the \'ACUCOBOL-GT Source Code Control directives\' section in the <a target="_blank" href="http://docs.sonarqube.org/display/PLUG/COBOL+Plugin+Advanced+Configuration">documentation of the plugin</a>.',
+      'This property allows to set preprocessor directives used to compile every COBOL program. See the \'ACUCOBOL-GT Source Code Control directives\' section in the <a target="_blank" href="http://docs.sonarsource.com/sonarqube/display/PLUG/COBOL+Plugin+Advanced+Configuration">documentation of the plugin</a>.',
     category: 'COBOL',
     subCategory: 'Preprocessor',
     options: [],
index b2363cbe26a3ad7f6bdcbaba0239c35207da25b7..533cff7bd1ade5f426eb09f6b3d80a892dac1869 100644 (file)
@@ -82,7 +82,7 @@ export function mockAppState(overrides: Partial<AppState> = {}): AppState {
     qualifiers: ['TRK'],
     settings: {},
     version: '1.0',
-    documentationUrl: 'https://docs.sonarqube.org/10.0',
+    documentationUrl: 'https://docs.sonarsource.com/sonarqube/10.0',
     ...overrides,
   };
 }
index ce44950cd2e83f7d2492ab6f9acccb59ff22e6a1..3bb8fe2be13dbc1f1ae86e4ee71288c63162b6c9 100644 (file)
@@ -52,7 +52,7 @@ public class DatabaseServerCompatibility implements Startable {
       }
 
       String msg = "The database must be manually upgraded. Please backup the database and browse /setup. "
-        + "For more information: https://docs.sonarqube.org/latest/setup/upgrading";
+        + "For more information: https://docs.sonarsource.com/sonarqube/latest/setup/upgrading";
       LoggerFactory.getLogger(DatabaseServerCompatibility.class).warn(msg);
       Logger logger = LoggerFactory.getLogger(STARTUP_LOGGER_NAME);
       logger.warn(HIGHLIGHTER);
index 2e76e9934d0d4700d62e28e2542a3d03299d468f..8ba2175f2c28d4b4a1187e96cb02cdacff7caa49 100644 (file)
@@ -69,10 +69,10 @@ public class DatabaseServerCompatibilityTest {
     assertThat(logTester.logs()).hasSize(4);
     assertThat(logTester.logs(Level.WARN)).contains(
       "The database must be manually upgraded. Please backup the database and browse /setup. "
-        + "For more information: https://docs.sonarqube.org/latest/setup/upgrading",
+        + "For more information: https://docs.sonarsource.com/sonarqube/latest/setup/upgrading",
       "################################################################################",
       "The database must be manually upgraded. Please backup the database and browse /setup. "
-        + "For more information: https://docs.sonarqube.org/latest/setup/upgrading",
+        + "For more information: https://docs.sonarsource.com/sonarqube/latest/setup/upgrading",
       "################################################################################");
   }
 
index 1e6feffe7f6ebf046074cf38521ec590129d7acf..a2e7caa8f69b439b1b5927786cdeffb7b6bc052c 100644 (file)
@@ -93,7 +93,7 @@ public class ListActionIT {
 
   @Before
   public void setup() {
-    when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarqube.org/9.9/project-administration/defining-new-code/");
+    when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarsource.com/sonarqube/9.9/project-administration/defining-new-code/");
     ws = new WsActionTester(new ListAction(dbClient, userSession, componentFinder, dao, documentationLinkGenerator));
   }
 
@@ -102,7 +102,7 @@ public class ListActionIT {
 
     WebService.Action definition = ws.getDef();
 
-    assertThat(definition.description()).contains("https://docs.sonarqube.org/9.9/project-administration/defining-new-code/");
+    assertThat(definition.description()).contains("https://docs.sonarsource.com/sonarqube/9.9/project-administration/defining-new-code/");
 
     assertThat(definition.key()).isEqualTo("list");
     assertThat(definition.isInternal()).isFalse();
index 08e4cc457cbfa9b4cffadfbd121946ebdc9dc016..10821ffde29caa4a5079c779f0440c121e5ec69a 100644 (file)
@@ -79,7 +79,7 @@ public class SetActionIT {
 
   @Before
   public void setup() {
-    when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarqube.org/9.9/project-administration/defining-new-code/");
+    when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarsource.com/sonarqube/9.9/project-administration/defining-new-code/");
     ws = new WsActionTester(new SetAction(dbClient, userSession, componentFinder, editionProvider, dao, documentationLinkGenerator));
   }
 
@@ -87,7 +87,7 @@ public class SetActionIT {
   public void test_definition() {
     WebService.Action definition = ws.getDef();
 
-    assertThat(definition.description()).contains("https://docs.sonarqube.org/9.9/project-administration/defining-new-code/");
+    assertThat(definition.description()).contains("https://docs.sonarsource.com/sonarqube/9.9/project-administration/defining-new-code/");
 
     assertThat(definition.key()).isEqualTo("set");
     assertThat(definition.isInternal()).isFalse();
index d7c2463c759d6c942c365dcffb25e9dd1d074686..390e3fd007db1f0a4286be41d0ac4a87dd0e0928 100644 (file)
@@ -65,7 +65,7 @@ public class ShowActionIT {
 
   @Before
   public void setup() {
-    when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarqube.org/latest/project-administration/defining-new-code/");
+    when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarsource.com/sonarqube/latest/project-administration/defining-new-code/");
     ws = new WsActionTester(new ShowAction(dbClient, userSession, componentFinder, dao, documentationLinkGenerator));
   }
 
@@ -73,7 +73,7 @@ public class ShowActionIT {
   public void test_definition() {
     WebService.Action definition = ws.getDef();
 
-    assertThat(definition.description()).contains("https://docs.sonarqube.org/latest/project-administration/defining-new-code/");
+    assertThat(definition.description()).contains("https://docs.sonarsource.com/sonarqube/latest/project-administration/defining-new-code/");
 
     assertThat(definition.key()).isEqualTo("show");
     assertThat(definition.isInternal()).isFalse();
index 84b6b8b89b936451612741258d2a5a66b4deddc1..82b559c6bdcf48472a2718275093dfa18f16f853 100644 (file)
@@ -69,7 +69,7 @@ public class UnsetActionIT {
 
   @Before
   public void setup(){
-    when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarqube.org/9.9/project-administration/defining-new-code/");
+    when(documentationLinkGenerator.getDocumentationLink(any())).thenReturn("https://docs.sonarsource.com/sonarqube/9.9/project-administration/defining-new-code/");
     ws = new WsActionTester(new UnsetAction(dbClient, userSession, componentFinder, editionProvider, dao, documentationLinkGenerator));
   }
 
@@ -77,7 +77,7 @@ public class UnsetActionIT {
   public void test_definition() {
     WebService.Action definition = ws.getDef();
 
-    assertThat(definition.description()).contains("https://docs.sonarqube.org/9.9/project-administration/defining-new-code/");
+    assertThat(definition.description()).contains("https://docs.sonarsource.com/sonarqube/9.9/project-administration/defining-new-code/");
 
     assertThat(definition.key()).isEqualTo("unset");
     assertThat(definition.isInternal()).isFalse();
index 6cdf07a26d990f604e482d14f5cfc0754e6eb611..65cb3713b4d247f77017aa2c546ce76e82c8cc4a 100644 (file)
@@ -18,7 +18,7 @@
       "warningCount": 2,
       "warnings": [
         "The properties \u0027sonar.login\u0027 and \u0027sonar.password\u0027 are deprecated and will be removed in the future. Please pass a token with the \u0027sonar.token\u0027 property instead.",
-        "Missing blame information for 2 files. This may lead to some features not working correctly. Please check the analysis logs and refer to \u003ca href\u003d\"https://docs.sonarqube.org/latest/analyzing-source-code/scm-integration/\" rel\u003d\"noopener noreferrer\" target\u003d\"_blank\"\u003ethe documentation\u003c/a\u003e."
+        "Missing blame information for 2 files. This may lead to some features not working correctly. Please check the analysis logs and refer to \u003ca href\u003d\"https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/scm-integration/\" rel\u003d\"noopener noreferrer\" target\u003d\"_blank\"\u003ethe documentation\u003c/a\u003e."
       ]
     },
     {
index 094be01c9496e10bb3981705c013cbbeae441493..d6cc1ea338590360c7b191fd58ce3b7c74ef0ebf 100644 (file)
@@ -17,7 +17,7 @@
     "warningCount": 2,
     "warnings": [
       "The properties 'sonar.login' and 'sonar.password' are deprecated and will be removed in the future. Please pass a token with the 'sonar.token' property instead.",
-      "Missing blame information for 2 files. This may lead to some features not working correctly. Please check the analysis logs and refer to <a href=\"https://docs.sonarqube.org/latest/analyzing-source-code/scm-integration/\" rel=\"noopener noreferrer\" target=\"_blank\">the documentation</a>."
+      "Missing blame information for 2 files. This may lead to some features not working correctly. Please check the analysis logs and refer to <a href=\"https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/scm-integration/\" rel=\"noopener noreferrer\" target=\"_blank\">the documentation</a>."
     ]
   }
 }
index 58926e4b783e80055cc7d7b0ffc65b9f503bf2c6..5c4cb53e7d917894795370cc2079cf13837a1327 100644 (file)
@@ -330,7 +330,7 @@ public class GlobalActionTest {
   @Test
   public void call_shouldReturnDocumentationUrl() {
     init();
-    String url = "https://docs.sonarqube.org/10.0";
+    String url = "https://docs.sonarsource.com/sonarqube/10.0";
     when(documentationLinkGenerator.getDocumentationLink(null)).thenReturn(url);
 
     String json = call();
index 5cfd89446b9db43b869f8691efac892676bb9eae..1723d6c72ddeec19638a24cd070ab5db3c2dd9da 100644 (file)
@@ -100,7 +100,7 @@ public class PlatformImpl implements Platform {
 
     // if AutoDbMigration kicked in or no DB migration was required, startup can be resumed in another thread
     if (dbRequiresMigration()) {
-      LOGGER.info("Database needs to be migrated. Please refer to https://docs.sonarqube.org/latest/setup/upgrading");
+      LOGGER.info("Database needs to be migrated. Please refer to https://docs.sonarsource.com/sonarqube/latest/setup/upgrading");
     } else {
       this.autoStarter = createAutoStarter();
 
index b999c3ab851f7e04191d6fd3c3d9bae92b2770d4..0dd994e4b1dd38434d81c2a5599084ae5d12b27c 100644 (file)
@@ -10,7 +10,7 @@
 # - be overridden by environment variables. The name of the corresponding environment variable is the
 #   upper-cased name of the property where all the dot ('.') and dash ('-') characters are replaced by
 #   underscores ('_'). For example, to override 'sonar.web.systemPasscode' use 'SONAR_WEB_SYSTEMPASSCODE'.
-# - be encrypted. See https://docs.sonarqube.org/latest/instance-administration/security/#settings-encryption
+# - be encrypted. See https://docs.sonarsource.com/sonarqube/latest/instance-administration/security/#settings-encryption
 
 #--------------------------------------------------------------------------------------------------
 # DATABASE
index 54e11ac42f5a3e95f4b81b318c96b8b4289ae1c5..9db4bb675d47010bc2b7853e5ffdd6d348cd2959 100644 (file)
@@ -1,2 +1,2 @@
-Please copy an Oracle JDBC driver in this directory. See compatible versions at https://docs.sonarqube.org/latest/requirements/prerequisites-and-overview/.
+Please copy an Oracle JDBC driver in this directory. See compatible versions at https://docs.sonarsource.com/sonarqube/latest/requirements/prerequisites-and-overview/.
 Note that only a single JAR file is accepted. A failure is raised at startup if multiple JAR files are available.
index 403a03cc2e89eac759f9ff69b84a8616ab05f826..6479ae5bce86520e06683e0cbc30bc966c544e73 100644 (file)
@@ -124,7 +124,7 @@ public class CorePropertyDefinitions {
         .build(),
       PropertyDefinition.builder(DOCUMENTATION_BASE_URL)
         .name("Base URL of the documentation")
-        .description("Base URL to be used in SonarQube documentation links, such as <i>https://docs.sonarqube.org/</i>")
+        .description("Base URL to be used in SonarQube documentation links, such as <i>https://docs.sonarsource.com/sonarqube/</i>")
         .defaultValue(DefaultDocumentationLinkGenerator.DOCUMENTATION_PUBLIC_URL)
         .hidden()
         .type(STRING)
index dbfa0740328fb58db844d082add9692522a57b6e..fb98f8abac92a6a2df92f0af81d75269c93f061c 100644 (file)
@@ -27,7 +27,7 @@ import org.sonar.core.config.CorePropertyDefinitions;
 import org.sonar.core.platform.SonarQubeVersion;
 
 public class DefaultDocumentationLinkGenerator implements DocumentationLinkGenerator {
-  public static final String DOCUMENTATION_PUBLIC_URL = "https://docs.sonarqube.org/";
+  public static final String DOCUMENTATION_PUBLIC_URL = "https://docs.sonarsource.com/sonarqube/";
 
   private final String documentationBaseUrl;
 
index fee0602d54773454d8c9c99d26808903fd809714..c9ee6a8f72b4a4d6c920320fb222c316ec684a60 100644 (file)
@@ -27,8 +27,8 @@ import java.util.regex.Pattern;
 /**
  * Markdown interprets text in brackets followed by text in parentheses to generate documented links.
  *
- * E.g., the input [See documentation](http://docs.sonarqube.org/display/SONAR) will produce
- * {@literal<a href="http://docs.sonarqube.org/display/SONAR">}See documentation{@literal</a>}
+ * E.g., the input [See documentation](http://docs.sonarsource.com/sonarqube/display/SONAR) will produce
+ * {@literal<a href="http://docs.sonarsource.com/sonarqube/display/SONAR">}See documentation{@literal</a>}
  */
 class HtmlLinkChannel extends RegexChannel<MarkdownOutput> {
 
index 1476b589ac4146585d1c4dc96fe81f65ae2e94b8..be76487e9f936bc4094616c714be48b3ee652d14 100644 (file)
@@ -39,8 +39,8 @@ public class MarkdownTest {
 
   @Test
   public void shouldDecorateDocumentedLink() {
-    assertThat(Markdown.convertToHtml("For more details, please [check online documentation](http://docs.sonarqube.org/display/SONAR)."))
-        .isEqualTo("For more details, please <a href=\"http://docs.sonarqube.org/display/SONAR\" target=\"_blank\" rel=\"noopener noreferrer\">check online documentation</a>.");
+    assertThat(Markdown.convertToHtml("For more details, please [check online documentation](http://docs.sonarsource.com/sonarqube/display/SONAR)."))
+        .isEqualTo("For more details, please <a href=\"http://docs.sonarsource.com/sonarqube/display/SONAR\" target=\"_blank\" rel=\"noopener noreferrer\">check online documentation</a>.");
   }
 
 
index 5768377de8e01ed37bd36aef3b9accc6ce4a1d15..1de4988f3b35bd96f9ac6bc97a64f6727dd8ef82 100644 (file)
@@ -103,7 +103,7 @@ public class DefaultActiveRulesLoader implements ActiveRulesLoader {
       ActiveList activeList = actives.get(r.getKey());
       if (activeList == null) {
         throw MessageException.of("Elasticsearch indices have become inconsistent. Consider re-indexing. " +
-          "Check documentation for more information https://docs.sonarqube.org/latest/setup/troubleshooting");
+          "Check documentation for more information https://docs.sonarsource.com/sonarqube/latest/setup/troubleshooting");
       }
       Active active = activeList.getActiveList(0);
 
index 60b19337d23d40b69429b2a681d09388f38794c3..32bb1fb2d231d8128f1e14cc34bc98d175fd8b55 100644 (file)
@@ -98,7 +98,7 @@ public class DefaultActiveRulesLoaderTest {
     assertThatThrownBy(() -> loader.load("c+-test_c+-values-17445"))
       .isInstanceOf(MessageException.class)
       .hasMessage("Elasticsearch indices have become inconsistent. Consider re-indexing. " +
-        "Check documentation for more information https://docs.sonarqube.org/latest/setup/troubleshooting");
+        "Check documentation for more information https://docs.sonarsource.com/sonarqube/latest/setup/troubleshooting");
   }
 
   private String urlOfPage(int page) {