@alliance-droid/svelte-docs-system 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/COMPONENTS.md +365 -0
  2. package/COVERAGE_REPORT.md +663 -0
  3. package/README.md +42 -0
  4. package/SEARCH_VERIFICATION.md +229 -0
  5. package/TEST_SUMMARY.md +344 -0
  6. package/bin/init.js +821 -0
  7. package/docs/E2E_TESTS.md +354 -0
  8. package/docs/TESTING.md +754 -0
  9. package/docs/de/index.md +41 -0
  10. package/docs/en/COMPONENTS.md +443 -0
  11. package/docs/en/api/examples.md +100 -0
  12. package/docs/en/api/overview.md +69 -0
  13. package/docs/en/components/index.md +622 -0
  14. package/docs/en/config/navigation.md +505 -0
  15. package/docs/en/config/theme-and-colors.md +395 -0
  16. package/docs/en/getting-started/integration.md +406 -0
  17. package/docs/en/guides/common-setups.md +651 -0
  18. package/docs/en/index.md +243 -0
  19. package/docs/en/markdown.md +102 -0
  20. package/docs/en/routing.md +64 -0
  21. package/docs/en/setup.md +52 -0
  22. package/docs/en/troubleshooting.md +704 -0
  23. package/docs/es/index.md +41 -0
  24. package/docs/fr/index.md +41 -0
  25. package/docs/ja/index.md +41 -0
  26. package/package.json +40 -0
  27. package/pagefind.toml +8 -0
  28. package/postcss.config.js +5 -0
  29. package/src/app.css +119 -0
  30. package/src/app.d.ts +13 -0
  31. package/src/app.html +11 -0
  32. package/src/lib/assets/favicon.svg +1 -0
  33. package/src/lib/components/APITable.svelte +120 -0
  34. package/src/lib/components/APITable.test.ts +153 -0
  35. package/src/lib/components/Breadcrumbs.svelte +85 -0
  36. package/src/lib/components/Breadcrumbs.test.ts +148 -0
  37. package/src/lib/components/Callout.svelte +60 -0
  38. package/src/lib/components/Callout.test.ts +100 -0
  39. package/src/lib/components/CodeBlock.svelte +68 -0
  40. package/src/lib/components/CodeBlock.test.ts +133 -0
  41. package/src/lib/components/DocLayout.svelte +84 -0
  42. package/src/lib/components/Footer.svelte +78 -0
  43. package/src/lib/components/Image.svelte +100 -0
  44. package/src/lib/components/Image.test.ts +163 -0
  45. package/src/lib/components/Navbar.svelte +141 -0
  46. package/src/lib/components/Search.svelte +248 -0
  47. package/src/lib/components/Sidebar.svelte +110 -0
  48. package/src/lib/components/Tabs.svelte +48 -0
  49. package/src/lib/components/Tabs.test.ts +102 -0
  50. package/src/lib/config.test.ts +140 -0
  51. package/src/lib/config.ts +179 -0
  52. package/src/lib/configIntegration.test.ts +272 -0
  53. package/src/lib/configLoader.ts +231 -0
  54. package/src/lib/configParser.test.ts +217 -0
  55. package/src/lib/configParser.ts +234 -0
  56. package/src/lib/index.ts +34 -0
  57. package/src/lib/integration.test.ts +426 -0
  58. package/src/lib/navigationBuilder.test.ts +338 -0
  59. package/src/lib/navigationBuilder.ts +268 -0
  60. package/src/lib/performance.test.ts +369 -0
  61. package/src/lib/routing.test.ts +202 -0
  62. package/src/lib/routing.ts +127 -0
  63. package/src/lib/search-functionality.test.ts +493 -0
  64. package/src/lib/stores/i18n.test.ts +180 -0
  65. package/src/lib/stores/i18n.ts +143 -0
  66. package/src/lib/stores/nav.ts +36 -0
  67. package/src/lib/stores/search.test.ts +140 -0
  68. package/src/lib/stores/search.ts +162 -0
  69. package/src/lib/stores/theme.ts +59 -0
  70. package/src/lib/stores/version.test.ts +139 -0
  71. package/src/lib/stores/version.ts +111 -0
  72. package/src/lib/themeCustomization.test.ts +223 -0
  73. package/src/lib/themeCustomization.ts +212 -0
  74. package/src/lib/utils/highlight.test.ts +136 -0
  75. package/src/lib/utils/highlight.ts +100 -0
  76. package/src/lib/utils/index.ts +7 -0
  77. package/src/lib/utils/markdown.test.ts +357 -0
  78. package/src/lib/utils/markdown.ts +77 -0
  79. package/src/routes/+layout.server.ts +1 -0
  80. package/src/routes/+layout.svelte +28 -0
  81. package/src/routes/+page.svelte +165 -0
  82. package/static/robots.txt +3 -0
  83. package/svelte.config.js +18 -0
  84. package/tailwind.config.ts +55 -0
  85. package/template-starter/.github/workflows/build.yml +40 -0
  86. package/template-starter/.github/workflows/deploy-github-pages.yml +47 -0
  87. package/template-starter/.github/workflows/deploy-netlify.yml +41 -0
  88. package/template-starter/.github/workflows/deploy-vercel.yml +64 -0
  89. package/template-starter/NPM-PACKAGE-SETUP.md +233 -0
  90. package/template-starter/README.md +320 -0
  91. package/template-starter/docs/_config.json +39 -0
  92. package/template-starter/docs/api/components.md +257 -0
  93. package/template-starter/docs/api/overview.md +169 -0
  94. package/template-starter/docs/guides/configuration.md +145 -0
  95. package/template-starter/docs/guides/github-pages-deployment.md +254 -0
  96. package/template-starter/docs/guides/netlify-deployment.md +159 -0
  97. package/template-starter/docs/guides/vercel-deployment.md +131 -0
  98. package/template-starter/docs/index.md +49 -0
  99. package/template-starter/docs/setup.md +149 -0
  100. package/template-starter/package.json +31 -0
  101. package/template-starter/pagefind.toml +3 -0
  102. package/template-starter/postcss.config.js +5 -0
  103. package/template-starter/src/app.css +34 -0
  104. package/template-starter/src/app.d.ts +13 -0
  105. package/template-starter/src/app.html +11 -0
  106. package/template-starter/src/lib/components/APITable.svelte +120 -0
  107. package/template-starter/src/lib/components/APITable.test.ts +19 -0
  108. package/template-starter/src/lib/components/Breadcrumbs.svelte +85 -0
  109. package/template-starter/src/lib/components/Breadcrumbs.test.ts +19 -0
  110. package/template-starter/src/lib/components/Callout.svelte +60 -0
  111. package/template-starter/src/lib/components/Callout.test.ts +16 -0
  112. package/template-starter/src/lib/components/CodeBlock.svelte +68 -0
  113. package/template-starter/src/lib/components/CodeBlock.test.ts +12 -0
  114. package/template-starter/src/lib/components/DocLayout.svelte +84 -0
  115. package/template-starter/src/lib/components/Footer.svelte +78 -0
  116. package/template-starter/src/lib/components/Image.svelte +100 -0
  117. package/template-starter/src/lib/components/Image.test.ts +15 -0
  118. package/template-starter/src/lib/components/Navbar.svelte +141 -0
  119. package/template-starter/src/lib/components/Search.svelte +248 -0
  120. package/template-starter/src/lib/components/Sidebar.svelte +110 -0
  121. package/template-starter/src/lib/components/Tabs.svelte +48 -0
  122. package/template-starter/src/lib/components/Tabs.test.ts +17 -0
  123. package/template-starter/src/lib/index.ts +15 -0
  124. package/template-starter/src/routes/+layout.svelte +28 -0
  125. package/template-starter/src/routes/+page.svelte +92 -0
  126. package/template-starter/svelte.config.js +17 -0
  127. package/template-starter/tailwind.config.ts +17 -0
  128. package/template-starter/tsconfig.json +13 -0
  129. package/template-starter/vite.config.ts +6 -0
  130. package/tests/e2e/example.spec.ts +345 -0
  131. package/tsconfig.json +20 -0
  132. package/vite.config.ts +6 -0
  133. package/vitest.config.ts +34 -0
  134. package/vitest.setup.ts +21 -0
@@ -0,0 +1,651 @@
1
+ ---
2
+ title: Common Setup Patterns
3
+ description: Copy-paste examples for common documentation use cases
4
+ author: Andrew
5
+ date: 2026-02-05
6
+ ---
7
+
8
+ # Common Setup Patterns
9
+
10
+ Ready-to-use examples for common documentation patterns and use cases.
11
+
12
+ ## 1. API Documentation Site
13
+
14
+ Perfect for documenting REST APIs, GraphQL endpoints, and SDKs.
15
+
16
+ ### Project Structure
17
+
18
+ ```
19
+ docs/
20
+ ├── index.md # Welcome
21
+ ├── getting-started/
22
+ │ ├── index.md # Overview
23
+ │ ├── installation.md # How to install
24
+ │ └── authentication.md # Auth setup
25
+ ├── api/
26
+ │ ├── index.md # API overview
27
+ │ ├── endpoints.md # All endpoints
28
+ │ ├── authentication.md # Auth methods
29
+ │ └── errors.md # Error handling
30
+ └── examples/
31
+ ├── javascript.md # JS examples
32
+ ├── python.md # Python examples
33
+ └── curl.md # cURL examples
34
+ ```
35
+
36
+ ### Navigation Setup
37
+
38
+ ```svelte
39
+ <script lang="ts">
40
+ import type { NavSection } from '$lib/stores/nav';
41
+
42
+ const sections: NavSection[] = [
43
+ {
44
+ title: 'Getting Started',
45
+ items: [
46
+ { label: 'Welcome', href: '/docs' },
47
+ { label: 'Installation', href: '/docs/getting-started/installation' },
48
+ { label: 'Authentication', href: '/docs/getting-started/authentication' },
49
+ ],
50
+ },
51
+ {
52
+ title: 'API Reference',
53
+ items: [
54
+ { label: 'Overview', href: '/docs/api' },
55
+ { label: 'Endpoints', href: '/docs/api/endpoints' },
56
+ {
57
+ label: 'Methods',
58
+ href: '/docs/api/methods',
59
+ children: [
60
+ { label: 'GET', href: '/docs/api/methods/get' },
61
+ { label: 'POST', href: '/docs/api/methods/post' },
62
+ { label: 'PUT', href: '/docs/api/methods/put' },
63
+ { label: 'DELETE', href: '/docs/api/methods/delete' },
64
+ ],
65
+ },
66
+ ],
67
+ },
68
+ {
69
+ title: 'Examples',
70
+ items: [
71
+ { label: 'JavaScript', href: '/docs/examples/javascript' },
72
+ { label: 'Python', href: '/docs/examples/python' },
73
+ { label: 'cURL', href: '/docs/examples/curl' },
74
+ ],
75
+ },
76
+ ];
77
+ </script>
78
+ ```
79
+
80
+ ### Example Page: API Endpoint
81
+
82
+ ```markdown
83
+ ---
84
+ title: Users Endpoint
85
+ description: User management API endpoints
86
+ ---
87
+
88
+ # Users Endpoint
89
+
90
+ Manage users in your application.
91
+
92
+ ## Get All Users
93
+
94
+ ```
95
+ GET /api/v1/users
96
+ ```
97
+
98
+ **Query Parameters:**
99
+
100
+ | Name | Type | Required | Description |
101
+ |------|------|----------|-------------|
102
+ | limit | number | No | Max results (default: 50) |
103
+ | offset | number | No | Results offset (default: 0) |
104
+ | sort | string | No | Sort field (default: created) |
105
+
106
+ **Response:**
107
+
108
+ ```json
109
+ {
110
+ "data": [
111
+ {
112
+ "id": "usr_123",
113
+ "name": "John Doe",
114
+ "email": "john@example.com",
115
+ "created": "2026-02-01T12:00:00Z"
116
+ }
117
+ ],
118
+ "meta": {
119
+ "total": 42,
120
+ "limit": 50,
121
+ "offset": 0
122
+ }
123
+ }
124
+ ```
125
+
126
+ ## Get User by ID
127
+
128
+ ```
129
+ GET /api/v1/users/{id}
130
+ ```
131
+
132
+ **Path Parameters:**
133
+
134
+ | Name | Type | Description |
135
+ |------|------|-------------|
136
+ | id | string | User ID |
137
+
138
+ **Response:**
139
+
140
+ ```json
141
+ {
142
+ "id": "usr_123",
143
+ "name": "John Doe",
144
+ "email": "john@example.com",
145
+ "created": "2026-02-01T12:00:00Z"
146
+ }
147
+ ```
148
+
149
+ ## Create User
150
+
151
+ ```
152
+ POST /api/v1/users
153
+ ```
154
+
155
+ **Request Body:**
156
+
157
+ ```json
158
+ {
159
+ "name": "Jane Doe",
160
+ "email": "jane@example.com"
161
+ }
162
+ ```
163
+
164
+ **Response:** 201 Created
165
+
166
+ ```json
167
+ {
168
+ "id": "usr_456",
169
+ "name": "Jane Doe",
170
+ "email": "jane@example.com",
171
+ "created": "2026-02-05T10:30:00Z"
172
+ }
173
+ ```
174
+ ```
175
+
176
+ ## 2. Product Documentation
177
+
178
+ For SaaS products, tools, and software documentation.
179
+
180
+ ### Project Structure
181
+
182
+ ```
183
+ docs/
184
+ ├── index.md # Product overview
185
+ ├── onboarding/
186
+ │ ├── index.md # Onboarding guide
187
+ │ ├── signup.md # How to sign up
188
+ │ ├── first-project.md # Create first project
189
+ │ └── team-setup.md # Add team members
190
+ ├── features/
191
+ │ ├── dashboard.md # Dashboard guide
192
+ │ ├── projects.md # Project management
193
+ │ ├── collaboration.md # Team collaboration
194
+ │ ├── integrations.md # Third-party integrations
195
+ │ └── analytics.md # Analytics & reporting
196
+ ├── administration/
197
+ │ ├── organization.md # Org settings
198
+ │ ├── billing.md # Billing & plans
199
+ │ ├── security.md # Security settings
200
+ │ └── audit-logs.md # Activity logs
201
+ ├── troubleshooting.md # Common issues
202
+ └── api/
203
+ ├── index.md # API reference
204
+ ├── authentication.md # API auth
205
+ └── endpoints.md # Available endpoints
206
+ ```
207
+
208
+ ### Navigation Setup
209
+
210
+ ```svelte
211
+ <script lang="ts">
212
+ import type { NavSection } from '$lib/stores/nav';
213
+
214
+ const sections: NavSection[] = [
215
+ {
216
+ title: 'Getting Started',
217
+ items: [
218
+ { label: 'Welcome', href: '/docs', icon: 'home' },
219
+ { label: 'Sign Up', href: '/docs/onboarding/signup', icon: 'user-plus' },
220
+ { label: 'Create Project', href: '/docs/onboarding/first-project', icon: 'folder-plus' },
221
+ ],
222
+ },
223
+ {
224
+ title: 'Features',
225
+ items: [
226
+ { label: 'Dashboard', href: '/docs/features/dashboard' },
227
+ { label: 'Projects', href: '/docs/features/projects' },
228
+ { label: 'Collaboration', href: '/docs/features/collaboration' },
229
+ { label: 'Integrations', href: '/docs/features/integrations' },
230
+ { label: 'Analytics', href: '/docs/features/analytics' },
231
+ ],
232
+ },
233
+ {
234
+ title: 'Administration',
235
+ items: [
236
+ { label: 'Settings', href: '/docs/administration/organization' },
237
+ { label: 'Billing', href: '/docs/administration/billing' },
238
+ { label: 'Security', href: '/docs/administration/security' },
239
+ { label: 'Audit Logs', href: '/docs/administration/audit-logs' },
240
+ ],
241
+ },
242
+ {
243
+ title: 'Developer',
244
+ items: [
245
+ { label: 'API Reference', href: '/docs/api' },
246
+ { label: 'Integrations', href: '/docs/features/integrations' },
247
+ { label: 'SDKs', href: '/docs/api/sdks' },
248
+ ],
249
+ },
250
+ {
251
+ title: 'Help',
252
+ items: [
253
+ { label: 'Troubleshooting', href: '/docs/troubleshooting', icon: 'wrench' },
254
+ { label: 'FAQ', href: '/docs/faq', icon: 'circle-question' },
255
+ ],
256
+ },
257
+ ];
258
+ </script>
259
+ ```
260
+
261
+ ### Example Page: Feature Guide
262
+
263
+ ```markdown
264
+ ---
265
+ title: Dashboard Overview
266
+ description: Understand your dashboard and key metrics
267
+ ---
268
+
269
+ # Dashboard Overview
270
+
271
+ Your dashboard provides a centralized view of your project activity and key metrics.
272
+
273
+ ## Dashboard Layout
274
+
275
+ The dashboard consists of three main sections:
276
+
277
+ ### 1. Overview Cards
278
+
279
+ At the top, you'll see key metrics:
280
+ - **Active Projects** - Number of projects you're working on
281
+ - **Team Members** - Size of your team
282
+ - **Recent Activity** - Last updated dates
283
+ - **API Usage** - Current month's API calls
284
+
285
+ ### 2. Recent Activity
286
+
287
+ A timeline showing recent events in your projects:
288
+ - New team members added
289
+ - Files uploaded
290
+ - Comments made
291
+ - Projects updated
292
+
293
+ ### 3. Usage Charts
294
+
295
+ Visual representation of:
296
+ - API call trends
297
+ - Storage usage
298
+ - Team activity over time
299
+ - Feature usage stats
300
+
301
+ ## Customizing Your Dashboard
302
+
303
+ Click "Customize" in the top-right to add or remove cards.
304
+
305
+ Available widgets:
306
+ - **Projects Widget** - Quick access to projects
307
+ - **Team Widget** - Team member status
308
+ - **Analytics Widget** - Usage trends
309
+ - **Activity Widget** - Recent changes
310
+ - **Alerts Widget** - Important notifications
311
+ ```
312
+
313
+ ## 3. Blog/Content Site
314
+
315
+ For blogs, news, and long-form content.
316
+
317
+ ### Project Structure
318
+
319
+ ```
320
+ docs/
321
+ ├── index.md # Blog home
322
+ ├── posts/
323
+ │ ├── 2026-02-05-new-features.md
324
+ │ ├── 2026-02-01-tutorial-getting-started.md
325
+ │ ├── 2026-01-28-announcement.md
326
+ │ └── 2025-12-15-year-in-review.md
327
+ ├── categories/
328
+ │ ├── announcements.md # Announcements posts
329
+ │ ├── tutorials.md # How-to guides
330
+ │ └── releases.md # Release notes
331
+ ├── authors/
332
+ │ └── andrew.md # Author bio
333
+ └── archive/
334
+ ├── 2025.md # 2025 posts
335
+ └── 2024.md # 2024 posts
336
+ ```
337
+
338
+ ### Navigation Setup
339
+
340
+ ```svelte
341
+ <script lang="ts">
342
+ import type { NavSection } from '$lib/stores/nav';
343
+
344
+ const sections: NavSection[] = [
345
+ {
346
+ title: 'Blog',
347
+ items: [
348
+ { label: 'Latest', href: '/blog', icon: 'newspaper' },
349
+ { label: 'Announcements', href: '/blog/categories/announcements' },
350
+ { label: 'Tutorials', href: '/blog/categories/tutorials' },
351
+ { label: 'Releases', href: '/blog/categories/releases' },
352
+ ],
353
+ },
354
+ {
355
+ title: 'Archive',
356
+ items: [
357
+ { label: '2026', href: '/blog/archive/2026' },
358
+ { label: '2025', href: '/blog/archive/2025' },
359
+ { label: '2024', href: '/blog/archive/2024' },
360
+ ],
361
+ },
362
+ ];
363
+ </script>
364
+ ```
365
+
366
+ ### Blog Post Template
367
+
368
+ ```markdown
369
+ ---
370
+ title: Getting Started with Our Product
371
+ description: Learn how to get started in 5 minutes
372
+ author: Andrew
373
+ date: 2026-02-05
374
+ category: tutorials
375
+ tags: [tutorial, beginner, getting-started]
376
+ ---
377
+
378
+ # Getting Started with Our Product
379
+
380
+ Learn how to get started in 5 minutes.
381
+
382
+ ## Step 1: Sign Up
383
+
384
+ Visit our [signup page](/signup) and create an account.
385
+
386
+ ## Step 2: Create Your First Project
387
+
388
+ Once logged in, click "New Project" and follow the wizard.
389
+
390
+ ## Step 3: Install the SDK
391
+
392
+ Install our SDK in your project:
393
+
394
+ ```bash
395
+ npm install our-package
396
+ ```
397
+
398
+ ## Step 4: Configure
399
+
400
+ Create a configuration file:
401
+
402
+ ```javascript
403
+ import { init } from 'our-package';
404
+
405
+ init({
406
+ apiKey: 'your-api-key',
407
+ environment: 'production',
408
+ });
409
+ ```
410
+
411
+ ## Next Steps
412
+
413
+ - [Explore Features](/docs/features)
414
+ - [View API Reference](/docs/api)
415
+ - [Join Our Community](https://community.example.com)
416
+ ```
417
+
418
+ ## 4. Multi-Language Documentation
419
+
420
+ For projects that support multiple languages.
421
+
422
+ ### Project Structure
423
+
424
+ ```
425
+ docs/
426
+ ├── en/ # English
427
+ │ ├── index.md
428
+ │ ├── setup.md
429
+ │ └── api/
430
+ ├── es/ # Spanish
431
+ │ ├── index.md
432
+ │ ├── setup.md
433
+ │ └── api/
434
+ ├── fr/ # French
435
+ │ ├── index.md
436
+ │ ├── setup.md
437
+ │ └── api/
438
+ └── de/ # German
439
+ ├── index.md
440
+ ├── setup.md
441
+ └── api/
442
+ ```
443
+
444
+ ### Language Switcher in Navbar
445
+
446
+ ```svelte
447
+ <script lang="ts">
448
+ import { page } from '$app/stores';
449
+
450
+ let languages = [
451
+ { code: 'en', name: 'English' },
452
+ { code: 'es', name: 'Español' },
453
+ { code: 'fr', name: 'Français' },
454
+ { code: 'de', name: 'Deutsch' },
455
+ ];
456
+
457
+ function switchLanguage(lang: string) {
458
+ const currentPath = $page.url.pathname.replace(/^\/docs\/[a-z]{2}/, '');
459
+ window.location.href = `/docs/${lang}${currentPath}`;
460
+ }
461
+ </script>
462
+
463
+ <select onchange={(e) => switchLanguage(e.currentTarget.value)}>
464
+ {#each languages as lang}
465
+ <option value={lang.code}>{lang.name}</option>
466
+ {/each}
467
+ </select>
468
+ ```
469
+
470
+ ## 5. Open Source Project Documentation
471
+
472
+ For libraries, frameworks, and tools.
473
+
474
+ ### Project Structure
475
+
476
+ ```
477
+ docs/
478
+ ├── index.md # Overview
479
+ ├── getting-started/
480
+ │ ├── installation.md
481
+ │ ├── first-example.md
482
+ │ └── configuration.md
483
+ ├── guide/
484
+ │ ├── core-concepts.md
485
+ │ ├── advanced-usage.md
486
+ │ └── performance.md
487
+ ├── api/
488
+ │ ├── classes.md
489
+ │ ├── functions.md
490
+ │ ├── types.md
491
+ │ └── hooks.md
492
+ ├── examples/
493
+ │ ├── basic.md
494
+ │ ├── advanced.md
495
+ │ └── real-world.md
496
+ ├── contributing/
497
+ │ ├── setup.md
498
+ │ ├── testing.md
499
+ │ └── pull-requests.md
500
+ └── faq.md
501
+ ```
502
+
503
+ ### Navigation Setup
504
+
505
+ ```svelte
506
+ <script lang="ts">
507
+ import type { NavSection } from '$lib/stores/nav';
508
+
509
+ const sections: NavSection[] = [
510
+ {
511
+ title: 'Getting Started',
512
+ items: [
513
+ { label: 'Welcome', href: '/docs' },
514
+ { label: 'Installation', href: '/docs/getting-started/installation' },
515
+ { label: 'First Example', href: '/docs/getting-started/first-example' },
516
+ ],
517
+ },
518
+ {
519
+ title: 'Guide',
520
+ items: [
521
+ { label: 'Core Concepts', href: '/docs/guide/core-concepts' },
522
+ { label: 'Advanced Usage', href: '/docs/guide/advanced-usage' },
523
+ { label: 'Performance', href: '/docs/guide/performance' },
524
+ ],
525
+ },
526
+ {
527
+ title: 'API Reference',
528
+ items: [
529
+ { label: 'Classes', href: '/docs/api/classes' },
530
+ { label: 'Functions', href: '/docs/api/functions' },
531
+ { label: 'Types', href: '/docs/api/types' },
532
+ { label: 'Hooks', href: '/docs/api/hooks' },
533
+ ],
534
+ },
535
+ {
536
+ title: 'Examples',
537
+ items: [
538
+ { label: 'Basic', href: '/docs/examples/basic' },
539
+ { label: 'Advanced', href: '/docs/examples/advanced' },
540
+ { label: 'Real-World', href: '/docs/examples/real-world' },
541
+ ],
542
+ },
543
+ {
544
+ title: 'Contributing',
545
+ items: [
546
+ { label: 'Setup', href: '/docs/contributing/setup' },
547
+ { label: 'Testing', href: '/docs/contributing/testing' },
548
+ { label: 'Pull Requests', href: '/docs/contributing/pull-requests' },
549
+ ],
550
+ },
551
+ ];
552
+ </script>
553
+ ```
554
+
555
+ ## 6. Internal Knowledge Base
556
+
557
+ For team documentation and internal processes.
558
+
559
+ ### Project Structure
560
+
561
+ ```
562
+ docs/
563
+ ├── index.md # Knowledge base home
564
+ ├── team/
565
+ │ ├── onboarding.md # New employee checklist
566
+ │ ├── roles.md # Team roles & responsibilities
567
+ │ └── communication.md # Communication guidelines
568
+ ├── processes/
569
+ │ ├── development.md # Development workflow
570
+ │ ├── deployment.md # How to deploy
571
+ │ └── incident-response.md # Incident response
572
+ ├── standards/
573
+ │ ├── code-style.md # Code style guide
574
+ │ ├── documentation.md # Doc standards
575
+ │ └── security.md # Security practices
576
+ ├── systems/
577
+ │ ├── infrastructure.md # Infrastructure overview
578
+ │ ├── databases.md # Database schemas
579
+ │ └── api.md # Internal API
580
+ └── tools/
581
+ ├── monitoring.md # Monitoring & alerting
582
+ ├── logging.md # Log aggregation
583
+ └── backups.md # Backup procedures
584
+ ```
585
+
586
+ ---
587
+
588
+ ## Quick Copy-Paste Navigation
589
+
590
+ Choose your documentation type and copy this navigation:
591
+
592
+ ### For API Docs
593
+ ```typescript
594
+ {
595
+ title: 'Getting Started',
596
+ items: [
597
+ { label: 'Welcome', href: '/docs' },
598
+ { label: 'Installation', href: '/docs/installation' },
599
+ { label: 'Authentication', href: '/docs/auth' },
600
+ ],
601
+ },
602
+ {
603
+ title: 'API Reference',
604
+ items: [
605
+ { label: 'Endpoints', href: '/docs/api' },
606
+ { label: 'Errors', href: '/docs/errors' },
607
+ ],
608
+ }
609
+ ```
610
+
611
+ ### For Product Docs
612
+ ```typescript
613
+ {
614
+ title: 'Getting Started',
615
+ items: [
616
+ { label: 'Welcome', href: '/docs' },
617
+ { label: 'Sign Up', href: '/docs/signup' },
618
+ { label: 'First Steps', href: '/docs/first-steps' },
619
+ ],
620
+ },
621
+ {
622
+ title: 'Features',
623
+ items: [
624
+ { label: 'Dashboard', href: '/docs/dashboard' },
625
+ { label: 'Settings', href: '/docs/settings' },
626
+ ],
627
+ }
628
+ ```
629
+
630
+ ### For Blog
631
+ ```typescript
632
+ {
633
+ title: 'Blog',
634
+ items: [
635
+ { label: 'Latest', href: '/blog' },
636
+ { label: 'Archive', href: '/blog/archive' },
637
+ ],
638
+ }
639
+ ```
640
+
641
+ ---
642
+
643
+ ## Next Steps
644
+
645
+ 1. Choose your documentation type
646
+ 2. Copy the project structure
647
+ 3. Create your markdown files
648
+ 4. Customize navigation to match
649
+ 5. Deploy with your preferred platform
650
+
651
+ See [Integration Guide](/docs/getting-started/integration) for deployment options.