File tree Expand file tree Collapse file tree 4 files changed +3
-50
lines changed
Expand file tree Collapse file tree 4 files changed +3
-50
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const AT_NOTATION_KEYS = {
1414
1515const COMPONENTS_PATH = '@site/src/components' ;
1616
17- let components = { Disqus : "Disqus" } ;
17+ let components = { } ;
1818let metaDescription = '' ;
1919
2020const 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 ;
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- import Disqus from "./Disqus" ;
21import Short from "./Short" ;
32
43export {
5- Disqus ,
64 Short
75} ;
You can’t perform that action at this time.
0 commit comments