Update make_docs.sh
This commit is contained in:
parent
147b78399c
commit
0dc76191e0
1 changed files with 12 additions and 5 deletions
17
make_docs.sh
17
make_docs.sh
|
@ -1,6 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
|
||||
echo "building and installing raylib"
|
||||
cd raylib-c
|
||||
mkdir build
|
||||
|
@ -32,15 +31,14 @@ echo "running parser"
|
|||
./a.out -i raylib-c/src/external/glfw/include/GLFW/glfw3.h -d GLFWAPI -o glfw3.json -f JSON
|
||||
sed -i "s|\/\*.*,$|,|g" glfw3.json
|
||||
|
||||
|
||||
echo "building raylib_python_cffi"
|
||||
|
||||
python3 raylib/build.py
|
||||
|
||||
echo "creating enums.py"
|
||||
|
||||
python3 create_enums.py > raylib/enums.py
|
||||
python3 create_enums.py > dynamic/raylib/enums.py
|
||||
python3 create_define_consts.py > raylib/defines.py
|
||||
python3 create_define_consts.py > dynamic/raylib/defines.py
|
||||
|
||||
echo "creating defines.py"
|
||||
|
||||
|
@ -56,7 +54,16 @@ cat raylib/colors.py >> pyray/__init__.pyi
|
|||
|
||||
python3 create_stub_static.py >raylib/__init__.pyi
|
||||
cat raylib/colors.py >> raylib/__init__.pyi
|
||||
|
||||
|
||||
echo "installing sphinx modules"
|
||||
|
||||
python -m venv venv
|
||||
source venv/bin/activate
|
||||
pip3 install sphinx-autoapi myst_parser sphinx_rtd_theme
|
||||
|
||||
echo "building docs"
|
||||
rm -r docs
|
||||
cd docs-src
|
||||
make clean ; make html ; mv _build/html/ ../docs/
|
||||
touch ../docs/.nojekyll
|
||||
touch ../docs/.nojekyll
|
||||
|
|
Reference in a new issue