mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 15:47:23 +02:00
Prettier fix for ce338fff64
This commit is contained in:
parent
ce338fff64
commit
665b2da09f
2 changed files with 13 additions and 5 deletions
|
@ -452,7 +452,11 @@ function execute() {
|
|||
const targetFile = join(buildDir, parts[1]);
|
||||
const str = renderToStaticMarkup(
|
||||
<Site language="en" config={siteConfig}>
|
||||
<div dangerouslySetInnerHTML={{__html: fs.readFileSync(file, { encoding: "utf8" })}} />
|
||||
<div
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: fs.readFileSync(file, {encoding: 'utf8'}),
|
||||
}}
|
||||
/>
|
||||
</Site>
|
||||
);
|
||||
|
||||
|
|
|
@ -372,17 +372,21 @@ function execute(port) {
|
|||
)
|
||||
) {
|
||||
if (siteConfig.wrapPagesHTML) {
|
||||
removeModuleAndChildrenFromCache("../core/Site.js");
|
||||
const Site = require("../core/Site.js");
|
||||
removeModuleAndChildrenFromCache('../core/Site.js');
|
||||
const Site = require('../core/Site.js');
|
||||
const str = renderToStaticMarkup(
|
||||
<Site language="en" config={siteConfig}>
|
||||
<div dangerouslySetInnerHTML={{__html: fs.readFileSync(htmlFile, { encoding: "utf8" })}} />
|
||||
<div
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: fs.readFileSync(htmlFile, {encoding: 'utf8'}),
|
||||
}}
|
||||
/>
|
||||
</Site>
|
||||
);
|
||||
|
||||
res.send(str);
|
||||
} else {
|
||||
res.send(fs.readFileSync(htmlFile, { encoding: "utf8" }));
|
||||
res.send(fs.readFileSync(htmlFile, {encoding: 'utf8'}));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue