diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2019-01-21 16:49:05 +0100 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-01-22 20:21:02 +0100 |
commit | 266070dc7726da6f7fe4491adcd651a0eff34b7a (patch) | |
tree | bf447201702c9e264bda1aa920bc46eea419f752 /server/sonar-docs/src/templates | |
parent | b1e8eaffc8569fcd1005a4a6f5d2768649c06c0c (diff) | |
download | sonarqube-266070dc7726da6f7fe4491adcd651a0eff34b7a.tar.gz sonarqube-266070dc7726da6f7fe4491adcd651a0eff34b7a.zip |
SONAR-11644 Swap {instance} with SonarQube in sonar-docs search result
Diffstat (limited to 'server/sonar-docs/src/templates')
-rw-r--r-- | server/sonar-docs/src/templates/page.tsx | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/server/sonar-docs/src/templates/page.tsx b/server/sonar-docs/src/templates/page.tsx index c5d2ecd6c11..11b25083c3f 100644 --- a/server/sonar-docs/src/templates/page.tsx +++ b/server/sonar-docs/src/templates/page.tsx @@ -71,7 +71,6 @@ export default class Page extends React.PureComponent<Props> { htmlPageContent = createAnchorForHeadings(htmlPageContent, realHeadingsList); htmlPageContent = replaceDynamicLinks(htmlPageContent); htmlPageContent = replaceImageLinks(htmlPageContent); - htmlPageContent = replaceInstanceTag(htmlPageContent); return ( <> @@ -126,10 +125,6 @@ export const query = graphql` } `; -function replaceInstanceTag(content: string) { - return content.replace(/{instance}/gi, 'SonarQube'); -} - function replaceImageLinks(content: string) { const version = process.env.GATSBY_DOCS_VERSION || ''; if (version !== '') { |