let newContent = cutSonarCloudContent(content);
newContent = removeRemainingContentTags(newContent);
newContent = handleIncludes(newContent, fileNode);
+ newContent = replaceInstanceTag(newContent);
return newContent;
}
});
}
+function replaceInstanceTag(content) {
+ return content.replace(/{instance}/gi, 'SonarQube');
+}
+
exports.createFilePath = createFilePath;
exports.createRemoteFileNode = createRemoteFileNode;
exports.loadNodeContent = loadNodeContent;
htmlPageContent = createAnchorForHeadings(htmlPageContent, realHeadingsList);
htmlPageContent = replaceDynamicLinks(htmlPageContent);
htmlPageContent = replaceImageLinks(htmlPageContent);
- htmlPageContent = replaceInstanceTag(htmlPageContent);
return (
<>
}
`;
-function replaceInstanceTag(content: string) {
- return content.replace(/{instance}/gi, 'SonarQube');
-}
-
function replaceImageLinks(content: string) {
const version = process.env.GATSBY_DOCS_VERSION || '';
if (version !== '') {