From 374eba7474dbdab6c2bb12ff38bed0d0e5633191 Mon Sep 17 00:00:00 2001 From: belokonm Date: Sat, 30 May 2020 07:36:42 +0200 Subject: [PATCH] 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 Co-authored-by: MishaJexia <44843719+MishaJexia@users.noreply.github.com> --- .runme/Dockerfile.runme | 6 ++++++ .runme/config.yaml | 10 ++++++++++ README.md | 4 ++++ 3 files changed, 20 insertions(+) create mode 100644 .runme/Dockerfile.runme create mode 100644 .runme/config.yaml diff --git a/.runme/Dockerfile.runme b/.runme/Dockerfile.runme new file mode 100644 index 0000000000..46c3e5f156 --- /dev/null +++ b/.runme/Dockerfile.runme @@ -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 diff --git a/.runme/config.yaml b/.runme/config.yaml new file mode 100644 index 0000000000..7a40b926eb --- /dev/null +++ b/.runme/config.yaml @@ -0,0 +1,10 @@ +version: 1.0 +publish: app +services: + app: + build: + type: dockerfile + config: ./.runme/Dockerfile.runme + ports: + - container: 80 + public: 80 \ No newline at end of file diff --git a/README.md b/README.md index f033410043..90ca83af06 100644 --- a/README.md +++ b/README.md @@ -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.