|
1 | 1 | <script setup lang="ts"> |
2 | 2 | interface Row { |
3 | 3 | feature: string; |
| 4 | + desc: string; |
4 | 5 | gh: boolean; |
5 | 6 | gcs: boolean; |
| 7 | + docLink?: string; |
6 | 8 | } |
7 | 9 |
|
8 | 10 | const ROWS: Row[] = [ |
9 | | - { feature: "Results grouped by repository", gh: false, gcs: true }, |
10 | | - { feature: "Interactive TUI — navigate, select, filter", gh: false, gcs: true }, |
11 | | - { feature: "Fine-grained extract selection", gh: false, gcs: true }, |
12 | | - { feature: "Markdown / JSON output", gh: false, gcs: true }, |
13 | | - { feature: "Replay / CI command", gh: false, gcs: true }, |
14 | | - { feature: "Team-prefix grouping", gh: false, gcs: true }, |
15 | | - { feature: "Syntax highlighting in terminal", gh: false, gcs: true }, |
16 | | - { feature: "Pagination (up to 1 000 results)", gh: true, gcs: true }, |
| 11 | + { |
| 12 | + feature: "Results grouped by repository", |
| 13 | + desc: "One block per repo instead of a flat list — fold or unfold at a glance.", |
| 14 | + gh: false, |
| 15 | + gcs: true, |
| 16 | + docLink: "/github-code-search/usage/interactive-mode", |
| 17 | + }, |
| 18 | + { |
| 19 | + feature: "Interactive TUI \u2014 navigate, select, filter", |
| 20 | + desc: "Arrow-key navigation, path-based filter and live selection without leaving the terminal.", |
| 21 | + gh: false, |
| 22 | + gcs: true, |
| 23 | + docLink: "/github-code-search/usage/interactive-mode", |
| 24 | + }, |
| 25 | + { |
| 26 | + feature: "Fine-grained extract selection", |
| 27 | + desc: "Cherry-pick individual code extracts; deselected items become \u2014exclude flags automatically.", |
| 28 | + gh: false, |
| 29 | + gcs: true, |
| 30 | + docLink: "/github-code-search/usage/interactive-mode", |
| 31 | + }, |
| 32 | + { |
| 33 | + feature: "Markdown / JSON output", |
| 34 | + desc: "Export clean Markdown checklists or machine-readable JSON ready for CI scripts.", |
| 35 | + gh: false, |
| 36 | + gcs: true, |
| 37 | + docLink: "/github-code-search/usage/output-formats", |
| 38 | + }, |
| 39 | + { |
| 40 | + feature: "Replay / CI command", |
| 41 | + desc: "Every session produces a one-liner to reproduce the exact output headlessly in CI.", |
| 42 | + gh: false, |
| 43 | + gcs: true, |
| 44 | + docLink: "/github-code-search/usage/non-interactive-mode", |
| 45 | + }, |
| 46 | + { |
| 47 | + feature: "Team-prefix grouping", |
| 48 | + desc: "Cluster repos by GitHub team prefix (squad-, chapter-) for org-wide triage.", |
| 49 | + gh: false, |
| 50 | + gcs: true, |
| 51 | + docLink: "/github-code-search/usage/team-grouping", |
| 52 | + }, |
| 53 | + { |
| 54 | + feature: "Syntax highlighting in terminal", |
| 55 | + desc: "Language-aware token colouring rendered in the TUI \u2014 no browser needed.", |
| 56 | + gh: false, |
| 57 | + gcs: true, |
| 58 | + docLink: "/github-code-search/usage/interactive-mode", |
| 59 | + }, |
| 60 | + { |
| 61 | + feature: "Pagination (up to 1\u202f000 results)", |
| 62 | + desc: "Both tools auto-paginate the GitHub search API \u2014 up to 1\u202f000 results per query.", |
| 63 | + gh: true, |
| 64 | + gcs: true, |
| 65 | + docLink: "/github-code-search/reference/github-api-limits", |
| 66 | + }, |
17 | 67 | ]; |
18 | 68 | </script> |
19 | 69 |
|
@@ -48,7 +98,39 @@ const ROWS: Row[] = [ |
48 | 98 | </thead> |
49 | 99 | <tbody> |
50 | 100 | <tr v-for="row in ROWS" :key="row.feature" class="ct-row"> |
51 | | - <td class="ct-feature">{{ row.feature }}</td> |
| 101 | + <td class="ct-feature"> |
| 102 | + <a |
| 103 | + v-if="row.docLink" |
| 104 | + :href="row.docLink" |
| 105 | + target="_blank" |
| 106 | + rel="noopener noreferrer" |
| 107 | + class="ct-feature-link" |
| 108 | + > |
| 109 | + <span class="ct-feature-title"> |
| 110 | + {{ row.feature }} |
| 111 | + <svg |
| 112 | + class="ct-ext-icon" |
| 113 | + aria-hidden="true" |
| 114 | + width="11" |
| 115 | + height="11" |
| 116 | + viewBox="0 0 24 24" |
| 117 | + fill="none" |
| 118 | + stroke="currentColor" |
| 119 | + stroke-width="2" |
| 120 | + stroke-linecap="round" |
| 121 | + stroke-linejoin="round" |
| 122 | + > |
| 123 | + <line x1="7" y1="17" x2="17" y2="7" /> |
| 124 | + <polyline points="7 7 17 7 17 17" /> |
| 125 | + </svg> |
| 126 | + </span> |
| 127 | + <span class="ct-feature-desc">{{ row.desc }}</span> |
| 128 | + </a> |
| 129 | + <span v-else class="ct-feature-plain"> |
| 130 | + <span class="ct-feature-title">{{ row.feature }}</span> |
| 131 | + <span class="ct-feature-desc">{{ row.desc }}</span> |
| 132 | + </span> |
| 133 | + </td> |
52 | 134 | <td class="ct-cell"> |
53 | 135 | <span v-if="row.gh" class="ct-check">✓</span> |
54 | 136 | <span v-else class="ct-cross">✗</span> |
@@ -109,7 +191,7 @@ const ROWS: Row[] = [ |
109 | 191 | .ct-intro { |
110 | 192 | margin: 0; |
111 | 193 | padding: 20px 24px 18px; |
112 | | - font-size: 14px; |
| 194 | + font-size: 15.5px; |
113 | 195 | line-height: 1.7; |
114 | 196 | color: var(--vp-c-text-2); |
115 | 197 | border-bottom: 1px solid var(--vp-c-divider); |
@@ -160,7 +242,7 @@ thead tr { |
160 | 242 | } |
161 | 243 |
|
162 | 244 | .ct-tool-name { |
163 | | - font-size: 13px; |
| 245 | + font-size: 14px; |
164 | 246 | font-weight: 600; |
165 | 247 | white-space: nowrap; |
166 | 248 | } |
@@ -210,12 +292,55 @@ thead tr { |
210 | 292 | } |
211 | 293 |
|
212 | 294 | .ct-feature { |
213 | | - padding: 14px 24px; |
214 | | - font-size: 14px; |
| 295 | + padding: 12px 24px; |
| 296 | + font-size: 15px; |
215 | 297 | color: var(--vp-c-text-1); |
216 | 298 | line-height: 1.5; |
217 | 299 | } |
218 | 300 |
|
| 301 | +.ct-feature-link, |
| 302 | +.ct-feature-plain { |
| 303 | + display: flex; |
| 304 | + flex-direction: column; |
| 305 | + gap: 3px; |
| 306 | + color: var(--vp-c-text-1); |
| 307 | + text-decoration: none; |
| 308 | +} |
| 309 | +
|
| 310 | +.ct-feature-link:hover { |
| 311 | + color: var(--vp-c-text-1); |
| 312 | +} |
| 313 | +
|
| 314 | +.ct-feature-title { |
| 315 | + display: inline-flex; |
| 316 | + align-items: center; |
| 317 | + gap: 5px; |
| 318 | + font-size: 15px; |
| 319 | + font-weight: 600; |
| 320 | + color: inherit; |
| 321 | +} |
| 322 | +
|
| 323 | +.ct-feature-desc { |
| 324 | + font-size: 13px; |
| 325 | + font-weight: 400; |
| 326 | + color: var(--vp-c-text-3); |
| 327 | + line-height: 1.45; |
| 328 | +} |
| 329 | +
|
| 330 | +.ct-feature-link:hover .ct-feature-desc { |
| 331 | + color: var(--vp-c-text-2); |
| 332 | +} |
| 333 | +
|
| 334 | +.ct-ext-icon { |
| 335 | + opacity: 0.35; |
| 336 | + flex-shrink: 0; |
| 337 | + transition: opacity 0.15s; |
| 338 | +} |
| 339 | +
|
| 340 | +.ct-feature-link:hover .ct-ext-icon { |
| 341 | + opacity: 0.75; |
| 342 | +} |
| 343 | +
|
219 | 344 | .ct-cell { |
220 | 345 | padding: 14px 12px; |
221 | 346 | text-align: center; |
|
0 commit comments