Skip to content

Commit 892b9c1

Browse files
Merge pull request #50 from DHTMLX/remove-disqus
[dev] remove disqus comment block from docs
2 parents 51a4906 + 03fd270 commit 892b9c1

File tree

4 files changed

+3
-50
lines changed

4 files changed

+3
-50
lines changed

docusaurus.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const AT_NOTATION_KEYS = {
1414

1515
const COMPONENTS_PATH = '@site/src/components';
1616

17-
let components = { Disqus: "Disqus" };
17+
let components = { };
1818
let metaDescription = '';
1919

2020
const wrapDataWithComponent = (data, componentName) => {
@@ -104,7 +104,7 @@ const onAfterDataTransformation = (data) => {
104104
const imports = `import { ${allAvailableComponents.join(', ')} } from '${COMPONENTS_PATH}';\n\n`;
105105
const isTitles = /---((?:\r?\n|\r)|.)+?---/.test(transformedData);
106106
transformedData = isTitles
107-
? (transformedData.replace(/^(---((?:\s*\n)|.)+?---)/, `$1\n\n${imports}`) + "\n\n<Disqus />")
107+
? transformedData.replace(/^(---((?:\s*\n)|.)+?---)/, `$1\n\n${imports}`)
108108
: imports + transformedData;
109109
}
110110

@@ -118,7 +118,7 @@ const onAfterDataTransformation = (data) => {
118118
});
119119
}
120120

121-
components = { Disqus: "Disqus" };
121+
components = { };
122122
metaDescription = '';
123123

124124
return transformedData;

src/components/Disqus/index.jsx

Lines changed: 0 additions & 34 deletions
This file was deleted.

src/components/Disqus/styles.module.scss

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/components/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import Disqus from "./Disqus";
21
import Short from "./Short";
32

43
export {
5-
Disqus,
64
Short
75
};

0 commit comments

Comments
 (0)