mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-31 23:40:39 +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.
|
||||
*/
|
||||
|
||||
const eta = require('eta');
|
||||
const redirectPageTemplate = require('./template/redirectPage.html.template');
|
||||
import * as eta from 'eta';
|
||||
import redirectPageTemplate from './templates/redirectPage.template.html';
|
||||
|
||||
type CreateRedirectPageOptions = {
|
||||
toUrl: string;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
module.exports = `
|
||||
export default `
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
|
@ -21,7 +21,12 @@ module.exports = {
|
|||
},
|
||||
themes: ['@docusaurus/theme-live-codeblock'],
|
||||
plugins: [
|
||||
['@docusaurus/plugin-client-redirects', {}],
|
||||
[
|
||||
'@docusaurus/plugin-client-redirects',
|
||||
{
|
||||
fromExtensions: ['html'],
|
||||
},
|
||||
],
|
||||
[
|
||||
'@docusaurus/plugin-ideal-image',
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue