File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -56,12 +56,18 @@ Most changes are reflected live without having to restart the server.
5656
5757To build the website locally, or to test/preview the build process that will run in CI.
5858
59- ``` sh {"id":"01HPS5TSQ025AQBEY5C5R7BQK4","name":"npm-run- build"}
59+ ``` sh {"id":"01HPS5TSQ025AQBEY5C5R7BQK4","name":"build"}
6060npm run build
6161```
6262
6363This command generates static content into the ` build ` directory and can be served using any static contents hosting service.
6464
65+ ### Serve locally
66+
67+ ``` sh {"id":"01HTMQZMYX58ZX7PK297YNYZ36","name":"serve"}
68+ cd build; python -m http.server 9000
69+ ```
70+
6571### Deployment
6672
6773This website is auto-deployed via Vercel's GitHub integration, when your branch is merged into main.
Original file line number Diff line number Diff line change 1+ import BrowserOnly from '@docusaurus/BrowserOnly' ;
12import React , { useEffect , useState } from "react" ;
23import Layout from "@theme/Layout" ;
34
@@ -15,6 +16,16 @@ import {
1516} from "@fortawesome/free-solid-svg-icons" ;
1617import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" ;
1718
19+ export default function ( props ) {
20+ return (
21+ < BrowserOnly fallback = { < div > Loading...</ div > } >
22+ { ( ) => {
23+ return < ExamplesPage { ...props } /> ;
24+ } }
25+ </ BrowserOnly >
26+ ) ;
27+ }
28+
1829function ExampleLayout ( { children } ) {
1930 return (
2031 < Layout >
@@ -28,7 +39,7 @@ function ExampleLayout({ children }) {
2839 )
2940}
3041
31- export default function ExamplesPage ( { examples, example } ) {
42+ function ExamplesPage ( { examples, example } ) {
3243 if ( example ) {
3344 return (
3445 < ExampleLayout >
You can’t perform that action at this time.
0 commit comments