aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-markdown
diff options
context:
space:
mode:
authorWouter Admiraal <wouter.admiraal@sonarsource.com>2023-08-24 10:00:50 +0200
committersonartech <sonartech@sonarsource.com>2023-08-24 20:03:09 +0000
commitc2b021b216ce2c1d80dfa3aec3acf2ee44afa375 (patch)
tree24b4f2929ebc9daa2d8eecc12c8e752a1babc613 /sonar-markdown
parente57493de682303e7a30fc9dbbb97297a7e47c337 (diff)
downloadsonarqube-c2b021b216ce2c1d80dfa3aec3acf2ee44afa375.tar.gz
sonarqube-c2b021b216ce2c1d80dfa3aec3acf2ee44afa375.zip
SONAR-19761 Change documentation URL
Diffstat (limited to 'sonar-markdown')
-rw-r--r--sonar-markdown/src/main/java/org/sonar/markdown/HtmlLinkChannel.java4
-rw-r--r--sonar-markdown/src/test/java/org/sonar/markdown/MarkdownTest.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/sonar-markdown/src/main/java/org/sonar/markdown/HtmlLinkChannel.java b/sonar-markdown/src/main/java/org/sonar/markdown/HtmlLinkChannel.java
index fee0602d547..c9ee6a8f72b 100644
--- a/sonar-markdown/src/main/java/org/sonar/markdown/HtmlLinkChannel.java
+++ b/sonar-markdown/src/main/java/org/sonar/markdown/HtmlLinkChannel.java
@@ -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> {
diff --git a/sonar-markdown/src/test/java/org/sonar/markdown/MarkdownTest.java b/sonar-markdown/src/test/java/org/sonar/markdown/MarkdownTest.java
index 1476b589ac4..be76487e9f9 100644
--- a/sonar-markdown/src/test/java/org/sonar/markdown/MarkdownTest.java
+++ b/sonar-markdown/src/test/java/org/sonar/markdown/MarkdownTest.java
@@ -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>.");
}