From 375f24d534527c0a7362d99db0c7f8a7db764dfb Mon Sep 17 00:00:00 2001 From: Etesam Date: Mon, 1 Aug 2022 16:42:47 -0400 Subject: [PATCH] Update deploy docs github action to auto-generate docs (#877) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 📝 Added mephisto install to deploy docs action * 📝 Tweaked readme to test deploy docs * 🐛 Fixed path bug with mephisto install * 🐛 Fixed path bug with test deploy docs --- .github/workflows/deploy-docs.yml | 14 +++++++++++++- .github/workflows/test-deploy-docs.yml | 20 ++++++++++++++++++++ docs/web/README.md | 2 +- 3 files changed, 34 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 86304a074..493ccfcb7 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -20,8 +20,20 @@ jobs: with: node-version: 16.x cache: yarn + - uses: actions/setup-python@v2 - - name: Auto Generate Blueprint Docs + - name: 🤖 Install Mephisto + run: | + cd ../../ + pip install -e . + + - name: 🖋 Create data directory + run: mkdir -p ~/mephisto/data + + - name: 📂 Set the data directory + run: mephisto config core.main_data_directory ~/mephisto/data + + - name: 📝 Auto Generate Blueprint Docs run: | cd ../../mephisto/scripts/local_db/gh_actions python auto_generate_blueprint.py diff --git a/.github/workflows/test-deploy-docs.yml b/.github/workflows/test-deploy-docs.yml index 2393ce299..97cebe7d8 100644 --- a/.github/workflows/test-deploy-docs.yml +++ b/.github/workflows/test-deploy-docs.yml @@ -22,6 +22,26 @@ jobs: with: node-version: 16.x cache: yarn + - uses: actions/setup-python@v2 + + - name: 🤖 Install Mephisto + run: | + cd ../../ + pip install -e . + + - name: 🖋 Create data directory + run: mkdir -p ~/mephisto/data + + - name: 📂 Set the data directory + run: mephisto config core.main_data_directory ~/mephisto/data + + - name: 📝 Auto Generate Blueprint Docs + run: | + cd ../../mephisto/scripts/local_db/gh_actions + python auto_generate_blueprint.py + python auto_generate_architect.py + python auto_generate_requester.py + python auto_generate_provider.py - name: Install dependencies run: yarn install --frozen-lockfile diff --git a/docs/web/README.md b/docs/web/README.md index 55d0c3ef4..8dd258d39 100644 --- a/docs/web/README.md +++ b/docs/web/README.md @@ -1,4 +1,4 @@ -# Website +# Mephisto Docs Website This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.