feat(docs): update schema.json + mkdocs cli pages

This commit is contained in:
LGUG2Z
2024-04-04 14:34:56 -07:00
parent c05e9ea089
commit f2c4dadcde
13 changed files with 497 additions and 185 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ Usage: komorebic.exe float-rule <IDENTIFIER> <ID>
Arguments: Arguments:
<IDENTIFIER> <IDENTIFIER>
[possible values: exe, class, title] [possible values: exe, class, title, path]
<ID> <ID>
Identifier as a string Identifier as a string
@@ -7,7 +7,7 @@ Usage: komorebic.exe identify-border-overflow-application <IDENTIFIER> <ID>
Arguments: Arguments:
<IDENTIFIER> <IDENTIFIER>
[possible values: exe, class, title] [possible values: exe, class, title, path]
<ID> <ID>
Identifier as a string Identifier as a string
+1 -1
View File
@@ -7,7 +7,7 @@ Usage: komorebic.exe identify-layered-application <IDENTIFIER> <ID>
Arguments: Arguments:
<IDENTIFIER> <IDENTIFIER>
[possible values: exe, class, title] [possible values: exe, class, title, path]
<ID> <ID>
Identifier as a string Identifier as a string
@@ -7,7 +7,7 @@ Usage: komorebic.exe identify-object-name-change-application <IDENTIFIER> <ID>
Arguments: Arguments:
<IDENTIFIER> <IDENTIFIER>
[possible values: exe, class, title] [possible values: exe, class, title, path]
<ID> <ID>
Identifier as a string Identifier as a string
+1 -1
View File
@@ -7,7 +7,7 @@ Usage: komorebic.exe identify-tray-application <IDENTIFIER> <ID>
Arguments: Arguments:
<IDENTIFIER> <IDENTIFIER>
[possible values: exe, class, title] [possible values: exe, class, title, path]
<ID> <ID>
Identifier as a string Identifier as a string
+1 -1
View File
@@ -7,7 +7,7 @@ Usage: komorebic.exe initial-named-workspace-rule <IDENTIFIER> <ID> <WORKSPACE>
Arguments: Arguments:
<IDENTIFIER> <IDENTIFIER>
[possible values: exe, class, title] [possible values: exe, class, title, path]
<ID> <ID>
Identifier as a string Identifier as a string
+1 -1
View File
@@ -7,7 +7,7 @@ Usage: komorebic.exe initial-workspace-rule <IDENTIFIER> <ID> <MONITOR> <WORKSPA
Arguments: Arguments:
<IDENTIFIER> <IDENTIFIER>
[possible values: exe, class, title] [possible values: exe, class, title, path]
<ID> <ID>
Identifier as a string Identifier as a string
+1 -1
View File
@@ -7,7 +7,7 @@ Usage: komorebic.exe manage-rule <IDENTIFIER> <ID>
Arguments: Arguments:
<IDENTIFIER> <IDENTIFIER>
[possible values: exe, class, title] [possible values: exe, class, title, path]
<ID> <ID>
Identifier as a string Identifier as a string
+1 -1
View File
@@ -7,7 +7,7 @@ Usage: komorebic.exe named-workspace-rule <IDENTIFIER> <ID> <WORKSPACE>
Arguments: Arguments:
<IDENTIFIER> <IDENTIFIER>
[possible values: exe, class, title] [possible values: exe, class, title, path]
<ID> <ID>
Identifier as a string Identifier as a string
+1 -1
View File
@@ -7,7 +7,7 @@ Usage: komorebic.exe remove-title-bar <IDENTIFIER> <ID>
Arguments: Arguments:
<IDENTIFIER> <IDENTIFIER>
[possible values: exe, class, title] [possible values: exe, class, title, path]
<ID> <ID>
Identifier as a string Identifier as a string
+1 -1
View File
@@ -7,7 +7,7 @@ Usage: komorebic.exe workspace-rule <IDENTIFIER> <ID> <MONITOR> <WORKSPACE>
Arguments: Arguments:
<IDENTIFIER> <IDENTIFIER>
[possible values: exe, class, title] [possible values: exe, class, title, path]
<ID> <ID>
Identifier as a string Identifier as a string
-4
View File
@@ -51,10 +51,6 @@ docgen:
komorebic docgen komorebic docgen
Get-ChildItem -Path "docs/cli" -Recurse -File | ForEach-Object { (Get-Content $_.FullName) -replace 'Usage: ', 'Usage: komorebic.exe ' | Set-Content $_.FullName } Get-ChildItem -Path "docs/cli" -Recurse -File | ForEach-Object { (Get-Content $_.FullName) -replace 'Usage: ', 'Usage: komorebic.exe ' | Set-Content $_.FullName }
exampledocs:
cp whkdrc.sample docs/whkdrc.sample
cp komorebi.example.json docs/komorebi.example.json
schemagen: schemagen:
komorebic static-config-schema > schema.json komorebic static-config-schema > schema.json
generate-schema-doc .\schema.json --config template_name=js_offline --config minify=false .\static-config-docs\ generate-schema-doc .\schema.json --config template_name=js_offline --config minify=false .\static-config-docs\
+327 -11
View File
@@ -133,6 +133,32 @@
} }
} }
}, },
"active_window_border_style": {
"description": "Active window border style (default: System)",
"oneOf": [
{
"description": "Use the system border style",
"type": "string",
"enum": [
"System"
]
},
{
"description": "Use the Windows 11-style rounded borders",
"type": "string",
"enum": [
"Rounded"
]
},
{
"description": "Use the Windows 10-style square borders",
"type": "string",
"enum": [
"Square"
]
}
]
},
"app_specific_configuration_path": { "app_specific_configuration_path": {
"description": "Path to applications.yaml from komorebi-application-specific-configurations (default: None)", "description": "Path to applications.yaml from komorebi-application-specific-configurations (default: None)",
"type": "string" "type": "string"
@@ -144,6 +170,46 @@
}, },
"border_overflow_applications": { "border_overflow_applications": {
"description": "Identify border overflow applications", "description": "Identify border overflow applications",
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"required": [
"id",
"kind"
],
"properties": {
"id": {
"type": "string"
},
"kind": {
"type": "string",
"enum": [
"Exe",
"Class",
"Title",
"Path"
]
},
"matching_strategy": {
"type": "string",
"enum": [
"Legacy",
"Equals",
"StartsWith",
"EndsWith",
"Contains",
"Regex",
"DoesNotEndWith",
"DoesNotStartWith",
"DoesNotEqual",
"DoesNotContain"
]
}
}
},
{
"type": "array", "type": "array",
"items": { "items": {
"type": "object", "type": "object",
@@ -172,11 +238,18 @@
"StartsWith", "StartsWith",
"EndsWith", "EndsWith",
"Contains", "Contains",
"Regex" "Regex",
"DoesNotEndWith",
"DoesNotStartWith",
"DoesNotEqual",
"DoesNotContain"
] ]
} }
} }
} }
}
]
}
}, },
"border_width": { "border_width": {
"description": "Width of the window border (default: 8)", "description": "Width of the window border (default: 8)",
@@ -223,6 +296,8 @@
"description": "Individual window floating rules", "description": "Individual window floating rules",
"type": "array", "type": "array",
"items": { "items": {
"anyOf": [
{
"type": "object", "type": "object",
"required": [ "required": [
"id", "id",
@@ -249,10 +324,55 @@
"StartsWith", "StartsWith",
"EndsWith", "EndsWith",
"Contains", "Contains",
"Regex" "Regex",
"DoesNotEndWith",
"DoesNotStartWith",
"DoesNotEqual",
"DoesNotContain"
] ]
} }
} }
},
{
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"kind"
],
"properties": {
"id": {
"type": "string"
},
"kind": {
"type": "string",
"enum": [
"Exe",
"Class",
"Title",
"Path"
]
},
"matching_strategy": {
"type": "string",
"enum": [
"Legacy",
"Equals",
"StartsWith",
"EndsWith",
"Contains",
"Regex",
"DoesNotEndWith",
"DoesNotStartWith",
"DoesNotEqual",
"DoesNotContain"
]
}
}
}
}
]
} }
}, },
"focus_follows_mouse": { "focus_follows_mouse": {
@@ -342,6 +462,8 @@
"description": "Identify applications that have the WS_EX_LAYERED extended window style", "description": "Identify applications that have the WS_EX_LAYERED extended window style",
"type": "array", "type": "array",
"items": { "items": {
"anyOf": [
{
"type": "object", "type": "object",
"required": [ "required": [
"id", "id",
@@ -368,14 +490,16 @@
"StartsWith", "StartsWith",
"EndsWith", "EndsWith",
"Contains", "Contains",
"Regex" "Regex",
"DoesNotEndWith",
"DoesNotStartWith",
"DoesNotEqual",
"DoesNotContain"
] ]
} }
} }
}
}, },
"manage_rules": { {
"description": "Individual window force-manage rules",
"type": "array", "type": "array",
"items": { "items": {
"type": "object", "type": "object",
@@ -404,11 +528,101 @@
"StartsWith", "StartsWith",
"EndsWith", "EndsWith",
"Contains", "Contains",
"Regex" "Regex",
"DoesNotEndWith",
"DoesNotStartWith",
"DoesNotEqual",
"DoesNotContain"
] ]
} }
} }
} }
}
]
}
},
"manage_rules": {
"description": "Individual window force-manage rules",
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"required": [
"id",
"kind"
],
"properties": {
"id": {
"type": "string"
},
"kind": {
"type": "string",
"enum": [
"Exe",
"Class",
"Title",
"Path"
]
},
"matching_strategy": {
"type": "string",
"enum": [
"Legacy",
"Equals",
"StartsWith",
"EndsWith",
"Contains",
"Regex",
"DoesNotEndWith",
"DoesNotStartWith",
"DoesNotEqual",
"DoesNotContain"
]
}
}
},
{
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"kind"
],
"properties": {
"id": {
"type": "string"
},
"kind": {
"type": "string",
"enum": [
"Exe",
"Class",
"Title",
"Path"
]
},
"matching_strategy": {
"type": "string",
"enum": [
"Legacy",
"Equals",
"StartsWith",
"EndsWith",
"Contains",
"Regex",
"DoesNotEndWith",
"DoesNotStartWith",
"DoesNotEqual",
"DoesNotContain"
]
}
}
}
}
]
}
}, },
"monitor_index_preferences": { "monitor_index_preferences": {
"description": "Set monitor index preferences", "description": "Set monitor index preferences",
@@ -541,7 +755,11 @@
"StartsWith", "StartsWith",
"EndsWith", "EndsWith",
"Contains", "Contains",
"Regex" "Regex",
"DoesNotEndWith",
"DoesNotStartWith",
"DoesNotEqual",
"DoesNotContain"
] ]
} }
} }
@@ -615,7 +833,11 @@
"StartsWith", "StartsWith",
"EndsWith", "EndsWith",
"Contains", "Contains",
"Regex" "Regex",
"DoesNotEndWith",
"DoesNotStartWith",
"DoesNotEqual",
"DoesNotContain"
] ]
} }
} }
@@ -633,6 +855,46 @@
}, },
"object_name_change_applications": { "object_name_change_applications": {
"description": "Identify applications that send EVENT_OBJECT_NAMECHANGE on launch (very rare)", "description": "Identify applications that send EVENT_OBJECT_NAMECHANGE on launch (very rare)",
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"required": [
"id",
"kind"
],
"properties": {
"id": {
"type": "string"
},
"kind": {
"type": "string",
"enum": [
"Exe",
"Class",
"Title",
"Path"
]
},
"matching_strategy": {
"type": "string",
"enum": [
"Legacy",
"Equals",
"StartsWith",
"EndsWith",
"Contains",
"Regex",
"DoesNotEndWith",
"DoesNotStartWith",
"DoesNotEqual",
"DoesNotContain"
]
}
}
},
{
"type": "array", "type": "array",
"items": { "items": {
"type": "object", "type": "object",
@@ -661,11 +923,18 @@
"StartsWith", "StartsWith",
"EndsWith", "EndsWith",
"Contains", "Contains",
"Regex" "Regex",
"DoesNotEndWith",
"DoesNotStartWith",
"DoesNotEqual",
"DoesNotContain"
] ]
} }
} }
} }
}
]
}
}, },
"resize_delta": { "resize_delta": {
"description": "Delta to resize windows by (default 50)", "description": "Delta to resize windows by (default 50)",
@@ -813,6 +1082,8 @@
"description": "Identify tray and multi-window applications", "description": "Identify tray and multi-window applications",
"type": "array", "type": "array",
"items": { "items": {
"anyOf": [
{
"type": "object", "type": "object",
"required": [ "required": [
"id", "id",
@@ -839,10 +1110,55 @@
"StartsWith", "StartsWith",
"EndsWith", "EndsWith",
"Contains", "Contains",
"Regex" "Regex",
"DoesNotEndWith",
"DoesNotStartWith",
"DoesNotEqual",
"DoesNotContain"
] ]
} }
} }
},
{
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"kind"
],
"properties": {
"id": {
"type": "string"
},
"kind": {
"type": "string",
"enum": [
"Exe",
"Class",
"Title",
"Path"
]
},
"matching_strategy": {
"type": "string",
"enum": [
"Legacy",
"Equals",
"StartsWith",
"EndsWith",
"Contains",
"Regex",
"DoesNotEndWith",
"DoesNotStartWith",
"DoesNotEqual",
"DoesNotContain"
]
}
}
}
}
]
} }
}, },
"unmanaged_window_operation_behaviour": { "unmanaged_window_operation_behaviour": {