Skip to content

Commit bc537cd

Browse files
committed
[dev] disabling Disqus
1 parent 9d128ce commit bc537cd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docusaurus.config.js

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

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

17-
let components = { Disqus: "Disqus" };
17+
// let components = { Disqus: "Disqus" };
18+
let components = {};
1819
let metaDescription = '';
1920

2021
const wrapDataWithComponent = (data, componentName) => {
@@ -104,7 +105,7 @@ const onAfterDataTransformation = (data) => {
104105
const imports = `import { ${allAvailableComponents.join(', ')} } from '${COMPONENTS_PATH}';\n\n`;
105106
const isTitles = /---((?:\r?\n|\r)|.)+?---/.test(transformedData);
106107
transformedData = isTitles
107-
? (transformedData.replace(/^(---((?:\s*\n)|.)+?---)/, `$1\n\n${imports}`) + "\n\n<Disqus />")
108+
? (transformedData.replace(/^(---((?:\s*\n)|.)+?---)/, `$1\n\n${imports}`))
108109
: imports + transformedData;
109110
}
110111

@@ -118,7 +119,7 @@ const onAfterDataTransformation = (data) => {
118119
});
119120
}
120121

121-
components = { Disqus: "Disqus" };
122+
//components = { Disqus: "Disqus" };
122123
metaDescription = '';
123124

124125
return transformedData;

0 commit comments

Comments
 (0)