Skip to content

Commit

Permalink
misc: add v2 runme demo to README (#2811)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
belokonm and MishaJexia authored May 30, 2020
1 parent ce4b018 commit 374eba7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .runme/Dockerfile.runme
Original file line number Diff line number Diff line change
@@ -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 changes: 10 additions & 0 deletions .runme/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 1.0
publish: app
services:
app:
build:
type: dockerfile
config: ./.runme/Dockerfile.runme
ports:
- container: 80
public: 80
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 374eba7

Please sign in to comment.