@@ -154,6 +154,13 @@ cmd = "cargo check --manifest-path external/raygeo/Cargo.toml"
154154[tasks .raygeo-test ]
155155cmd = " cargo test --manifest-path external/raygeo/crates/raygeo/Cargo.toml && pytest -v external/raygeo/tests/"
156156
157+ [tasks .raygeo-clean-stubs ]
158+ cmd = " rm -rf external/raygeo/raygeo-stubs website/docs/developer/raygeo-api/*.md"
159+
160+ [tasks .raygeo-gen-stubs ]
161+ cmd = " mkdir -p external/raygeo/raygeo-stubs && python3 -c 'import raygeo; raygeo.generate_stubs(\" external/raygeo/raygeo-stubs\" )'"
162+ depends-on = [" raygeo-clean-stubs" , " raygeo-build" ]
163+
157164[tasks .build-deb ]
158165# Builds a binary .deb package for local installation and testing.
159166cmd = " bash scripts/build-deb.sh"
@@ -171,11 +178,18 @@ pyright = ">=1.1.409,<2"
171178
172179# Tasks for developing and generating the website
173180[feature .website .tasks ]
181+ site-gen-api = " python3 scripts/update_api_docs.py"
174182site-install = { cmd = " npm install" , cwd = " website" }
175- site-serve = { cmd = " npm start" , cwd = " website" }
176- site-build = { cmd = " npm run build" , cwd = " website" }
183+ site-serve = { cmd = " npm start" , cwd = " website" , depends-on = [ " update-api-docs " ] }
184+ site-build = { cmd = " npm run build" , cwd = " website" , depends-on = [ " site-gen-api " ] }
177185site-deploy = " bash scripts/deploy_website.sh"
178186
187+ [tasks .update-stubs ]
188+ cmd = " python3 scripts/update_stubs.py"
189+
190+ [tasks .update-api-docs ]
191+ cmd = " python3 scripts/update_api_docs.py"
192+
179193# Tasks for video processing
180194[feature .video-tools .tasks ]
181195process-audio = " python3 scripts/media/process_audio.py"
0 commit comments