docs(schema): publish versioned schema docs to lgug2z.com

This commit is contained in:
LGUG2Z committed 2025-12-23 12:00:13 -08:00
1 parent 1cb3327395
commit 1e71cb7d92
9 files changed
+2282 -5

No files matched your search

+2
View File
@@ -3,3 +3,5 @@
/.idea
/.direnv
/komorebic/applications.json
/komorebi-schema
/bar-schema
Generated
+1 -1
View File
@@ -3045,7 +3045,7 @@ dependencies = [
[[package]]
name = "komorebi-bar"
version = "0.1.39"
version = "0.1.0"
dependencies = [
"chrono",
"chrono-tz",
+13
View File
@@ -51,6 +51,19 @@ docgen:
jsonschema:
cargo run --package komorebic -- static-config-schema > schema.json
cargo run --package komorebic -- application-specific-configuration-schema > schema.asc.json
cargo run --package komorebi-bar -- --schema > schema.bar.json
version := `cargo metadata --format-version 1 --no-deps | jq -r '.packages[] | select(.name == "komorebi") | .version'`
schemagen:
mkdir -p komorebi-schema
schemars-docgen schema.json -o komorebi-schema/komorebi.html
schemars-docgen schema.bar.json -o komorebi-schema/bar.html
cp schema.json komorebi-schema/komorebi.{{ version }}.schema.json
cp schema.bar.json komorebi-schema/komorebi.bar.{{ version }}.schema.json
schemapub:
wrangler pages deploy --project-name komorebi-for-mac --branch main ./komorebi-schema
depgen:
cargo deny check
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "komorebi-bar"
version = "0.1.39"
version = "0.1.0"
edition = "2024"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+3 -1
View File
@@ -15,7 +15,9 @@ use std::path::PathBuf;
#[derive(Clone, Debug, Serialize, Deserialize)]
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
/// The `komorebi.bar.json` configuration file reference for `v0.1.39`
/// The `komorebi.bar.json` static configuration file reference for komorebi for Mac `v0.1.0`
///
/// `"$schema": "https://komorebi-for-mac.lgug2z.com/komorebi.bar.0.1.0.schema.json"`
pub struct KomobarConfig {
/// Bar height (default: 50)
pub height: Option<f32>,
+3 -1
View File
@@ -365,7 +365,9 @@ pub enum AppSpecificConfigurationPath {
#[serde_with::serde_as]
#[derive(Clone, Debug, Default, Serialize, Deserialize, PartialEq)]
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
/// The `komorebi.json` static configuration file reference for `v0.1.39`
/// The `komorebi.json` static configuration file reference for komorebi for Mac `v0.1.0`
///
/// `"$schema": "https://komorebi-for-mac.lgug2z.com/komorebi.0.1.0.schema.json"`
pub struct StaticConfig {
// /// DISCOURAGED: Minimum width for a window to be eligible for tiling
// #[serde(skip_serializing_if = "Option::is_none")]
+2257
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -1,7 +1,7 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "StaticConfig",
"description": "The `komorebi.json` static configuration file reference for `v0.1.39`",
"description": "The `komorebi.json` static configuration file reference for komorebi for Mac `v0.1.0`\n\n`\"$schema\": \"https://komorebi-for-mac.lgug2z.com/komorebi.0.1.0.schema.json\"`",
"type": "object",
"properties": {
"app_specific_configuration_path": {
+1
View File
@@ -14,6 +14,7 @@ mkShell {
jq
just
prettier
wrangler
python311Packages.mkdocs-material
python311Packages.mkdocs-macros