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:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
build-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
build:
|
||||
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
|
||||
@ -22,9 +27,37 @@ jobs:
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install mkdocs-material
|
||||
pip install mkdocstrings[python]
|
||||
pip install mkdocs-git-revision-date-localized-plugin
|
||||
pip install --upgrade pip
|
||||
pip install mkdocs-material mkdocstrings[python] 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
|
||||
|
||||
@ -14,7 +14,7 @@ hide:
|
||||
[](https://huggingface.co/spaces/HorizonRobotics/EmbodiedGen-Gallery-Explorer)
|
||||
[](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"/>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user