|
1 | 1 | # Knowledge - Modern Documentation Generator |
2 | 2 |
|
3 | | -[](https://github.com/yourorg/knowledge/stargazers) |
4 | | -[](https://opensource.org/licenses/MIT) |
5 | | -[](https://knowledge.dev) |
| 3 | +[](https://github.com/yourorg/knowledge/stargazers) [](https://opensource.org/licenses/MIT) [](https://knowledge.dev) |
6 | 4 |
|
7 | 5 | > Transform how your team creates, organizes, and shares knowledge |
8 | 6 |
|
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? |
10 | 8 |
|
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. |
12 | 10 |
|
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? |
17 | 12 |
|
18 | | -## 🎯 Key Features |
| 13 | +### ✅ **Extreme Simplicity** |
| 14 | +- Write in plain Markdown |
| 15 | +- Configure once, use always |
| 16 | +- Generate professional sites automatically |
19 | 17 |
|
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 |
27 | 24 |
|
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 |
29 | 30 |
|
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) |
36 | 32 |
|
| 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) |
37 | 42 | ``` |
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) |
49 | 60 | ``` |
50 | 61 |
|
51 | | -## 🎨 Design System |
| 62 | +### 3. **Generate documentation** |
| 63 | +```bash |
| 64 | +# Development (with live reload) |
| 65 | +bun run dev |
52 | 66 |
|
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 |
57 | 69 |
|
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 | +``` |
62 | 73 |
|
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 |
67 | 75 |
|
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 |
69 | 81 |
|
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 |
74 | 87 |
|
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 |
79 | 93 |
|
80 | | -3. **Build for production**: |
81 | | - ```bash |
82 | | - bun run build |
83 | | - ``` |
| 94 | +## 📋 Ideal Use Cases |
84 | 95 |
|
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 | +``` |
86 | 104 |
|
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 | +``` |
88 | 113 |
|
| 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): |
89 | 126 | ```typescript |
90 | 127 | export default { |
91 | 128 | site: { |
92 | | - title: 'Your Documentation', |
93 | | - description: 'Your site description', |
94 | | - baseUrl: '/', |
| 129 | + title: 'My Documentation', |
| 130 | + description: 'My project documentation', |
95 | 131 | author: 'Your Name' |
96 | 132 | }, |
97 | | - theme: 'default', |
| 133 | + |
98 | 134 | 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 |
103 | 138 | } |
104 | | -} as KnowledgeConfig; |
| 139 | +}; |
105 | 140 | ``` |
106 | 141 |
|
107 | | -## 🎯 Performance |
| 142 | +## 🚀 Essential Commands |
108 | 143 |
|
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 |
113 | 147 |
|
114 | | -## ♿ Accessibility |
| 148 | +# Production |
| 149 | +bun run build # Generate static site |
| 150 | +bun run serve # Serve generated files |
115 | 151 |
|
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 | +``` |
120 | 155 |
|
121 | | -## 🌙 Dark Mode |
| 156 | +## 💡 Tips for Efficient Documentation |
122 | 157 |
|
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 |
128 | 162 |
|
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 | +``` |
130 | 170 |
|
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 |
135 | 177 |
|
136 | | -## 🔍 Search |
| 178 | +# Include code examples |
| 179 | +```bash |
| 180 | +npm install my-project |
| 181 | +``` |
137 | 182 |
|
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 | +``` |
142 | 240 |
|
143 | | -## 📋 Code Features |
| 241 | +## 📈 Benefits for Teams |
144 | 242 |
|
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 |
149 | 248 |
|
150 | | -## 🤝 Contributing |
| 249 | +### **For Managers** |
| 250 | +- ✅ Reduces onboarding time |
| 251 | +- ✅ Improves team communication |
| 252 | +- ✅ Always up-to-date documentation |
| 253 | +- ✅ Zero infrastructure cost |
151 | 254 |
|
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 |
157 | 260 |
|
158 | | -## 📄 License |
| 261 | +## 🎯 Final Result |
159 | 262 |
|
160 | | -MIT License - see [LICENSE](LICENSE) file for details. |
| 263 | +With Knowledge, you transform: |
161 | 264 |
|
162 | | -## 🙏 Acknowledgments |
| 265 | +**From:** Scattered Markdown files |
| 266 | +**To:** Professional documentation site |
163 | 267 |
|
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 |
167 | 270 |
|
| 271 | +--- |
168 | 272 |
|
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