22 lines
1.1 KiB
Makefile
22 lines
1.1 KiB
Makefile
clean:
|
|
rm -rf build
|
|
rm -rf data/modules/Quickshell
|
|
rm -rf content/docs/types/Quickshell
|
|
rm -rf data/modules/Quickshell.Io
|
|
rm -rf content/docs/types/Quickshell.Io
|
|
rm -rf data/modules/Quickshell.Wayland
|
|
rm -rf content/docs/types/Quickshell.Wayland
|
|
|
|
typedocs: clean
|
|
cd typegen && cargo build
|
|
mkdir -p build/types/types
|
|
./typegen/target/debug/typegen gentypes ../src/core/module.md build/types/types/Quickshell.json
|
|
./typegen/target/debug/typegen gentypes ../src/io/module.md build/types/types/Quickshell.Io.json
|
|
./typegen/target/debug/typegen gentypes ../src/wayland/module.md build/types/types/Quickshell.Wayland.json
|
|
sh -c './typegen/target/debug/typegen gendocs ../src/core/module.md data/modules/Quickshell content/docs/types/Quickshell types/* build/types/types/*'
|
|
sh -c './typegen/target/debug/typegen gendocs ../src/io/module.md data/modules/Quickshell.Io content/docs/types/Quickshell.Io types/* build/types/types/*'
|
|
sh -c './typegen/target/debug/typegen gendocs ../src/wayland/module.md data/modules/Quickshell.Wayland content/docs/types/Quickshell.Wayland types/* build/types/types/*'
|
|
|
|
serve: typedocs
|
|
hugo server --buildDrafts --disableFastRender
|