Skip to content

Commit c057cd6

Browse files
committed
📝 Swap ejected DocPage for wrapped DocPage/Layout/Main
1 parent 0decb75 commit c057cd6

File tree

5 files changed

+18
-241
lines changed

5 files changed

+18
-241
lines changed

website/docusaurus.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ module.exports = {
1111
'@docusaurus/preset-classic',
1212
{
1313
docs: {
14-
docLayoutComponent: '../src/theme/DocPageWithBraveWarning',
1514
path: '../docs',
1615
sidebarPath: require.resolve('./sidebars.json'),
1716
showLastUpdateTime: true,
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import type { ComponentProps } from 'react'
2+
import React from 'react'
3+
import Main from '@theme-original/DocPage/Layout/Main'
4+
import type MainType from '@theme-original/DocPage/Layout/Main'
5+
import BraveWarning from './BraveWarning'
6+
7+
type Props = ComponentProps<typeof MainType>
8+
9+
export default function MainWrapper(props: Props): JSX.Element {
10+
return (
11+
<>
12+
<Main {...props}>
13+
<BraveWarning />
14+
{props.children}
15+
</Main>
16+
</>
17+
)
18+
}

website/src/theme/DocPageWithBraveWarning/index.js

Lines changed: 0 additions & 155 deletions
This file was deleted.

website/src/theme/DocPageWithBraveWarning/styles.module.css

Lines changed: 0 additions & 85 deletions
This file was deleted.

0 commit comments

Comments
 (0)