2
1
Fork 0
quickshell-docs/Justfile

77 lines
5.6 KiB
Makefile
Raw Normal View History

2024-03-09 14:26:27 +00:00
typegen_bin := env_var_or_default('TYPEGEN', './typegen/target/debug/typegen')
src_path := env_var_or_default('SRC_PATH', '../src')
build_typegen := if typegen_bin == './typegen/target/debug/typegen' { "true" } else { "false" }
2024-02-12 12:07:01 +00:00
clean:
2024-03-09 14:26:27 +00:00
rm -rf public
2024-02-12 12:07:01 +00:00
rm -rf build
2024-02-26 08:57:10 +00:00
rm -rf data/modules/Quickshell
rm -rf content/docs/types/Quickshell
2024-03-03 09:58:33 +00:00
rm -rf data/modules/Quickshell.Io
rm -rf content/docs/types/Quickshell.Io
2024-02-26 08:57:10 +00:00
rm -rf data/modules/Quickshell.Wayland
rm -rf content/docs/types/Quickshell.Wayland
2024-05-01 09:51:54 +00:00
rm -rf data/modules/Quickshell.DBusMenu
rm -rf content/docs/types/Quickshell.DBusMenu
rm -rf data/modules/Quickshell.Services.SystemTray
rm -rf content/docs/types/Quickshell.Services.SystemTray
2024-07-02 03:55:05 +00:00
rm -rf data/modules/Quickshell.Services.Pipewire
rm -rf content/docs/types/Quickshell.Services.Pipewire
2024-05-21 11:11:47 +00:00
rm -rf data/modules/Quickshell.Services.Mpris
rm -rf content/docs/types/Quickshell.Services.Mpris
2024-06-18 01:37:30 +00:00
rm -rf data/modules/Quickshell.Services.Pam
rm -rf content/docs/types/Quickshell.Services.Pam
2024-06-20 22:40:41 +00:00
rm -rf data/modules/Quickshell.Services.Greetd
rm -rf content/docs/types/Quickshell.Services.Greetd
2024-07-10 19:34:27 +00:00
rm -rf data/modules/Quickshell.Services.UPower
rm -rf content/docs/types/Quickshell.Services.UPower
2024-07-12 07:52:38 +00:00
rm -rf data/modules/Quickshell.Services.Notifications
rm -rf content/docs/types/Quickshell.Services.Notifications
rm -rf data/modules/Quickshell.Hyprland
rm -rf content/docs/types/Quickshell.Hyprland
2024-11-24 13:08:50 +00:00
rm -rf data/modules/Quickshell.I3
rm -rf content/docs/types/Quickshell.I3
2024-09-15 09:21:37 +00:00
rm -rf data/modules/Quickshell.Widgets
rm -rf content/docs/types/Quickshell.Widgets
2024-02-12 12:07:01 +00:00
2024-03-09 14:26:27 +00:00
buildtypegen:
({{build_typegen}} && cd typegen && cargo build) || true
typedocs: clean buildtypegen
2024-02-12 12:07:01 +00:00
mkdir -p build/types/types
2024-03-09 14:26:27 +00:00
{{typegen_bin}} gentypes {{src_path}}/core/module.md build/types/types/Quickshell.json
{{typegen_bin}} gentypes {{src_path}}/io/module.md build/types/types/Quickshell.Io.json
{{typegen_bin}} gentypes {{src_path}}/wayland/module.md build/types/types/Quickshell.Wayland.json
2024-04-30 08:28:39 +00:00
{{typegen_bin}} gentypes {{src_path}}/dbus/dbusmenu/module.md build/types/types/Quickshell.DBusMenu.json
{{typegen_bin}} gentypes {{src_path}}/services/status_notifier/module.md build/types/types/Quickshell.Services.SystemTray.json
2024-07-02 03:55:05 +00:00
{{typegen_bin}} gentypes {{src_path}}/services/pipewire/module.md build/types/types/Quickshell.Services.Pipewire.json
2024-05-21 11:11:47 +00:00
{{typegen_bin}} gentypes {{src_path}}/services/mpris/module.md build/types/types/Quickshell.Services.Mpris.json
2024-06-18 01:37:30 +00:00
{{typegen_bin}} gentypes {{src_path}}/services/pam/module.md build/types/types/Quickshell.Services.Pam.json
2024-06-20 22:40:41 +00:00
{{typegen_bin}} gentypes {{src_path}}/services/greetd/module.md build/types/types/Quickshell.Services.Greetd.json
2024-07-10 19:34:27 +00:00
{{typegen_bin}} gentypes {{src_path}}/services/upower/module.md build/types/types/Quickshell.Services.UPower.json
2024-07-12 07:52:38 +00:00
{{typegen_bin}} gentypes {{src_path}}/services/notifications/module.md build/types/types/Quickshell.Services.Notifications.json
{{typegen_bin}} gentypes {{src_path}}/wayland/hyprland/module.md build/types/types/Quickshell.Hyprland.json
2024-11-24 13:08:50 +00:00
{{typegen_bin}} gentypes {{src_path}}/x11/i3/module.md build/types/types/Quickshell.I3.json
2024-09-15 09:21:37 +00:00
{{typegen_bin}} gentypes {{src_path}}/widgets/module.md build/types/types/Quickshell.Widgets.json
2024-03-09 14:26:27 +00:00
sh -c '{{typegen_bin}} gendocs {{src_path}}/core/module.md data/modules/Quickshell content/docs/types/Quickshell types/* build/types/types/*'
sh -c '{{typegen_bin}} gendocs {{src_path}}/io/module.md data/modules/Quickshell.Io content/docs/types/Quickshell.Io types/* build/types/types/*'
sh -c '{{typegen_bin}} gendocs {{src_path}}/wayland/module.md data/modules/Quickshell.Wayland content/docs/types/Quickshell.Wayland types/* build/types/types/*'
2024-04-30 08:28:39 +00:00
sh -c '{{typegen_bin}} gendocs {{src_path}}/dbus/dbusmenu/module.md data/modules/Quickshell.DBusMenu content/docs/types/Quickshell.DBusMenu types/* build/types/types/*'
sh -c '{{typegen_bin}} gendocs {{src_path}}/services/status_notifier/module.md data/modules/Quickshell.Services.SystemTray content/docs/types/Quickshell.Services.SystemTray types/* build/types/types/*'
2024-07-02 03:55:05 +00:00
sh -c '{{typegen_bin}} gendocs {{src_path}}/services/pipewire/module.md data/modules/Quickshell.Services.Pipewire content/docs/types/Quickshell.Services.Pipewire types/* build/types/types/*'
2024-05-21 11:11:47 +00:00
sh -c '{{typegen_bin}} gendocs {{src_path}}/services/mpris/module.md data/modules/Quickshell.Services.Mpris content/docs/types/Quickshell.Services.Mpris types/* build/types/types/*'
2024-06-18 01:37:30 +00:00
sh -c '{{typegen_bin}} gendocs {{src_path}}/services/pam/module.md data/modules/Quickshell.Services.Pam content/docs/types/Quickshell.Services.Pam types/* build/types/types/*'
2024-06-20 22:40:41 +00:00
sh -c '{{typegen_bin}} gendocs {{src_path}}/services/greetd/module.md data/modules/Quickshell.Services.Greetd content/docs/types/Quickshell.Services.Greetd types/* build/types/types/*'
2024-07-10 19:34:27 +00:00
sh -c '{{typegen_bin}} gendocs {{src_path}}/services/upower/module.md data/modules/Quickshell.Services.UPower content/docs/types/Quickshell.Services.UPower types/* build/types/types/*'
2024-07-12 07:52:38 +00:00
sh -c '{{typegen_bin}} gendocs {{src_path}}/services/notifications/module.md data/modules/Quickshell.Services.Notifications content/docs/types/Quickshell.Services.Notifications types/* build/types/types/*'
sh -c '{{typegen_bin}} gendocs {{src_path}}/wayland/hyprland/module.md data/modules/Quickshell.Hyprland content/docs/types/Quickshell.Hyprland types/* build/types/types/*'
2024-11-24 13:08:50 +00:00
sh -c '{{typegen_bin}} gendocs {{src_path}}/x11/i3/module.md data/modules/Quickshell.I3 content/docs/types/Quickshell.I3 types/* build/types/types/*'
2024-09-15 09:21:37 +00:00
sh -c '{{typegen_bin}} gendocs {{src_path}}/widgets/module.md data/modules/Quickshell.Widgets content/docs/types/Quickshell.Widgets types/* build/types/types/*'
2024-02-12 12:07:01 +00:00
serve: typedocs
hugo server --buildDrafts --disableFastRender
2024-03-09 14:26:27 +00:00
build: typedocs
hugo