mirror of
https://github.com/actix/actix-website
synced 2025-06-27 07:29:02 +02:00
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
This commit is contained in:
49
sidebars.ts
Normal file
49
sidebars.ts
Normal file
@ -0,0 +1,49 @@
|
||||
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;
|
Reference in New Issue
Block a user