From d3b4027f5926569cb9371b2ea62b6be9387ea650 Mon Sep 17 00:00:00 2001 From: ้ญๆ›นๅ…ˆ็”Ÿ <1992414357@qq.com> Date: Fri, 5 Jun 2026 21:08:07 +0800 Subject: Add example pages and sync-examples tool for docs --- docs/example-pages/examples.json | 281 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 281 insertions(+) create mode 100644 docs/example-pages/examples.json (limited to 'docs/example-pages') diff --git a/docs/example-pages/examples.json b/docs/example-pages/examples.json new file mode 100644 index 0000000..4db968c --- /dev/null +++ b/docs/example-pages/examples.json @@ -0,0 +1,281 @@ +[ + { + "id": "example-basic", + "name": "Basic", + "icon": "๐Ÿš€", + "category": "core", + "desc": "Example The Basic Usage of Mingling\n", + "tags": [ + "dispatcher!", + "#[chain]", + "#[renderer]" + ], + "files": [ + "src/main.rs", + "Cargo.toml" + ] + }, + { + "id": "example-argument-parse", + "name": "Argument Parse", + "icon": "๐Ÿ“‹", + "category": "parsing", + "desc": "Example Argument Parse\n", + "tags": [ + "pick", + "Pickable" + ], + "files": [ + "src/main.rs", + "Cargo.toml" + ] + }, + { + "id": "example-async-support", + "name": "Async Support", + "icon": "โšก", + "category": "runtime", + "desc": "Example Async Runtime Support\n", + "tags": [ + "async", + "tokio" + ], + "files": [ + "src/main.rs", + "Cargo.toml" + ] + }, + { + "id": "example-clap-binding", + "name": "Clap Binding", + "icon": "๐Ÿ”—", + "category": "parsing", + "desc": "Example Clap Binding\n", + "tags": [ + "clap" + ], + "files": [ + "src/main.rs", + "Cargo.toml" + ] + }, + { + "id": "example-completion", + "name": "Completion", + "icon": "๐Ÿ”„", + "category": "ux", + "desc": "Example Completion\n", + "tags": [ + "comp" + ], + "files": [ + "src/main.rs", + "build.rs", + "Cargo.toml" + ] + }, + { + "id": "example-custom-pickable", + "name": "Custom Pickable", + "icon": "๐ŸŽฏ", + "category": "parsing", + "desc": "Example Custom Pickable\n", + "tags": [ + "Pickable", + "custom" + ], + "files": [ + "src/main.rs", + "Cargo.toml" + ] + }, + { + "id": "example-dispatch-tree", + "name": "Dispatch Tree", + "icon": "๐ŸŒณ", + "category": "dispatch", + "desc": "Example Dispatch Tree\n", + "tags": [ + "dispatch_tree" + ], + "files": [ + "src/main.rs", + "Cargo.toml" + ] + }, + { + "id": "example-enum-tag", + "name": "Enum Tag", + "icon": "๐Ÿท๏ธ", + "category": "parsing", + "desc": "Example Enum Tag\n", + "tags": [ + "enum_tag", + "Pickable" + ], + "files": [ + "src/main.rs", + "Cargo.toml" + ] + }, + { + "id": "example-error-handling", + "name": "Error Handling", + "icon": "โš ๏ธ", + "category": "runtime", + "desc": "Example Error Handling\n", + "tags": [ + "Result" + ], + "files": [ + "src/main.rs", + "Cargo.toml" + ] + }, + { + "id": "example-exitcode", + "name": "Exitcode", + "icon": "๐Ÿšช", + "category": "runtime", + "desc": "Example Error Handling\n", + "tags": [ + "ExitCode" + ], + "files": [ + "src/main.rs", + "Cargo.toml" + ] + }, + { + "id": "example-general-renderer", + "name": "General Renderer", + "icon": "๐Ÿ“ค", + "category": "output", + "desc": "Example General Renderer\n", + "tags": [ + "general_renderer", + "--json", + "--yaml" + ], + "files": [ + "src/main.rs", + "Cargo.toml" + ] + }, + { + "id": "example-help", + "name": "Help", + "icon": "๐Ÿ’ก", + "category": "ux", + "desc": "Example Help\n", + "tags": [ + "#[helper]" + ], + "files": [ + "src/main.rs", + "Cargo.toml" + ] + }, + { + "id": "example-hook", + "name": "Hook", + "icon": "๐Ÿช", + "category": "runtime", + "desc": "Example Hook\n", + "tags": [ + "ProgramHook" + ], + "files": [ + "src/main.rs", + "Cargo.toml" + ] + }, + { + "id": "example-implicit-dispatcher", + "name": "Implicit Dispatcher", + "icon": "๐Ÿซฅ", + "category": "dispatch", + "desc": "Example Implicit Dispatcher\n", + "tags": [ + "implicit" + ], + "files": [ + "src/main.rs", + "Cargo.toml" + ] + }, + { + "id": "example-panic-unwind", + "name": "Panic Unwind", + "icon": "๐Ÿ’ฅ", + "category": "runtime", + "desc": "Example Panic Unwind\n", + "tags": [ + "panic_unwind" + ], + "files": [ + "src/main.rs", + "Cargo.toml" + ] + }, + { + "id": "example-repl-basic", + "name": "REPL Basic", + "icon": "๐Ÿ”", + "category": "repl", + "desc": "Example REPL Basic\n", + "tags": [ + "repl" + ], + "files": [ + "src/main.rs", + "Cargo.toml" + ] + }, + { + "id": "example-resources", + "name": "Resources", + "icon": "๐Ÿ“ฆ", + "category": "advanced", + "desc": "Example Resource Injection\n", + "tags": [ + "Resources", + "injection" + ], + "files": [ + "Cargo.toml", + "src/main.rs", + "src/lib.rs" + ] + }, + { + "id": "example-setup", + "name": "Setup", + "icon": "๐Ÿ—๏ธ", + "category": "core", + "desc": "Example Setup\n", + "tags": [ + "#[setup]", + "extra_macros" + ], + "files": [ + "src/main.rs", + "Cargo.toml" + ] + }, + { + "id": "example-unit-test", + "name": "Unit Test", + "icon": "๐Ÿงช", + "category": "testing", + "desc": "Example Unit Test\n", + "tags": [ + "testing", + "extra_macros" + ], + "files": [ + "Cargo.toml", + "src/main.rs" + ] + } +] \ No newline at end of file -- cgit