Skip to content

Commit

Permalink
[Docs] Fix API reference not displayed (#2177)
Browse files Browse the repository at this point in the history
This PR fixes the issue of the API reference not displayed in the documentation.
  • Loading branch information
MasterJH5574 authored Apr 19, 2024
1 parent 9216467 commit a50fae0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@ tlcpack-sphinx-addon==0.2.2
sphinxcontrib_httpdomain==1.8.1
sphinxcontrib-napoleon==0.7
sphinx-reredirects==0.1.2
shortuuid
pydantic
uvicorn
fastapi
--find-links https://mlc.ai/wheels
mlc-ai-nightly
8 changes: 8 additions & 0 deletions scripts/build_mlc_for_docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
set -euxo pipefail

mkdir -p build
cd build
cmake ..
make -j$(nproc)
cd -
1 change: 1 addition & 0 deletions scripts/build_site.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
set -euxo pipefail

export PYTHONPATH=$PWD/python
cd docs && make html && cd ..

cd site && jekyll b && cd ..
Expand Down
1 change: 1 addition & 0 deletions scripts/gh_deploy_site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

set -euxo pipefail

scripts/build_mlc_for_docs.sh
scripts/build_site.sh

git fetch
Expand Down

0 comments on commit a50fae0

Please sign in to comment.