Skip to content

Commit

Permalink
Update deploy docs github action to auto-generate docs (#877)
Browse files Browse the repository at this point in the history
* 📝 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
  • Loading branch information
Etesam913 committed Aug 1, 2022
1 parent f1b6766 commit 375f24d
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/test-deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/web/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Website
# Mephisto Docs Website

This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.

Expand Down

0 comments on commit 375f24d

Please sign in to comment.