Skip to content

Commit b30cc27

Browse files
committed
Enhance README.md with comprehensive sections on features, usage, and project structure. Streamline content for clarity and improve organization, including new sections for productivity, ideal use cases, and benefits for teams. Update configuration examples and commands for better user guidance.
1 parent 3360f47 commit b30cc27

File tree

1 file changed

+220
-116
lines changed

1 file changed

+220
-116
lines changed

README.md

Lines changed: 220 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -1,169 +1,273 @@
11
# Knowledge - Modern Documentation Generator
22

3-
[![GitHub stars](https://img.shields.io/github/stars/yourorg/knowledge)](https://github.com/yourorg/knowledge/stargazers)
4-
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5-
[![Documentation](https://img.shields.io/badge/docs-knowledge.dev-blue)](https://knowledge.dev)
3+
[![GitHub stars](https://img.shields.io/github/stars/yourorg/knowledge)](https://github.com/yourorg/knowledge/stargazers) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Documentation](https://img.shields.io/badge/docs-knowledge.dev-blue)](https://knowledge.dev)
64

75
> Transform how your team creates, organizes, and shares knowledge
86
9-
A modern, open-source documentation platform that transforms how teams create, organize, and share knowledge. Built for developers, designed for everyone.
7+
## 🎯 What is Knowledge?
108

11-
## 🌟 Why Knowledge?
9+
**Knowledge** is a modern static documentation generator that transforms Markdown files into professional documentation sites. It's the perfect tool for anyone who wants to create beautiful and functional documentation without complications.
1210

13-
- **Developer First** - Built by developers, for developers
14-
- **Modern Stack** - Latest web technologies for best performance
15-
- **Extensible** - Plugin system for unlimited customization
16-
- **Community Driven** - Open source with active community support
11+
## ⚡ Why use Knowledge?
1712

18-
## 🎯 Key Features
13+
### **Extreme Simplicity**
14+
- Write in plain Markdown
15+
- Configure once, use always
16+
- Generate professional sites automatically
1917

20-
- **Modern Design**: Clean, professional interface with attention to detail
21-
- **Responsive**: Mobile-first design that works on all devices
22-
- **Dark Mode**: Automatic theme switching with smooth transitions
23-
- **Search**: Real-time search functionality
24-
- **Code Highlighting**: Syntax highlighting with copy-to-clipboard
25-
- **Navigation**: Auto-generated navigation with smooth scrolling
26-
- **Accessibility**: WCAG compliant with keyboard navigation support
18+
### **Professional Features**
19+
- 🔍 **Instant search** across all content
20+
- 📱 **Responsive design** (mobile + desktop)
21+
- 🌙 **Automatic dark mode**
22+
- 🎨 **Syntax highlighting** for code
23+
- 🧭 **Automatic navigation** based on folders
2724

28-
## 🛠️ Technical Stack
25+
### **Productivity**
26+
-**Live reload** during development
27+
- 🚀 **Fast build** with Bun.js
28+
- 📦 **Simple deploy** to any hosting
29+
- 🔧 **Zero configuration** required
2930

30-
- **TypeScript**: Type-safe development
31-
- **Modern CSS**: CSS Grid, Flexbox, Custom Properties
32-
- **Vanilla JavaScript**: No framework dependencies
33-
- **Markdown**: Standard markdown with extensions
34-
35-
## 📁 Project Structure
31+
## 🚀 How to Use (3 Steps)
3632

33+
### 1. **Structure your files**
34+
```
35+
my-project/
36+
├── docs/ # 📝 Your .md files here
37+
│ ├── index.md # Home page
38+
│ ├── installation.md # Guides
39+
│ └── api/ # Organize in folders
40+
│ └── reference.md
41+
└── knowledge.config.ts # ⚙️ Configuration (optional)
3742
```
38-
knowledge/
39-
├── src/ # Source code
40-
├── themes/
41-
│ └── default/
42-
│ ├── layouts/ # HTML templates
43-
│ └── assets/
44-
│ ├── css/ # Stylesheets
45-
│ └── js/ # JavaScript
46-
├── templates/ # Page templates
47-
├── docs/ # Generated output (for GitHub Pages)
48-
└── content/ # Documentation source (Markdown files)
43+
44+
### 2. **Write in Markdown**
45+
```markdown
46+
# My Documentation
47+
48+
Welcome! This is a simple example.
49+
50+
## Features
51+
52+
- ✅ Easy to use
53+
- ✅ Modern design
54+
- ✅ Integrated search
55+
56+
## Links
57+
58+
- [Installation](./installation.md)
59+
- [API](./api/reference.md)
4960
```
5061

51-
## 🎨 Design System
62+
### 3. **Generate documentation**
63+
```bash
64+
# Development (with live reload)
65+
bun run dev
5266

53-
### Colors
54-
- **Primary**: Blue (#3b82f6) with gradient variations
55-
- **Secondary**: Slate gray (#64748b)
56-
- **Accent**: Cyan (#06b6d4)
67+
# Production (static files)
68+
bun run build
5769

58-
### Typography
59-
- **Font Family**: Montserrat (headings and body)
60-
- **Font Weights**: 300, 400, 500, 600, 700, 800
61-
- **Scale**: Harmonious type scale with proper line heights
70+
# Serve generated files
71+
bun run serve
72+
```
6273

63-
### Spacing
64-
- **Grid**: 8px base unit system
65-
- **Containers**: Max-width 1400px with responsive padding
66-
- **Components**: Consistent spacing using CSS custom properties
74+
## 🎨 What you get automatically
6775

68-
## 🚀 Getting Started
76+
### **Professional Interface**
77+
- Modern and clean design
78+
- Automatic sidebar navigation
79+
- Breadcrumbs and table of contents
80+
- Search with Ctrl+K
6981

70-
1. **Install dependencies**:
71-
```bash
72-
bun install
73-
```
82+
### **Advanced Features**
83+
- Copy-to-clipboard in code blocks
84+
- Functional internal links
85+
- SEO optimized
86+
- Full accessibility
7487

75-
2. **Start development server**:
76-
```bash
77-
bun run dev
78-
```
88+
### **Mobile Experience**
89+
- Collapsible menu
90+
- Touch-friendly
91+
- Fast loading
92+
- Smooth scrolling
7993

80-
3. **Build for production**:
81-
```bash
82-
bun run build
83-
```
94+
## 📋 Ideal Use Cases
8495

85-
## 📝 Configuration
96+
### **📚 Project Documentation**
97+
```
98+
docs/
99+
├── index.md # Overview
100+
├── installation.md # Getting started
101+
├── guides/ # Tutorials
102+
└── api/ # Technical reference
103+
```
86104

87-
The `knowledge.config.ts` file contains all configuration options:
105+
### **🔌 API Documentation**
106+
```
107+
docs/
108+
├── authentication.md # How to authenticate
109+
├── quick-start.md # First steps
110+
├── endpoints/ # Each endpoint
111+
└── examples/ # Use cases
112+
```
88113

114+
### **📖 Knowledge Base**
115+
```
116+
docs/
117+
├── faq.md # Frequently asked questions
118+
├── tutorials/ # Step-by-step guides
119+
├── troubleshooting/ # Problem solving
120+
└── resources/ # Links and tools
121+
```
122+
123+
## ⚙️ Minimal Configuration
124+
125+
**`knowledge.config.ts`** (optional):
89126
```typescript
90127
export default {
91128
site: {
92-
title: 'Your Documentation',
93-
description: 'Your site description',
94-
baseUrl: '/',
129+
title: 'My Documentation',
130+
description: 'My project documentation',
95131
author: 'Your Name'
96132
},
97-
theme: 'default',
133+
98134
features: {
99-
search: true,
100-
syntaxHighlight: true,
101-
darkMode: true,
102-
tableOfContents: true
135+
search: true, // Automatic search
136+
darkMode: true, // Dark mode
137+
syntaxHighlight: true // Code highlighting
103138
}
104-
} as KnowledgeConfig;
139+
};
105140
```
106141

107-
## 🎯 Performance
142+
## 🚀 Essential Commands
108143

109-
- **Fast Loading**: Optimized CSS and JavaScript
110-
- **Smooth Animations**: Hardware-accelerated transitions
111-
- **Responsive Images**: Automatic image optimization
112-
- **Minimal Bundle**: No unnecessary dependencies
144+
```bash
145+
# Development
146+
bun run dev # Start server with live reload
113147

114-
## ♿ Accessibility
148+
# Production
149+
bun run build # Generate static site
150+
bun run serve # Serve generated files
115151

116-
- **Keyboard Navigation**: Full keyboard support
117-
- **Screen Readers**: Semantic HTML and ARIA labels
118-
- **High Contrast**: Support for high contrast mode
119-
- **Reduced Motion**: Respects user motion preferences
152+
# Utilities
153+
bun run knowledge init # Initialize new project
154+
```
120155

121-
## 🌙 Dark Mode
156+
## 💡 Tips for Efficient Documentation
122157

123-
Automatic dark mode detection with manual toggle:
124-
- System preference detection
125-
- Smooth theme transitions
126-
- Persistent user choice
127-
- Enhanced dark mode visuals
158+
### **1. Start Simple**
159+
- `index.md` - What the project is
160+
- `installation.md` - How to get started
161+
- `quick-start.md` - First use
128162

129-
## 📱 Mobile Experience
163+
### **2. Organize by Audience**
164+
```
165+
docs/
166+
├── users/ # For end users
167+
├── developers/ # For developers
168+
└── administrators/ # For administrators
169+
```
130170

131-
- **Touch-Friendly**: 44px minimum touch targets
132-
- **Responsive Navigation**: Collapsible sidebar
133-
- **Optimized Typography**: Readable on all screen sizes
134-
- **Fast Interactions**: Optimized for mobile performance
171+
### **3. Use Conventions**
172+
```markdown
173+
# Use hierarchical headings
174+
## Main section
175+
### Subsection
176+
#### Details
135177

136-
## 🔍 Search
178+
# Include code examples
179+
```bash
180+
npm install my-project
181+
```
137182

138-
Real-time search functionality:
139-
- **Instant Results**: Search as you type
140-
- **Keyboard Shortcuts**: Ctrl/Cmd + K to focus
141-
- **Highlighted Results**: Visual feedback for matches
183+
# Add internal links
184+
- [Installation](./installation.md)
185+
- [API](./api/reference.md)
186+
```
187+
188+
### **4. Maintain Consistency**
189+
- Same heading style
190+
- Standard format for examples
191+
- Consistent tone of voice
192+
193+
## 🎯 Recommended Workflow
194+
195+
### **For New Projects**
196+
1. **Plan** the documentation structure
197+
2. **Create** basic files (index, installation, guide)
198+
3. **Start** `bun run dev` for development
199+
4. **Write** and see changes in real time
200+
5. **Publish** with `bun run build`
201+
202+
### **For Existing Projects**
203+
1. **Migrate** existing documentation to Markdown
204+
2. **Organize** in logical folder structure
205+
3. **Configure** Knowledge with your preferences
206+
4. **Test** with `bun run dev`
207+
5. **Deploy** to replace old documentation
208+
209+
## 📊 Comparison with Other Tools
210+
211+
| Feature | Knowledge | GitBook | Notion | Wiki |
212+
|---------|-----------|---------|--------|------|
213+
| **Simplicity** | ✅ Pure Markdown | ❌ Complex interface | ❌ Proprietary | ❌ Specific syntax |
214+
| **Performance** | ✅ Static sites | ⚠️ Slow loading | ⚠️ Internet dependent | ❌ Server required |
215+
| **Customization** | ✅ Themes and config | ❌ Limited | ❌ Very limited | ⚠️ Requires programming |
216+
| **Search** | ✅ Instant | ✅ Good | ✅ Good | ⚠️ Basic |
217+
| **Cost** | ✅ Free | ❌ Paid | ❌ Paid | ⚠️ Self-hosting |
218+
| **Offline** | ✅ Works | ❌ No | ❌ No | ❌ No |
219+
220+
## 🚀 Deploy and Hosting
221+
222+
### **GitHub Pages** (Free)
223+
```bash
224+
bun run build
225+
git add dist/
226+
git commit -m "Update docs"
227+
git push origin main
228+
```
229+
230+
### **Netlify/Vercel** (Free)
231+
- Connect your repository
232+
- Configure build: `bun run build`
233+
- Publish folder: `dist/`
234+
235+
### **Own Server**
236+
```bash
237+
bun run build
238+
# Copy dist/ folder to your server
239+
```
142240

143-
## 📋 Code Features
241+
## 📈 Benefits for Teams
144242

145-
- **Syntax Highlighting**: Multiple language support
146-
- **Copy to Clipboard**: One-click code copying
147-
- **Language Labels**: Automatic language detection
148-
- **Line Numbers**: Optional line numbering
243+
### **For Developers**
244+
- ✅ Documentation lives with the code
245+
- ✅ Familiar and versionable Markdown
246+
- ✅ Easy CI/CD setup
247+
- ✅ No vendor lock-in
149248

150-
## 🤝 Contributing
249+
### **For Managers**
250+
- ✅ Reduces onboarding time
251+
- ✅ Improves team communication
252+
- ✅ Always up-to-date documentation
253+
- ✅ Zero infrastructure cost
151254

152-
1. Fork the repository
153-
2. Create a feature branch
154-
3. Make your changes
155-
4. Test thoroughly
156-
5. Submit a pull request
255+
### **For Users**
256+
- ✅ Intuitive and fast interface
257+
- ✅ Efficient search
258+
- ✅ Works on any device
259+
- ✅ Always available
157260

158-
## 📄 License
261+
## 🎯 Final Result
159262

160-
MIT License - see [LICENSE](LICENSE) file for details.
263+
With Knowledge, you transform:
161264

162-
## 🙏 Acknowledgments
265+
**From:** Scattered Markdown files
266+
**To:** Professional documentation site
163267

164-
- Built with modern web standards
165-
- Inspired by the best documentation sites
166-
- Designed for developer happiness
268+
**In:** Less than 30 minutes
269+
**With:** Zero complex configuration
167270

271+
---
168272

169-
Built with ❤️ by [RiliGar](http://riligar.click/) and the open source community.
273+
**💡 Remember**: Knowledge is made to be simple. Focus on content, let the tool handle the presentation!

0 commit comments

Comments
 (0)