@knowcode/doc-builder 1.9.20 → 1.9.21

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 (86) hide show
  1. package/cli.js +15 -1
  2. package/doc-builder.config.js +4 -2
  3. package/doc-builder.config.js.backup.1754567425847 +124 -0
  4. package/html/README.html +3 -3
  5. package/html/about-doc-builder.html +3 -3
  6. package/html/documentation-index.html +3 -3
  7. package/html/guides/authentication-default-change.html +3 -3
  8. package/html/guides/authentication-guide.html +3 -3
  9. package/html/guides/claude-workflow-guide.html +3 -3
  10. package/html/guides/configuration-guide.html +3 -3
  11. package/html/guides/documentation-standards.html +3 -3
  12. package/html/guides/html-embedding-guide.html +3 -3
  13. package/html/guides/image-modal-guide.html +3 -3
  14. package/html/guides/phosphor-icons-guide.html +3 -3
  15. package/html/guides/private-directory-authentication-troubleshooting.html +3 -3
  16. package/html/guides/private-directory-authentication.html +3 -3
  17. package/html/guides/public-site-deployment.html +3 -3
  18. package/html/guides/search-engine-verification-guide.html +3 -3
  19. package/html/guides/seo-guide.html +3 -3
  20. package/html/guides/seo-optimization-guide.html +3 -3
  21. package/html/guides/supabase-authentication-complete-guide.html +3 -3
  22. package/html/guides/troubleshooting-guide.html +3 -3
  23. package/html/guides/windows-setup-guide.html +3 -3
  24. package/html/image-modal-test.html +3 -3
  25. package/html/index.html +3 -3
  26. package/html/private/cache-control-anti-pattern.html +3 -3
  27. package/html/private/launch/README.html +3 -3
  28. package/html/private/launch/auth-cleanup-summary.html +3 -3
  29. package/html/private/launch/bubble-plugin-specification.html +3 -3
  30. package/html/private/launch/go-to-market-strategy.html +3 -3
  31. package/html/private/launch/launch-announcements.html +3 -3
  32. package/html/private/launch/vercel-deployment-auth-setup.html +3 -3
  33. package/html/private/next-steps-walkthrough.html +3 -3
  34. package/html/private/supabase-auth-implementation-completed.html +3 -3
  35. package/html/private/supabase-auth-implementation-plan.html +3 -3
  36. package/html/private/supabase-auth-integration-plan.html +3 -3
  37. package/html/private/supabase-auth-setup-guide.html +3 -3
  38. package/html/private/test-private-doc.html +3 -3
  39. package/html/private/user-management-tooling.html +3 -3
  40. package/html/prompts/beautiful-documentation-design.html +3 -3
  41. package/html/prompts/markdown-document-standards.html +3 -3
  42. package/html/prompts/project-rename-strategy-sasha-publish.html +3 -3
  43. package/html/sitemap.xml +59 -59
  44. package/html/test-questions/how-does-it-work%3F.html +3 -3
  45. package/html/test-questions/step-1%3A%20getting-started.html +3 -3
  46. package/html/test-questions/what-is-the-purpose.html +3 -3
  47. package/html/vercel-cli-setup-guide.html +3 -3
  48. package/html/vercel-first-time-setup-guide.html +3 -3
  49. package/html-static/404.html +115 -0
  50. package/html-static/README.html +456 -0
  51. package/html-static/about-doc-builder.html +425 -0
  52. package/html-static/css/notion-style.css +2426 -0
  53. package/html-static/documentation-index.html +405 -0
  54. package/html-static/guides/authentication-default-change.html +304 -0
  55. package/html-static/guides/authentication-guide.html +443 -0
  56. package/html-static/guides/claude-workflow-guide.html +1008 -0
  57. package/html-static/guides/configuration-guide.html +406 -0
  58. package/html-static/guides/documentation-standards.html +628 -0
  59. package/html-static/guides/html-embedding-guide.html +395 -0
  60. package/html-static/guides/image-modal-guide.html +449 -0
  61. package/html-static/guides/phosphor-icons-guide.html +518 -0
  62. package/html-static/guides/private-directory-authentication-troubleshooting.html +489 -0
  63. package/html-static/guides/private-directory-authentication.html +475 -0
  64. package/html-static/guides/public-site-deployment.html +365 -0
  65. package/html-static/guides/search-engine-verification-guide.html +476 -0
  66. package/html-static/guides/seo-guide.html +595 -0
  67. package/html-static/guides/seo-optimization-guide.html +821 -0
  68. package/html-static/guides/supabase-authentication-complete-guide.html +800 -0
  69. package/html-static/guides/troubleshooting-guide.html +567 -0
  70. package/html-static/guides/windows-setup-guide.html +793 -0
  71. package/html-static/image-modal-test.html +252 -0
  72. package/html-static/index.html +456 -0
  73. package/html-static/js/main.js +1692 -0
  74. package/html-static/prompts/beautiful-documentation-design.html +718 -0
  75. package/html-static/prompts/markdown-document-standards.html +356 -0
  76. package/html-static/prompts/project-rename-strategy-sasha-publish.html +464 -0
  77. package/html-static/robots.txt +5 -0
  78. package/html-static/sitemap.xml +189 -0
  79. package/html-static/test-questions/how-does-it-work%3F.html +228 -0
  80. package/html-static/test-questions/step-1%3A%20getting-started.html +223 -0
  81. package/html-static/test-questions/what-is-the-purpose.html +227 -0
  82. package/html-static/vercel-cli-setup-guide.html +429 -0
  83. package/html-static/vercel-first-time-setup-guide.html +388 -0
  84. package/lib/config.js +9 -2
  85. package/lib/core-builder.js +148 -4
  86. package/package.json +1 -1
@@ -0,0 +1,628 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <meta name="description" content="This document defines the documentation standards and conventions for the @knowcode/doc-builder project. All documentation created for or by this project...">
7
+ <title>Document Standards for @knowcode/doc-builder</title>
8
+
9
+ <meta name="generator" content="@knowcode/doc-builder by Knowcode Ltd">
10
+ <meta name="author" content="Lindsay Smith">
11
+ <meta name="keywords" content="documentation, markdown, static site generator, vercel, notion-style, document, use">
12
+ <meta name="robots" content="index, follow">
13
+ <link rel="canonical" href="https://doc-builder-delta.vercel.app/guides/documentation-standards.html">
14
+
15
+ <!-- Open Graph / Facebook -->
16
+ <meta property="og:type" content="article">
17
+ <meta property="og:url" content="https://doc-builder-delta.vercel.app/guides/documentation-standards.html">
18
+ <meta property="og:title" content="Document Standards for @knowcode/doc-builder">
19
+ <meta property="og:description" content="This document defines the documentation standards and conventions for the @knowcode/doc-builder project. All documentation created for or by this project...">
20
+ <meta property="og:image" content="https://doc-builder-delta.vercel.app/og-default.png">
21
+ <meta property="og:site_name" content="@knowcode/doc-builder">
22
+ <meta property="og:locale" content="en_US">
23
+
24
+ <!-- Twitter Card -->
25
+ <meta name="twitter:card" content="summary_large_image">
26
+ <meta name="twitter:site" content="@planbbackups">
27
+ <meta name="twitter:creator" content="@planbbackups">
28
+ <meta name="twitter:title" content="Document Standards for @knowcode/doc-builder">
29
+ <meta name="twitter:description" content="This document defines the documentation standards and conventions for the @knowcode/doc-builder project. All documentation created for or by this project...">
30
+ <meta name="twitter:image" content="https://doc-builder-delta.vercel.app/og-default.png">
31
+
32
+ <!-- Custom Meta Tags -->
33
+ <meta name="google-site-verification" content="FtzcDTf5BQ9K5EfnGazQkgU2U4FiN3ITzM7gHwqUAqQ">
34
+ <meta name="msvalidate.01" content="B2D8C4C12C530D47AA962B24CAA09630">
35
+
36
+ <!-- Fonts -->
37
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
38
+
39
+ <!-- Icons -->
40
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
41
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.1/src/regular/style.css">
42
+
43
+ <!-- Mermaid -->
44
+ <script src="https://cdn.jsdelivr.net/npm/mermaid@10.6.1/dist/mermaid.min.js"></script>
45
+
46
+ <!-- Styles -->
47
+ <link rel="stylesheet" href="/css/notion-style.css">
48
+
49
+
50
+
51
+ <!-- Favicon -->
52
+ <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>✨</text></svg>">
53
+
54
+ <script type="application/ld+json">
55
+ {
56
+ "@context": "https://schema.org",
57
+ "@type": "TechArticle",
58
+ "headline": "Document Standards for @knowcode/doc-builder",
59
+ "description": "This document defines the documentation standards and conventions for the @knowcode/doc-builder project. All documentation created for or by this project...",
60
+ "author": {
61
+ "@type": "Person",
62
+ "name": "Lindsay Smith"
63
+ },
64
+ "publisher": {
65
+ "@type": "Organization",
66
+ "name": "Knowcode Ltd",
67
+ "url": "https://knowcode.tech"
68
+ },
69
+ "datePublished": "2025-08-07T11:50:26.072Z",
70
+ "dateModified": "2025-08-07T11:50:26.072Z",
71
+ "mainEntityOfPage": {
72
+ "@type": "WebPage",
73
+ "@id": "https://doc-builder-delta.vercel.app/guides/documentation-standards.html"
74
+ },
75
+ "breadcrumb": {
76
+ "@type": "BreadcrumbList",
77
+ "itemListElement": [
78
+ {
79
+ "@type": "ListItem",
80
+ "position": 1,
81
+ "name": "@knowcode/doc-builder",
82
+ "item": "https://doc-builder-delta.vercel.app"
83
+ },
84
+ {
85
+ "@type": "ListItem",
86
+ "position": 2,
87
+ "name": "Guides",
88
+ "item": "https://doc-builder-delta.vercel.app/guides/"
89
+ },
90
+ {
91
+ "@type": "ListItem",
92
+ "position": 3,
93
+ "name": "Documentation Standards",
94
+ "item": "https://doc-builder-delta.vercel.app/guides/documentation-standards.html"
95
+ }
96
+ ]
97
+ }
98
+ }
99
+ </script>
100
+ </head>
101
+ <body>
102
+ <!-- Header -->
103
+ <header class="header">
104
+ <div class="header-content">
105
+ <a href="/index.html" class="logo">@knowcode/doc-builder</a>
106
+
107
+ <div class="header-actions">
108
+ <div class="deployment-info">
109
+ <span class="deployment-date" title="Built with doc-builder v1.9.20">Last updated: Aug 7, 2025, 11:50 AM UTC</span>
110
+ </div>
111
+
112
+
113
+
114
+ <button id="theme-toggle" class="theme-toggle" aria-label="Toggle theme">
115
+ <i class="fas fa-moon"></i>
116
+ </button>
117
+
118
+ <button id="menu-toggle" class="menu-toggle" aria-label="Toggle menu">
119
+ <i class="fas fa-bars"></i>
120
+ </button>
121
+ </div>
122
+ </div>
123
+ </header>
124
+
125
+
126
+
127
+ <!-- Breadcrumbs -->
128
+ <nav class="breadcrumbs" id="breadcrumbs">
129
+ <!-- Breadcrumbs will be generated by JavaScript -->
130
+ </nav>
131
+
132
+ <!-- Main Content -->
133
+ <div class="main-wrapper">
134
+ <!-- Sidebar -->
135
+ <aside class="sidebar">
136
+ <div class="sidebar-header">
137
+ <div class="filter-box">
138
+ <input type="text" placeholder="Search menu..." class="filter-input" id="nav-filter">
139
+ <i class="fas fa-search filter-icon"></i>
140
+ </div>
141
+ </div>
142
+ <nav class="navigation">
143
+
144
+ <div class="nav-section" data-level="0">
145
+ <a class="nav-title toggle-all-nav expanded" href="#" id="nav-toggle-all" title="Collapse/Expand All">
146
+ <i class="ph ph-caret-down" id="toggle-all-icon"></i> Documentation
147
+ </a>
148
+ <div class="nav-content">
149
+ <a href="/README.html" class="nav-item" data-tooltip="@knowcode/doc-builder."><i class="ph ph-file-text"></i> Overview</a>
150
+ <a href="/about-doc-builder.html" class="nav-item" data-tooltip="About @knowcode/doc-builder."><i class="ph ph-check-circle" style="color: #059669;"></i> About Doc Builder</a>
151
+ <a href="/documentation-index.html" class="nav-item" data-tooltip="This directory contains additional documentation for the @knowcode/doc-builder project, organized by topic and purpose."><i class="ph ph-pencil-simple" style="color: #d97706;"></i> Documentation Index</a>
152
+ <a href="/image-modal-test.html" class="nav-item" data-tooltip="This document tests the new image modal functionality in doc-builder."><i class="ph ph-file-text"></i> Image Modal Test</a>
153
+ <a href="/vercel-cli-setup-guide.html" class="nav-item" data-tooltip="This guide provides comprehensive instructions for installing the Vercel CLI across different operating systems."><i class="ph ph-check-circle" style="color: #059669;"></i> Vercel Cli Setup Guide</a>
154
+ <a href="/vercel-first-time-setup-guide.html" class="nav-item" data-tooltip="This guide walks you through the Vercel deployment process when using ."><i class="ph ph-check-circle" style="color: #059669;"></i> Vercel First Time Setup Guide</a></div></div>
155
+ <div class="nav-section" data-level="1">
156
+ <a class="nav-title collapsible expanded" href="#" data-target="nav-guides-1" >
157
+ <i class="ph ph-caret-right collapse-icon"></i><i class="ph ph-book"></i> Guides
158
+ </a>
159
+ <div class="nav-content" id="nav-guides-1">
160
+ <a href="/guides/authentication-default-change.html" class="nav-item" data-tooltip="Starting from version 1.7.4, @knowcode/doc-builder now defaults to no authentication for all documentation sites."><i class="ph ph-file-text"></i> Authentication Default Change</a>
161
+ <a href="/guides/authentication-guide.html" class="nav-item" data-tooltip="@knowcode/doc-builder supports enterprise-grade authentication through Supabase - a secure, scalable authentication platform."><i class="ph ph-check-circle" style="color: #059669;"></i> Authentication Guide</a>
162
+ <a href="/guides/claude-workflow-guide.html" class="nav-item" data-tooltip="This guide demonstrates an efficient workflow for using Claude Code with a refined CLAUDE.md file to create high-quality documentation and deploy it..."><i class="ph ph-pencil-simple" style="color: #d97706;"></i> Claude Workflow Guide</a>
163
+ <a href="/guides/configuration-guide.html" class="nav-item" data-tooltip="This guide explains how @knowcode/doc-builder handles configuration files and settings."><i class="ph ph-check-circle" style="color: #059669;"></i> Configuration Guide</a>
164
+ <a href="/guides/documentation-standards.html" class="nav-item active" data-tooltip="This document defines the documentation standards and conventions for the @knowcode/doc-builder project."><i class="ph ph-pencil-simple" style="color: #d97706;"></i> Documentation Standards</a>
165
+ <a href="/guides/html-embedding-guide.html" class="nav-item" data-tooltip="Starting from version 1.9.2, doc-builder treats HTML files ( and ) as attachments that are automatically copied to your output directory during the..."><i class="ph ph-check-circle" style="color: #059669;"></i> Html Embedding Guide</a>
166
+ <a href="/guides/image-modal-guide.html" class="nav-item" data-tooltip="When users click on any image in your generated documentation, it opens in a professional modal overlay with: Full-screen viewing experience Smooth..."><i class="ph ph-check-circle" style="color: #059669;"></i> Image Modal Guide</a>
167
+ <a href="/guides/phosphor-icons-guide.html" class="nav-item" data-tooltip="@knowcode/doc-builder automatically converts Unicode emojis in your markdown files to beautiful Phosphor icons in the generated HTML."><i class="ph ph-pencil-simple" style="color: #d97706;"></i> Phosphor Icons Guide</a>
168
+ <a href="/guides/private-directory-authentication.html" class="nav-item" data-tooltip="The @knowcode/doc-builder provides flexible authentication options to protect your documentation."><i class="ph ph-check-circle" style="color: #059669;"></i> Private Directory Authentication</a>
169
+ <a href="/guides/private-directory-authentication-troubleshooting.html" class="nav-item" data-tooltip="Private Directory Authentication Troubleshooting."><i class="ph ph-check-circle" style="color: #059669;"></i> Private Directory Authentication Troubleshooting</a>
170
+ <a href="/guides/public-site-deployment.html" class="nav-item" data-tooltip="The @knowcode/doc-builder now supports deploying public documentation sites without authentication."><i class="ph ph-check-circle" style="color: #059669;"></i> Public Site Deployment</a>
171
+ <a href="/guides/search-engine-verification-guide.html" class="nav-item" data-tooltip="Search engine verification provides access to powerful webmaster tools:."><i class="ph ph-check-circle" style="color: #059669;"></i> Search Engine Verification Guide</a>
172
+ <a href="/guides/seo-guide.html" class="nav-item" data-tooltip="@knowcode/doc-builder includes comprehensive SEO (Search Engine Optimization) features to help your documentation rank better in search results and..."><i class="ph ph-check-circle" style="color: #059669;"></i> Seo Guide</a>
173
+ <a href="/guides/seo-optimization-guide.html" class="nav-item" data-tooltip="Comprehensive guide to optimizing documentation for search engines. Learn SEO best practices, use built-in features, and improve your rankings."><i class="ph ph-check-circle" style="color: #059669;"></i> SEO Optimization Guide for @knowcode/doc-builder</a>
174
+ <a href="/guides/supabase-authentication-complete-guide.html" class="nav-item" data-tooltip="@knowcode/doc-builder includes built-in Supabase authentication that provides enterprise-grade security with zero configuration."><i class="ph ph-check-circle" style="color: #059669;"></i> Supabase Authentication Complete Guide</a>
175
+ <a href="/guides/troubleshooting-guide.html" class="nav-item" data-tooltip="This guide helps you resolve common issues when using @knowcode/doc-builder."><i class="ph ph-check-circle" style="color: #059669;"></i> Troubleshooting Guide</a>
176
+ <a href="/guides/windows-setup-guide.html" class="nav-item" data-tooltip="This guide helps Windows users set up the complete AI-powered documentation workflow using Claude Code, @knowcode/doc-builder, and Vercel."><i class="ph ph-check-circle" style="color: #059669;"></i> Windows Setup Guide</a></div></div>
177
+ <div class="nav-section" data-level="1">
178
+ <a class="nav-title collapsible" href="#" data-target="nav-prompts-1" >
179
+ <i class="ph ph-caret-right collapse-icon"></i><i class="ph ph-chat-circle-dots"></i> Prompts
180
+ </a>
181
+ <div class="nav-content collapsed" id="nav-prompts-1">
182
+ <a href="/prompts/beautiful-documentation-design.html" class="nav-item" data-tooltip="🎨 Beautiful Documentation Design Guide."><i class="ph ph-check-circle" style="color: #059669;"></i> Beautiful Documentation Design</a>
183
+ <a href="/prompts/markdown-document-standards.html" class="nav-item" data-tooltip="Detailed introduction to the topic..."><i class="ph ph-pencil-simple" style="color: #d97706;"></i> Markdown Document Standards</a>
184
+ <a href="/prompts/project-rename-strategy-sasha-publish.html" class="nav-item" data-tooltip="This document outlines the comprehensive strategy for renaming the @knowcode/doc-builder project to &quot;sasha-publish&quot;, including all package references,..."><i class="ph ph-x-circle" style="color: #dc2626;"></i> Project Rename Strategy Sasha Publish</a></div></div>
185
+ <div class="nav-section" data-level="1">
186
+ <a class="nav-title collapsible" href="#" data-target="nav-test-questions-1" >
187
+ <i class="ph ph-caret-right collapse-icon"></i><i class="ph ph-folder"></i> Test Questions
188
+ </a>
189
+ <div class="nav-content collapsed" id="nav-test-questions-1">
190
+ <a href="/test-questions/how-does-it-work%3F.html" class="nav-item" data-tooltip="This is a test file to verify that question marks work properly in filenames."><i class="ph ph-file-text"></i> How Does It Work?</a>
191
+ <a href="/test-questions/step-1%3A%20getting-started.html" class="nav-item" data-tooltip="Step 1: Getting Started."><i class="ph ph-file-text"></i> Step 1: Getting Started</a>
192
+ <a href="/test-questions/what-is-the-purpose.html" class="nav-item" data-tooltip="Understanding the purpose of our documentation system"><i class="ph ph-file-text"></i> What Is The Purpose?</a></div></div>
193
+ </nav>
194
+ <div class="resize-handle"></div>
195
+ </aside>
196
+
197
+ <!-- Content Area -->
198
+ <main class="content">
199
+ <div class="content-inner">
200
+ <h1>Document Standards for @knowcode/doc-builder</h1>
201
+ <h2>Overview</h2>
202
+ <p>This document defines the documentation standards and conventions for the @knowcode/doc-builder project. All documentation created for or by this project should follow these guidelines to ensure consistency, clarity, and maintainability.</p>
203
+ <h2>Document Structure Standards</h2>
204
+ <h3>Document Header Format</h3>
205
+ <p>Every document MUST include the following metadata at the top:</p>
206
+ <pre><code class="language-markdown"># Document Title
207
+
208
+ **Generated**: YYYY-MM-DD HH:MM UTC
209
+ **Status**: Draft/In Progress/Complete
210
+ **Verified**: ✅ (for verified information) / ❓ (for speculated information)
211
+
212
+ ## Overview
213
+
214
+ Brief description of the document&#39;s contents and purpose.
215
+ </code></pre>
216
+ <h3>Section Organization</h3>
217
+ <ol>
218
+ <li><strong>Title</strong> (H1) - Single, descriptive title</li>
219
+ <li><strong>Metadata</strong> - Generation date, status, verification</li>
220
+ <li><strong>Overview</strong> - Brief summary of document purpose</li>
221
+ <li><strong>Main Content</strong> - Organized with clear headings</li>
222
+ <li><strong>Document History</strong> - Track significant changes</li>
223
+ </ol>
224
+ <h2>Naming Conventions</h2>
225
+ <h3>Document File Names</h3>
226
+ <p>Use lowercase with hyphens, following these patterns:</p>
227
+ <ul>
228
+ <li><strong>Feature Documentation</strong>: <code>feature-{name}-guide.md</code></li>
229
+ <li><strong>API Documentation</strong>: <code>api-{endpoint}-reference.md</code></li>
230
+ <li><strong>Technical Guides</strong>: <code>{component}-{topic}-guide.md</code></li>
231
+ <li><strong>Architecture Documents</strong>: <code>architecture-{system}-overview.md</code></li>
232
+ <li><strong>Implementation Plans</strong>: <code>plan-{feature}-implementation.md</code></li>
233
+ <li><strong>Analysis Documents</strong>: <code>analysis-{topic}-{specifics}.md</code></li>
234
+ <li><strong>Troubleshooting Guides</strong>: <code>troubleshoot-{issue}-guide.md</code></li>
235
+ <li><strong>Change Logs</strong>: <code>CHANGELOG.md</code> (always uppercase)</li>
236
+ </ul>
237
+ <h3>Special Files</h3>
238
+ <ul>
239
+ <li><code>README.md</code> - Project overview and getting started</li>
240
+ <li><code>CHANGELOG.md</code> - Version history following Keep a Changelog format</li>
241
+ <li><code>CLAUDE.md</code> - AI assistant guidance (project-specific)</li>
242
+ <li><code>DOCUMENT-STANDARDS.md</code> - This file</li>
243
+ </ul>
244
+ <h2>Content Standards</h2>
245
+ <h3>1. Mermaid Diagrams</h3>
246
+ <p>Include diagrams wherever they help explain complex concepts:</p>
247
+ <pre><code class="language-markdown"><div class="mermaid-wrapper">
248
+ <div class="mermaid">graph TD
249
+ A[User Input] --> B{Valid?}
250
+ B -->|Yes| C[Process]
251
+ B -->|No| D[Error]
252
+ C --> E[Output]
253
+
254
+ style A fill:#f9f,stroke:#333,stroke-width:2px
255
+ style E fill:#9f9,stroke:#333,stroke-width:2px</div>
256
+ </div>
257
+ </code></pre>
258
+ <p>Guidelines:</p>
259
+ <ul>
260
+ <li>Use consistent node naming</li>
261
+ <li>Add clear labels and descriptions</li>
262
+ <li>Apply styling for better visual hierarchy</li>
263
+ <li>Include diagram titles where appropriate</li>
264
+ </ul>
265
+ <h3>2. Information Verification</h3>
266
+ <p>Mark all information with verification status:</p>
267
+ <ul>
268
+ <li><i style="font-size: 1.2em" class="ph ph-check-circle" aria-label="checked"></i> <strong>Verified</strong>: Information confirmed through testing or official sources</li>
269
+ <li><i style="font-size: 1.2em" class="ph ph-question" aria-label="question"></i> <strong>Speculated</strong>: Assumptions or unconfirmed information</li>
270
+ <li><i style="font-size: 1.2em" class="ph ph-warning-circle" aria-label="warning"></i> <strong>Warning</strong>: Important caveats or potential issues</li>
271
+ <li><i style="font-size: 1.2em" class="ph ph-barricade" aria-label="under construction"></i> <strong>In Progress</strong>: Features or documentation under development</li>
272
+ </ul>
273
+ <p>Example:</p>
274
+ <pre><code class="language-markdown">### Feature Status
275
+ - ✅ **Markdown parsing**: Fully implemented and tested
276
+ - ❓ **Performance impact**: Estimated 100ms for 50 files
277
+ - ⚠️ **Large files**: May timeout on files &gt; 10MB
278
+ - 🚧 **Search feature**: Currently in development
279
+ </code></pre>
280
+ <h3>3. Code Examples</h3>
281
+ <p>Always include practical, tested examples:</p>
282
+ <pre><code class="language-javascript">// Good example - with context and error handling
283
+ const { build } = require(&#39;@knowcode/doc-builder&#39;);
284
+
285
+ const config = {
286
+ siteName: &#39;My Documentation&#39;,
287
+ docsDir: &#39;./docs&#39;,
288
+ outputDir: &#39;./dist&#39;
289
+ };
290
+
291
+ try {
292
+ await build(config);
293
+ console.log(&#39;✅ Build successful&#39;);
294
+ } catch (error) {
295
+ console.error(&#39;❌ Build failed:&#39;, error.message);
296
+ }
297
+ </code></pre>
298
+ <p>Guidelines:</p>
299
+ <ul>
300
+ <li>Use syntax highlighting</li>
301
+ <li>Include error handling</li>
302
+ <li>Add helpful comments</li>
303
+ <li>Show both correct and incorrect usage</li>
304
+ <li>Test all examples before documenting</li>
305
+ </ul>
306
+ <h3>4. Command Examples</h3>
307
+ <p>Format commands clearly with descriptions:</p>
308
+ <pre><code class="language-bash"># Install the package
309
+ npm install -D @knowcode/doc-builder
310
+
311
+ # Build documentation
312
+ npx doc-builder build
313
+
314
+ # Start development server
315
+ npx doc-builder dev --port 3000
316
+
317
+ # Deploy to Vercel
318
+ npx doc-builder deploy --prod
319
+ </code></pre>
320
+ <h2>Version Control Standards</h2>
321
+ <h3>Changelog Management</h3>
322
+ <p>ALWAYS maintain <code>CHANGELOG.md</code> for all significant or material changes:</p>
323
+ <pre><code class="language-markdown">## [1.4.12] - 2025-07-21
324
+
325
+ ### Fixed
326
+ - Fixed h1 title alignment to extend full width
327
+ - Added negative margins to counteract padding
328
+
329
+ ### Background
330
+ - The h1 was appearing offset due to content padding
331
+ - Now extends full width for better hierarchy
332
+ </code></pre>
333
+ <p>Categories:</p>
334
+ <ul>
335
+ <li><strong>Added</strong> - New features</li>
336
+ <li><strong>Changed</strong> - Changes to existing functionality</li>
337
+ <li><strong>Deprecated</strong> - Soon-to-be removed features</li>
338
+ <li><strong>Removed</strong> - Removed features</li>
339
+ <li><strong>Fixed</strong> - Bug fixes</li>
340
+ <li><strong>Security</strong> - Security fixes</li>
341
+ <li><strong>Background</strong> - Context for the changes</li>
342
+ </ul>
343
+ <h3>Commit Messages</h3>
344
+ <p>Follow conventional commits:</p>
345
+ <ul>
346
+ <li><code>feat:</code> New features</li>
347
+ <li><code>fix:</code> Bug fixes</li>
348
+ <li><code>docs:</code> Documentation changes</li>
349
+ <li><code>chore:</code> Maintenance tasks</li>
350
+ <li><code>refactor:</code> Code refactoring</li>
351
+ <li><code>test:</code> Test additions/changes</li>
352
+ </ul>
353
+ <h2>Markdown Best Practices</h2>
354
+ <h3>Headers</h3>
355
+ <pre><code class="language-markdown"># Main Title (H1 - one per document)
356
+
357
+ ## Major Section (H2)
358
+
359
+ ### Subsection (H3)
360
+
361
+ #### Detail Level (H4)
362
+ </code></pre>
363
+ <ul>
364
+ <li>Use hierarchical structure</li>
365
+ <li>Don&#39;t skip levels</li>
366
+ <li>Keep headers concise but descriptive</li>
367
+ </ul>
368
+ <h3>Lists</h3>
369
+ <p>Unordered lists for non-sequential items:</p>
370
+ <pre><code class="language-markdown">- First item
371
+ - Second item
372
+ - Nested item
373
+ - Another nested item
374
+ - Third item
375
+ </code></pre>
376
+ <p>Numbered lists for sequential steps:</p>
377
+ <pre><code class="language-markdown">1. First step
378
+ 2. Second step
379
+ 3. Third step
380
+ </code></pre>
381
+ <h3>Tables</h3>
382
+ <p>Keep tables readable and well-formatted:</p>
383
+ <pre><code class="language-markdown">| Feature | Status | Version | Notes |
384
+ |---------|--------|---------|-------|
385
+ | Mermaid | ✅ Ready | 1.0.0 | Full support |
386
+ | Search | 🚧 WIP | 1.5.0 | In development |
387
+ | Auth | ✅ Ready | 1.3.0 | Optional feature |
388
+ </code></pre>
389
+ <h3>Links</h3>
390
+ <ul>
391
+ <li>Use descriptive link text: <code>[View deployment guide](./deploy.md)</code></li>
392
+ <li>Avoid: <code>[click here](./deploy.md)</code></li>
393
+ <li>Prefer relative links for internal docs</li>
394
+ <li>Use absolute URLs for external resources</li>
395
+ </ul>
396
+ <h2>Quality Standards</h2>
397
+ <h3>Clarity</h3>
398
+ <ul>
399
+ <li>Write for your target audience</li>
400
+ <li>Define technical terms on first use</li>
401
+ <li>Use simple language where possible</li>
402
+ <li>Include examples for complex concepts</li>
403
+ </ul>
404
+ <h3>Completeness</h3>
405
+ <ul>
406
+ <li>Cover all aspects of the topic</li>
407
+ <li>Include edge cases and limitations</li>
408
+ <li>Document prerequisites</li>
409
+ <li>Provide troubleshooting guidance</li>
410
+ </ul>
411
+ <h3>Accuracy</h3>
412
+ <ul>
413
+ <li>Verify all technical details</li>
414
+ <li>Test code examples</li>
415
+ <li>Update when implementation changes</li>
416
+ <li>Mark speculation clearly</li>
417
+ </ul>
418
+ <h3>Consistency</h3>
419
+ <ul>
420
+ <li>Use same terminology throughout</li>
421
+ <li>Follow naming conventions</li>
422
+ <li>Maintain style consistency</li>
423
+ <li>Cross-reference related documents</li>
424
+ </ul>
425
+ <h2>Document Types</h2>
426
+ <h3>1. Feature Documentation</h3>
427
+ <p>Structure:</p>
428
+ <pre><code class="language-markdown"># Feature Name
429
+
430
+ **Generated**: [date]
431
+ **Status**: Complete
432
+ **Verified**: ✅
433
+
434
+ ## Overview
435
+ What the feature does and why it exists
436
+
437
+ ## Usage
438
+ How to use the feature with examples
439
+
440
+ ## Configuration
441
+ Available options and settings
442
+
443
+ ## Examples
444
+ Practical use cases
445
+
446
+ ## Troubleshooting
447
+ Common issues and solutions
448
+ </code></pre>
449
+ <h3>2. Technical Guides</h3>
450
+ <p>Structure:</p>
451
+ <pre><code class="language-markdown"># Technical Guide: [Topic]
452
+
453
+ **Generated**: [date]
454
+ **Status**: Complete
455
+ **Verified**: ✅
456
+
457
+ ## Overview
458
+ Technical context and goals
459
+
460
+ ## Architecture
461
+ System design and components
462
+
463
+ ## Implementation
464
+ Step-by-step technical details
465
+
466
+ ## Testing
467
+ How to verify functionality
468
+
469
+ ## Performance
470
+ Benchmarks and optimization
471
+ </code></pre>
472
+ <h3>3. API Documentation</h3>
473
+ <p>Structure:</p>
474
+ <pre><code class="language-markdown"># API: [Endpoint/Function Name]
475
+
476
+ **Generated**: [date]
477
+ **Status**: Complete
478
+ **Verified**: ✅
479
+
480
+ ## Overview
481
+ What the API does
482
+
483
+ ## Parameters
484
+ | Name | Type | Required | Description |
485
+ |------|------|----------|-------------|
486
+
487
+ ## Response
488
+ Expected response format
489
+
490
+ ## Examples
491
+ Request/response examples
492
+
493
+ ## Error Handling
494
+ Possible errors and meanings
495
+ </code></pre>
496
+ <h2>File Organization</h2>
497
+ <h3>Directory Structure</h3>
498
+ <pre><code>doc-builder/
499
+ ├── README.md # Project overview
500
+ ├── CHANGELOG.md # Version history
501
+ ├── CLAUDE.md # AI assistant guide
502
+ ├── DOCUMENT-STANDARDS.md # This file
503
+ ├── docs/ # Additional documentation
504
+ │ ├── guides/ # How-to guides
505
+ │ ├── api/ # API documentation
506
+ │ ├── architecture/ # System design docs
507
+ │ └── troubleshooting/ # Problem-solving guides
508
+ </code></pre>
509
+ <h3>File Management</h3>
510
+ <ul>
511
+ <li>Keep active documentation in appropriate directories</li>
512
+ <li>Archive outdated docs with date suffix: <code>old-guide-2025-01-15.md</code></li>
513
+ <li>Remove unused files after archiving</li>
514
+ <li>Maintain README.md in each directory explaining contents</li>
515
+ </ul>
516
+ <h2>Special Considerations</h2>
517
+ <h3>Security</h3>
518
+ <ul>
519
+ <li>Never include credentials or API keys</li>
520
+ <li>Use placeholders for sensitive data: <code>API_KEY=&lt;your-api-key-here&gt;</code></li>
521
+ <li>Document security implications</li>
522
+ <li>Include security warnings where relevant</li>
523
+ </ul>
524
+ <h3>Performance</h3>
525
+ <ul>
526
+ <li>Document performance characteristics</li>
527
+ <li>Include benchmarks where applicable</li>
528
+ <li>Note resource requirements</li>
529
+ <li>Provide optimization tips</li>
530
+ </ul>
531
+ <h3>Accessibility</h3>
532
+ <ul>
533
+ <li>Use clear, simple language</li>
534
+ <li>Provide alt text for images</li>
535
+ <li>Structure documents logically</li>
536
+ <li>Consider screen reader users</li>
537
+ </ul>
538
+ <h2>Document Maintenance</h2>
539
+ <h3>Review Schedule</h3>
540
+ <ul>
541
+ <li>Technical docs: Review with each minor version</li>
542
+ <li>API docs: Review with any API change</li>
543
+ <li>Guides: Review quarterly</li>
544
+ <li>README: Update with significant changes</li>
545
+ </ul>
546
+ <h3>Update Process</h3>
547
+ <ol>
548
+ <li>Check document metadata</li>
549
+ <li>Verify technical accuracy</li>
550
+ <li>Update examples</li>
551
+ <li>Test code snippets</li>
552
+ <li>Update changelog</li>
553
+ <li>Commit with descriptive message</li>
554
+ </ol>
555
+ <h3>Document History</h3>
556
+ <p>Include at the bottom of long-lived documents:</p>
557
+ <pre><code class="language-markdown">## Document History
558
+
559
+ | Date | Version | Author | Changes |
560
+ |------|---------|--------|---------|
561
+ | 2025-07-21 | 1.0 | System | Initial creation |
562
+ | 2025-07-22 | 1.1 | Dev | Added examples |
563
+ </code></pre>
564
+ <h2>Tools and Automation</h2>
565
+ <h3>Building Documentation</h3>
566
+ <p>The doc-builder automatically:</p>
567
+ <ul>
568
+ <li>Generates navigation from folder structure</li>
569
+ <li>Extracts summaries for tooltips</li>
570
+ <li>Renders mermaid diagrams</li>
571
+ <li>Applies syntax highlighting</li>
572
+ <li>Creates responsive layouts</li>
573
+ </ul>
574
+ <h3>Preview Changes</h3>
575
+ <pre><code class="language-bash"># Preview documentation locally
576
+ npx doc-builder dev
577
+
578
+ # Build and check output
579
+ npx doc-builder build
580
+ open html/index.html
581
+ </code></pre>
582
+ <h2>Conclusion</h2>
583
+ <p>Following these standards ensures:</p>
584
+ <ul>
585
+ <li>Consistent, professional documentation</li>
586
+ <li>Easy navigation and discovery</li>
587
+ <li>Clear communication of technical concepts</li>
588
+ <li>Maintainable documentation over time</li>
589
+ </ul>
590
+ <p>Remember: Good documentation is as important as good code. It enables others (including your future self) to understand, use, and maintain the project effectively.</p>
591
+ <hr>
592
+ <h2>Document History</h2>
593
+ <table>
594
+ <thead>
595
+ <tr>
596
+ <th>Date</th>
597
+ <th>Version</th>
598
+ <th>Author</th>
599
+ <th>Changes</th>
600
+ </tr>
601
+ </thead>
602
+ <tbody><tr>
603
+ <td>2025-07-21</td>
604
+ <td>1.0</td>
605
+ <td>System</td>
606
+ <td>Initial creation from project standards</td>
607
+ </tr>
608
+ </tbody></table>
609
+
610
+ </div>
611
+ </main>
612
+ </div>
613
+
614
+ <!-- Scripts -->
615
+ <script>
616
+ // Pass configuration to frontend
617
+ window.docBuilderConfig = {
618
+ features: {
619
+ showPdfDownload: true,
620
+ menuDefaultOpen: false,
621
+ mermaidEnhanced: true
622
+ }
623
+ };
624
+ </script>
625
+ <script src="/js/main.js"></script>
626
+
627
+ </body>
628
+ </html>