mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
fix template import issue
This commit is contained in:
parent
e93b98a242
commit
0c330df5cc
3 changed files with 9 additions and 4 deletions
|
@ -5,8 +5,8 @@
|
||||||
* LICENSE file in the root directory of this source tree.
|
* LICENSE file in the root directory of this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const eta = require('eta');
|
import * as eta from 'eta';
|
||||||
const redirectPageTemplate = require('./template/redirectPage.html.template');
|
import redirectPageTemplate from './templates/redirectPage.template.html';
|
||||||
|
|
||||||
type CreateRedirectPageOptions = {
|
type CreateRedirectPageOptions = {
|
||||||
toUrl: string;
|
toUrl: string;
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* LICENSE file in the root directory of this source tree.
|
* LICENSE file in the root directory of this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module.exports = `
|
export default `
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
|
@ -21,7 +21,12 @@ module.exports = {
|
||||||
},
|
},
|
||||||
themes: ['@docusaurus/theme-live-codeblock'],
|
themes: ['@docusaurus/theme-live-codeblock'],
|
||||||
plugins: [
|
plugins: [
|
||||||
['@docusaurus/plugin-client-redirects', {}],
|
[
|
||||||
|
'@docusaurus/plugin-client-redirects',
|
||||||
|
{
|
||||||
|
fromExtensions: ['html'],
|
||||||
|
},
|
||||||
|
],
|
||||||
[
|
[
|
||||||
'@docusaurus/plugin-ideal-image',
|
'@docusaurus/plugin-ideal-image',
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue