Skip to content

Commit 07fa448

Browse files
improve the make_docs.sh script
1 parent 9b48e57 commit 07fa448

File tree

1 file changed

+39
-2
lines changed

1 file changed

+39
-2
lines changed

make_docs.sh

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,59 @@
11
#!/usr/bin/env bash
22

3+
echo "building and installing raylib"
4+
cd raylib-c
5+
mkdir build
6+
cd build
7+
cmake -DBUILD_EXAMPLES=off -DINCLUDE_EVERYTHING=on -DSUPPORT_FILEFORMAT_JPG=on -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release ..
8+
make -j2
9+
sudo make install
10+
cd ../..
11+
12+
echo "installing raylib headers to /usr/local/include"
13+
14+
sudo cp ./raylib-c/src/raylib.h /usr/local/include/
15+
sudo cp ./raylib-c/src/rlgl.h /usr/local/include/
16+
sudo cp ./raylib-c/src/raymath.h /usr/local/include/
17+
sudo cp ./raygui/src/raygui.h /usr/local/include/
18+
sudo cp ./physac/src/physac.h /usr/local/include/
19+
20+
echo "building raylib_parser"
21+
322
gcc raylib-c/parser/raylib_parser.c
23+
24+
echo "running parser"
25+
426
./a.out -i raygui/src/raygui.h -o raygui.json -f JSON
527
./a.out -i physac/src/physac.h -o physac.json -f JSON
628
./a.out -i raylib-c/src/raylib.h -o raylib.json -f JSON
729

30+
echo "building raylib_python_cffi"
31+
832
python3 raylib/build.py
933

34+
echo "creating enums.py"
35+
1036
python3 create_enums.py > raylib/enums.py
1137
python3 create_enums.py > dynamic/raylib/enums.py
1238

13-
pip3 install sphinx-autoapi myst_parser sphinx_rtd_theme
39+
40+
echo "creating pyi files"
41+
1442
python3 create_stub_pyray.py > pyray/__init__.pyi
1543
python3 create_enums.py >> pyray/__init__.pyi
1644
cat raylib/colors.py >> pyray/__init__.pyi
1745
python3 create_stub_static.py >raylib/__init__.pyi
1846
cat raylib/colors.py >> raylib/__init__.pyi
47+
48+
49+
echo "installing sphinx modules"
50+
51+
python -m venv venv
52+
source venv/bin/activate
53+
pip3 install sphinx-autoapi myst_parser sphinx_rtd_theme
54+
55+
echo "building docs"
1956
rm -r docs
2057
cd docs-src
2158
make clean ; make html ; mv _build/html/ ../docs/
22-
touch ../docs/.nojekyll
59+
touch ../docs/.nojekyll

0 commit comments

Comments
 (0)