Skip to content

Commit dd0769d

Browse files
committed
docs: update theme to blue+grey, add threat model and benchmarks sections
1 parent 0fefab6 commit dd0769d

3 files changed

Lines changed: 69 additions & 21 deletions

File tree

_sidebar.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
* [Architecture](docs/architecture.md)
1010
* [Preflight Checks](docs/preflight.md)
1111

12+
* **Security**
13+
* [Threat Model](docs/threat-model.md)
14+
15+
* **Performance**
16+
* [Benchmarks](benchmarks/results.md)
17+
1218
* **Links**
1319
* [GitHub](https://github.com/dev-dami/ignite)
1420
* [Releases](https://github.com/dev-dami/ignite/releases)

benchmarks/results.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Ignite Benchmark Results
2+
3+
Benchmarks measure Ignite's performance characteristics.
4+
5+
## Running Benchmarks
6+
7+
```bash
8+
bun run scripts/benchmark.ts
9+
```
10+
11+
## Latest Results
12+
13+
*Run `bun run scripts/benchmark.ts` to generate results.*
14+
15+
Results will be saved to:
16+
- `benchmarks/results.md` - Markdown report
17+
- `benchmarks/results.json` - Raw data
18+
19+
## What We Measure
20+
21+
| Benchmark | Description |
22+
|-----------|-------------|
23+
| Cold Start | Time with no Docker cache (worst case) |
24+
| Warm Start | Time with Docker image cached (typical case) |
25+
| Docker Overhead | Additional time vs native Bun execution |
26+
| Audit Mode Overhead | Additional time for security flags |
27+
28+
## Expected Performance
29+
30+
| Metric | Target |
31+
|--------|--------|
32+
| Warm start | < 500ms |
33+
| Docker overhead | < 200ms |
34+
| Audit mode overhead | < 50ms |

index.html

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,25 @@
1919
<!-- Docsify Theme -->
2020
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
2121

22-
<!-- Custom Styles - Blue Theme + JetBrains Mono -->
2322
<style>
2423
:root {
2524
--theme-color: #2563eb;
2625
--theme-color-light: #3b82f6;
2726
--theme-color-dark: #1d4ed8;
27+
--grey-50: #f9fafb;
28+
--grey-100: #f3f4f6;
29+
--grey-200: #e5e7eb;
30+
--grey-300: #d1d5db;
31+
--grey-400: #9ca3af;
32+
--grey-500: #6b7280;
33+
--grey-600: #4b5563;
34+
--grey-700: #374151;
35+
--grey-800: #1f2937;
36+
--grey-900: #111827;
2837
--theme-bg: #ffffff;
29-
--theme-bg-secondary: #f8fafc;
30-
--theme-text: #1e293b;
31-
--theme-text-light: #64748b;
38+
--theme-bg-secondary: var(--grey-50);
39+
--theme-text: var(--grey-900);
40+
--theme-text-light: var(--grey-500);
3241
--code-font: 'JetBrains Mono', monospace;
3342
--content-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
3443
}
@@ -45,8 +54,8 @@
4554

4655
/* Sidebar */
4756
.sidebar {
48-
background: var(--theme-bg-secondary);
49-
border-right: 1px solid #e2e8f0;
57+
background: var(--grey-100);
58+
border-right: 1px solid var(--grey-200);
5059
}
5160

5261
.sidebar-nav {
@@ -99,7 +108,7 @@
99108
.markdown-section h2 {
100109
font-size: 1.75rem;
101110
margin-top: 2.5rem;
102-
color: var(--theme-color-dark);
111+
color: var(--grey-800);
103112
}
104113

105114
.markdown-section a {
@@ -121,7 +130,7 @@
121130
}
122131

123132
.markdown-section code {
124-
background: #f1f5f9;
133+
background: var(--grey-100);
125134
color: var(--theme-color-dark);
126135
padding: 0.125rem 0.375rem;
127136
border-radius: 4px;
@@ -130,27 +139,26 @@
130139
}
131140

132141
.markdown-section pre {
133-
background: #0f172a !important;
142+
background: var(--grey-900) !important;
134143
border-radius: 8px;
135144
padding: 1.25rem !important;
136145
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
137146
}
138147

139148
.markdown-section pre code {
140149
background: transparent;
141-
color: #e2e8f0;
150+
color: var(--grey-200);
142151
padding: 0;
143152
font-size: 0.875rem;
144153
line-height: 1.7;
145154
}
146155

147-
/* Token colors for syntax highlighting */
148-
.token.comment { color: #64748b; }
156+
.token.comment { color: var(--grey-500); }
149157
.token.keyword { color: #f472b6; }
150158
.token.string { color: #34d399; }
151159
.token.function { color: #60a5fa; }
152160
.token.number { color: #fbbf24; }
153-
.token.operator { color: #94a3b8; }
161+
.token.operator { color: var(--grey-400); }
154162
.token.class-name { color: #c084fc; }
155163

156164
/* Tables */
@@ -161,7 +169,7 @@
161169
}
162170

163171
.markdown-section th {
164-
background: var(--theme-color);
172+
background: var(--grey-800);
165173
color: white;
166174
font-weight: 600;
167175
text-align: left;
@@ -170,11 +178,11 @@
170178

171179
.markdown-section td {
172180
padding: 0.75rem 1rem;
173-
border-bottom: 1px solid #e2e8f0;
181+
border-bottom: 1px solid var(--grey-200);
174182
}
175183

176184
.markdown-section tr:hover td {
177-
background: var(--theme-bg-secondary);
185+
background: var(--grey-50);
178186
}
179187

180188
/* Blockquotes / Tips */
@@ -193,12 +201,12 @@
193201

194202
/* Search */
195203
.search {
196-
border-bottom: 1px solid #e2e8f0;
204+
border-bottom: 1px solid var(--grey-200);
197205
}
198206

199207
.search input {
200208
font-family: var(--content-font);
201-
border: 2px solid #e2e8f0 !important;
209+
border: 2px solid var(--grey-200) !important;
202210
border-radius: 8px !important;
203211
padding: 0.75rem 1rem !important;
204212
transition: border-color 0.2s ease;
@@ -211,7 +219,7 @@
211219

212220
/* Cover Page */
213221
.cover {
214-
background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%) !important;
222+
background: linear-gradient(135deg, var(--grey-900) 0%, var(--grey-700) 30%, var(--theme-color-dark) 70%, var(--theme-color) 100%) !important;
215223
}
216224

217225
.cover h1 {
@@ -240,12 +248,12 @@
240248
}
241249

242250
::-webkit-scrollbar-thumb {
243-
background: #cbd5e1;
251+
background: var(--grey-300);
244252
border-radius: 4px;
245253
}
246254

247255
::-webkit-scrollbar-thumb:hover {
248-
background: var(--theme-color-light);
256+
background: var(--grey-400);
249257
}
250258

251259
/* Mobile */

0 commit comments

Comments
 (0)