fix(build): Fix mkdocs action build workflow. (#51)
This commit is contained in:
parent
7a391771ef
commit
84247ba52b
45
.github/workflows/deploy_docs.yml
vendored
45
.github/workflows/deploy_docs.yml
vendored
@ -4,16 +4,21 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-deploy:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
@ -22,9 +27,37 @@ jobs:
|
|||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install mkdocs-material
|
pip install --upgrade pip
|
||||||
pip install mkdocstrings[python]
|
pip install mkdocs-material mkdocstrings[python] mkdocs-git-revision-date-localized-plugin
|
||||||
pip install mkdocs-git-revision-date-localized-plugin
|
|
||||||
|
|
||||||
- name: Deploy documentation
|
- name: Set PYTHONPATH
|
||||||
|
run: echo "PYTHONPATH=$(pwd)" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Build docs
|
||||||
|
run: mkdocs build
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
needs: build
|
||||||
|
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: '3.10'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
pip install --upgrade pip
|
||||||
|
pip install mkdocs-material mkdocstrings[python] mkdocs-git-revision-date-localized-plugin
|
||||||
|
|
||||||
|
- name: Set PYTHONPATH
|
||||||
|
run: echo "PYTHONPATH=$(pwd)" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Deploy docs
|
||||||
run: mkdocs gh-deploy --force
|
run: mkdocs gh-deploy --force
|
||||||
|
|||||||
@ -14,7 +14,7 @@ hide:
|
|||||||
[](https://huggingface.co/spaces/HorizonRobotics/EmbodiedGen-Gallery-Explorer)
|
[](https://huggingface.co/spaces/HorizonRobotics/EmbodiedGen-Gallery-Explorer)
|
||||||
[](https://mp.weixin.qq.com/s/HH1cPBhK2xcDbyCK4BBTbw)
|
[](https://mp.weixin.qq.com/s/HH1cPBhK2xcDbyCK4BBTbw)
|
||||||
|
|
||||||
*EmbodiedGen*: Towards a Generative 3D World Engine for Embodied Intelligence
|
*EmbodiedGen*: Towards a Generative 3D World Engine for Embodied Intelligence.
|
||||||
|
|
||||||
<img src="assets/overall.jpg" alt="Overall Framework" width="700"/>
|
<img src="assets/overall.jpg" alt="Overall Framework" width="700"/>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user