Skip to content

Commit ef9446e

Browse files
authored
Merge pull request #89 from bufferings/work
Comprehensive documentation improvements
2 parents f25c190 + df95764 commit ef9446e

File tree

7 files changed

+176
-574
lines changed

7 files changed

+176
-574
lines changed

.cursor/rules/docs.mdc

Lines changed: 25 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,48 @@
11
---
22
description: 'Guidelines for writing accurate, well-structured documentation'
3-
globs: ['**/docs/**/*.md', '**/README.md', '**/*.mdc']
3+
globs: ['**/docs/**/*.md', '**/README.md']
44
alwaysApply: false
55
---
66

77
# Documentation Writing Rules
88

9-
## Core Principle: Source Code First
9+
## Source Code First
1010

11-
**NEVER use guesswork or assumptions when writing documentation.**
11+
**Never write documentation based on assumptions or guesswork.**
1212

13-
### Mandatory Process
13+
Always read and understand the actual source code before writing documentation:
1414

15-
1. **Read the Source Code**: Always read and understand the actual implementation before writing any documentation
16-
2. **Verify Examples**: All code examples must be based on real, working code from the codebase
17-
3. **Check API Usage**: Verify method signatures, parameter types, and return values from the actual source
18-
4. **Test Assumptions**: If unsure about any behavior, examine the code rather than guessing
19-
20-
### What to Read
21-
22-
- **Main API functions**: Understand how they work internally
23-
- **Type definitions**: Get accurate parameter and return types
24-
- **Example files**: Use patterns from existing examples in the codebase
25-
- **Plugin implementations**: Understand actual plugin architecture
26-
- **Test files**: See real usage patterns and edge cases
27-
28-
### Prohibited Practices
29-
30-
- ❌ Writing documentation based on common framework patterns
31-
- ❌ Assuming API behavior without checking source code
32-
- ❌ Copying examples from similar frameworks
33-
- ❌ Guessing method signatures or parameter types
34-
- ❌ Making up configuration options that don't exist
35-
36-
### Required Practices
37-
38-
- ✅ Read the actual source code before writing
39-
- ✅ Base all examples on real code from the repository
40-
- ✅ Verify all API calls against the implementation
41-
- ✅ Check type definitions for accuracy
42-
- ✅ Test examples against the actual codebase
43-
44-
### When in Doubt
45-
46-
- Read more source code
47-
- Look for existing examples in the codebase
15+
- Read main API functions, type definitions, and existing examples
16+
- Verify all code examples work with the actual implementation
17+
- Base method signatures and behaviors on real source code
4818
- Check test files for usage patterns
49-
- Never guess - always verify
50-
51-
## Writing Style Guidelines
5219

53-
### Clear Structure Over Bold Text
20+
Never guess API behavior, copy from other frameworks, or make up configuration options.
5421

55-
**Write documents that convey importance through structure, not formatting.**
22+
## Writing Style
5623

57-
### Mandatory Practices
24+
### Structure Over Formatting
5825

59-
- ✅ Use heading hierarchy (h1, h2, h3) to show importance and organization
60-
- ✅ Write complete, flowing sentences instead of bullet-pointed fragments
61-
- ✅ Let content organization and natural language convey emphasis
62-
- ✅ Use section structure to guide readers through logical progression
26+
Use clear heading hierarchy and natural prose instead of bold text for emphasis:
6327

64-
### Prohibited Practices
28+
- ✅ Descriptive subheadings and logical organization
29+
- ✅ Complete sentences that flow naturally
30+
- ❌ Bold text for emphasis (except critical warnings)
6531

66-
- ❌ Using bold text (**text**) to emphasize importance
67-
- ❌ Relying on formatting instead of clear writing to convey meaning
68-
- ❌ Creating bullet lists where prose would be more natural
69-
- ❌ Bold text in navigation links and call-to-action elements
32+
### Simple and Direct
7033

71-
### Writing Approach
34+
- Start with the simplest working example
35+
- Focus on essential value proposition
36+
- Let code examples do the explaining
37+
- Keep explanatory text concise
7238

73-
- Use descriptive subheadings instead of bold keywords
74-
- Write cohesive paragraphs that flow naturally
75-
- Let the information hierarchy speak for itself
76-
- Make important points clear through placement and context, not bold formatting
39+
### Honest Tone
7740

78-
### Exception
79-
80-
Bold text may be used sparingly for:
81-
82-
- ✅ True emphasis within technical explanations (very rare)
83-
- ✅ Highlighting critical warnings or errors
41+
- State capabilities factually without overselling
42+
- Avoid negative comparisons with other frameworks
43+
- Never fabricate testimonials or quotes
44+
- Be positive but realistic about limitations
8445

8546
## Remember
8647

87-
Documentation that contains incorrect information is worse than no documentation at all. Accuracy is paramount.
88-
89-
Quality documentation guides readers through natural flow and clear structure, not visual emphasis.
48+
Inaccurate documentation is worse than no documentation. Always verify against source code.

docs/.vitepress/config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ export default defineConfig({
3333
items: [
3434
{ text: 'What is Kori?', link: '/en/guide/what-is-kori' },
3535
{ text: 'Getting Started', link: '/en/guide/getting-started' },
36-
{ text: 'Configuration', link: '/en/guide/configuration' },
3736
],
3837
},
3938
{
@@ -98,7 +97,6 @@ export default defineConfig({
9897
items: [
9998
{ text: 'Koriとは?', link: '/ja/guide/what-is-kori' },
10099
{ text: 'はじめかた', link: '/ja/guide/getting-started' },
101-
{ text: '設定', link: '/ja/guide/configuration' },
102100
],
103101
},
104102
{

docs/en/examples/rest-api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,5 +766,4 @@ app.onError((ctx, error) => {
766766

767767
- [File Upload Example](/en/examples/file-upload) - Handle file uploads in REST APIs
768768
- [Authentication with Plugins](/en/guide/plugins) - Implement JWT authentication plugins
769-
- [Database Configuration](/en/guide/configuration) - Configure database connections
770769
- [CORS Plugin](/en/extensions/cors-plugin) - Learn about CORS configuration

0 commit comments

Comments
 (0)