-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a REVIEW env variable for future PR use.
- Loading branch information
1 parent
be29e06
commit 165a24c
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from 'react'; | ||
import Admonition from '@theme/Admonition'; | ||
import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; | ||
|
||
export default function ForReview() { | ||
const {siteConfig} = useDocusaurusContext(); | ||
return <> | ||
{process.env.REVIEW ? <div style={{margin:"10px"}}> | ||
<Admonition title="FOR REVIEW" type="caution"> | ||
<p>This is a review copy version of {siteConfig.title}</p> | ||
</Admonition> | ||
</div> : <></>} | ||
</> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react'; | ||
import MDXContent from '@theme-original/MDXContent'; | ||
import Admonition from '@theme/Admonition'; | ||
import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; | ||
import ForReview from "../../components/ForReview"; | ||
|
||
export default function MDXContentWrapper(props) { | ||
const {siteConfig} = useDocusaurusContext(); | ||
|
||
return ( | ||
<> | ||
<ForReview/> | ||
<MDXContent {...props} /> | ||
</> | ||
); | ||
} |