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:
belokonm 2020-05-30 07:36:42 +02:00 committed by GitHub
parent ce4b0187aa
commit 374eba7474
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 0 deletions

6
.runme/Dockerfile.runme Normal file
View 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
View file

@ -0,0 +1,10 @@
version: 1.0
publish: app
services:
app:
build:
type: dockerfile
config: ./.runme/Dockerfile.runme
ports:
- container: 80
public: 80

View file

@ -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
[![Runme](https://runme.io/static/button.svg)](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.