1
0
mirror of https://github.com/actix/actix-website synced 2024-11-23 16:31:08 +01:00
actix-website/sidebars.ts
Hichem Fantar ad4aeac34f
TypeScript compatibility (#379)
* Update file extensions and exports for TypeScript compatibility

* docs: fix typo in getting-started.md

* chore: add no-trailing-punctuation rule to VS Code settings

* feat: add @docusaurus/theme-mermaid for mermaid diagram support

* Update import paths for MermaidDiagram component

* remove redudndant check, use effect only runs after the component is mounted

* Update docusaurus.config.ts to fix syntax error

* bring back check because it's not possible to properly cancel a dynamic import

* feat: optimize dynamic import in CodeBlock component

* chore: update VS Code extensions.json with eslint recommendation

* Update docusaurus.config.ts to add GitHub repository link in header
2024-05-28 19:23:34 +00:00

50 lines
1.1 KiB
TypeScript

import type { SidebarsConfig } from "@docusaurus/plugin-content-docs";
const sidebars: SidebarsConfig = {
docs: {
Introduction: ["welcome", "whatis"],
Basics: [
"getting-started",
"application",
"server",
"extractors",
"handlers",
],
Advanced: [
"errors",
"url-dispatch",
"request",
"response",
"testing",
"middleware",
"static-files",
],
Protocols: ["websockets", "http2"],
Patterns: ["autoreload", "databases", "shuttle"],
Diagrams: ["http_server_init", "conn_lifecycle"],
Actix: [
"actix/sec-0-quick-start",
"actix/sec-1-getting-started",
"actix/sec-2-actor",
"actix/sec-3-address",
"actix/sec-4-context",
"actix/sec-5-arbiter",
"actix/sec-6-sync-arbiter",
],
"API Documentation": [
{
type: "link",
label: "actix",
href: "https://docs.rs/actix/latest/actix/",
},
{
type: "link",
label: "actix-web",
href: "https://docs.rs/actix-web/latest/actix_web/",
},
],
},
};
export default sidebars;