Add Makefile target to create the documentation for skia-safe
@@ -64,3 +64,16 @@ clean-packages:
wait:
@echo "published a package, Waiting for crates.io to catch up before publishing the next"
sleep 10
+
+.PHONY: update-doc
+update-doc:
+ cargo clean
+ rm -rf rust-skia.github.io
+ git clone git@github.com:rust-skia/rust-skia.github.io.git
+ cd skia-safe && cargo doc --no-deps --lib --features gl,vulkan,d3d,textlayout
+ cp -r target/doc rust-skia.github.io/doc
+ cd rust-skia.github.io && git add --all
+ cd rust-skia.github.io && git commit -m"Auto-Update of /doc" || true
+ cd rust-skia.github.io && git push origin master
+ rm -rf rust-skia.github.io
+
