@@ -7,105 +7,88 @@ use crate::app::AppContext;
77
88struct DocEntry {
99 filename : & ' static str ,
10- tool : & ' static str ,
1110 name : & ' static str ,
1211 description : & ' static str ,
1312}
1413
1514const DOCS : & [ DocEntry ] = & [
1615 DocEntry {
1716 filename : "app-bootstrap.md" ,
18- tool : "get_app_bootstrap_guide" ,
1917 name : "App Bootstrap Guide" ,
2018 description : "Step-by-step instructions for bootstrapping a new project" ,
2119 } ,
2220 DocEntry {
2321 filename : "cargo-dependencies-guide.md" ,
24- tool : "get_cargo_dependencies_guide" ,
2522 name : "Cargo Dependencies Guide" ,
2623 description : "How to add dependencies to Cargo.toml" ,
2724 } ,
2825 DocEntry {
2926 filename : "mcp-development-guide.md" ,
30- tool : "get_mcp_development_guide" ,
3127 name : "MCP Development Guide" ,
3228 description : "Guide for creating MCP resources and Tool Calls" ,
3329 } ,
3430 DocEntry {
3531 filename : "http-actions-design-guide.md" ,
36- tool : "get_http_actions_design_guide" ,
3732 name : "HTTP Actions Design Guide" ,
3833 description : "HTTP action architecture and patterns for my-http-server" ,
3934 } ,
4035 DocEntry {
4136 filename : "flurl-usage-guide.md" ,
42- tool : "get_flurl_usage_guide" ,
4337 name : "FlUrl Usage Guide" ,
4438 description : "How to use the FlUrl HTTP client library" ,
4539 } ,
4640 DocEntry {
4741 filename : "dioxus-bootstrap.md" ,
48- tool : "get_dioxus_bootstrap_guide" ,
4942 name : "Dioxus Fullstack Bootstrap Guide" ,
5043 description : "Bootstrap a new empty Dioxus fullstack web application" ,
5144 } ,
5245 DocEntry {
5346 filename : "dioxus-fullstack-design-patterns.md" ,
54- tool : "get_dioxus_fullstack_design_patterns" ,
5547 name : "Dioxus Fullstack Design Patterns" ,
5648 description : "Playbook for dialogs, forms, lists, and server functions" ,
5749 } ,
5850 DocEntry {
5951 filename : "dioxus-utils-readme.md" ,
60- tool : "get_dioxus_utils_readme" ,
6152 name : "dioxus-utils Usage Cases Guide" ,
6253 description : "Utilities for Dioxus apps: data state, dialogs, JS helpers" ,
6354 } ,
6455 DocEntry {
6556 filename : "dioxus-admin-ui-kit.md" ,
66- tool : "get_dioxus_admin_ui_kit" ,
6757 name : "Dioxus Admin UI Kit" ,
6858 description : "Ready-made UI components for Dioxus admin panels" ,
6959 } ,
7060 DocEntry {
7161 filename : "my-postgres-readme.md" ,
72- tool : "get_my_postgres_readme" ,
7362 name : "Postgres Design Library" ,
7463 description : "Documentation for my-postgres library" ,
7564 } ,
7665 DocEntry {
7766 filename : "my-no-sql-entity-design-patterns.md" ,
78- tool : "get_my_no_sql_entity_patterns" ,
7967 name : "MyNoSql Entity Design Patterns" ,
8068 description : "Design patterns for MyNoSql entities and enums" ,
8169 } ,
8270 DocEntry {
8371 filename : "my-grpc-extensions.md" ,
84- tool : "get_my_grpc_extensions_readme" ,
8572 name : "gRPC extensions" ,
8673 description : "Utilities and macros for building gRPC clients and servers" ,
8774 } ,
8875 DocEntry {
8976 filename : "my-ssh-readme.md" ,
90- tool : "get_my_ssh_readme" ,
9177 name : "SSH connections design library" ,
9278 description : "Async SSH helpers for commands, file transfer, and port forwarding" ,
9379 } ,
9480 DocEntry {
9581 filename : "my-tcp-sockets-readme.md" ,
96- tool : "get_my_tcp_sockets_readme" ,
9782 name : "TcpSockets design library" ,
9883 description : "Async TCP server/client building blocks with ping/pong and TLS options" ,
9984 } ,
10085 DocEntry {
10186 filename : "rust-extensions.md" ,
102- tool : "get_rust_extensions_readme" ,
10387 name : "rust-extensions" ,
10488 description : "Low-level utils, queues and other helpers" ,
10589 } ,
10690 DocEntry {
10791 filename : "ci-utils-readme.md" ,
108- tool : "get_ci_utils_readme" ,
10992 name : "ci-utils" ,
11093 description : "Build-time helper crate" ,
11194 } ,
@@ -115,8 +98,8 @@ pub(super) fn build_yaml(scheme: &str, host: &str) -> String {
11598 let mut yaml = String :: from ( "resources:\n " ) ;
11699 for doc in DOCS {
117100 yaml. push_str ( & format ! (
118- " - tool: {} \n url: \" {}://{}/ai-docs/{}\" \n description: \" {}\" \n " ,
119- doc . tool , scheme, host, doc. filename, doc. description
101+ " - url: \" {}://{}/ai-docs/{}\" \n description: \" {}\" \n " ,
102+ scheme, host, doc. filename, doc. description
120103 ) ) ;
121104 }
122105 yaml
0 commit comments