mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-01 16:00:29 +02:00
misc: add v2 runme demo to README (#2811)
* added demo runner on runme.io * change to readme, added button indside * Change to version 2 of docusaurus * V2 (#1) * try v2 * port change * put path to folder * change running string Co-authored-by: Cloud User <belokonm@gmail.com> Co-authored-by: MishaJexia <44843719+MishaJexia@users.noreply.github.com>
This commit is contained in:
parent
ce4b0187aa
commit
374eba7474
3 changed files with 20 additions and 0 deletions
6
.runme/Dockerfile.runme
Normal file
6
.runme/Dockerfile.runme
Normal file
|
@ -0,0 +1,6 @@
|
|||
FROM node:12.10.0
|
||||
WORKDIR /app
|
||||
RUN npx @docusaurus/init@next init website classic
|
||||
RUN npm install http-server -g
|
||||
RUN cd website && npm run build
|
||||
ENTRYPOINT http-server ./website/build/ -p 80 -a 0.0.0.0
|
10
.runme/config.yaml
Normal file
10
.runme/config.yaml
Normal file
|
@ -0,0 +1,10 @@
|
|||
version: 1.0
|
||||
publish: app
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
type: dockerfile
|
||||
config: ./.runme/Dockerfile.runme
|
||||
ports:
|
||||
- container: 80
|
||||
public: 80
|
|
@ -32,6 +32,10 @@ Docusaurus is available as the [`docusaurus` package](https://www.npmjs.com/pack
|
|||
|
||||
We have also released the [`docusaurus-init` package](https://www.npmjs.com/package/docusaurus-init) to make [getting started](https://docusaurus.io/docs/en/installation/) with Docusaurus even easier.
|
||||
|
||||
## Demo
|
||||
|
||||
[](https://runme.io/run?app_id=0dd80306-47bb-4e80-95dc-dc95eb05d3fd)- Click on button to see quick-start demo
|
||||
|
||||
## Contributing
|
||||
|
||||
We've released Docusaurus because it helps us better scale and supports the many OSS projects at Facebook. We hope that other organizations can benefit from the project. We are thankful for any contributions from the community.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue