Commit d83d527
authored
fix(docs): add View Code button to showcase lightbox + flip v1.6.0 → v1.6.1 (#17)
Two surfaces flagged on the deployed site:
1. Lightbox missing "View Code" button
The regular gallery card already renders both "View PDF" + "View
Code" links (renderCard, line 374-375), but the lightbox modal
that opens when you click a Featured tile only had "Open PDF".
Reading the source on GitHub from a featured example required
closing the lightbox and finding the same example in the gallery
below. Fixed by:
- threading `code` through `renderHighlight` so the highlight
button carries `data-code` like the regular card already did;
- adding `data-code` to renderCard's preview button too (it was
already in scope but never wired through to the lightbox);
- adding a `.lightbox-code-link` anchor in `ensureLightbox`
alongside the existing `.lightbox-pdf-link`;
- extending `openLightbox(screenshot, pdf, code, title)` to set
the new link's href, hiding the link when no code URL is
available (e.g. "#" placeholder for examples without source).
2. v1.6.0 → v1.6.1 flip
`softwareVersion` JSON-LD, `downloadUrl`, install snippets (Maven
+ Gradle), and the eyebrow tag in the hero all still read
`v1.6.0`. Bumped to `v1.6.1` to match the release that's live on
JitPack.1 parent d6c2783 commit d83d527
2 files changed
Lines changed: 20 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| 278 | + | |
278 | 279 | | |
279 | 280 | | |
280 | 281 | | |
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
284 | 285 | | |
| 286 | + | |
285 | 287 | | |
286 | 288 | | |
287 | 289 | | |
| |||
359 | 361 | | |
360 | 362 | | |
361 | 363 | | |
| 364 | + | |
362 | 365 | | |
363 | 366 | | |
364 | 367 | | |
| |||
412 | 415 | | |
413 | 416 | | |
414 | 417 | | |
415 | | - | |
| 418 | + | |
| 419 | + | |
416 | 420 | | |
417 | 421 | | |
418 | 422 | | |
| |||
434 | 438 | | |
435 | 439 | | |
436 | 440 | | |
437 | | - | |
| 441 | + | |
438 | 442 | | |
439 | 443 | | |
440 | 444 | | |
441 | 445 | | |
442 | 446 | | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
443 | 454 | | |
444 | 455 | | |
445 | 456 | | |
| |||
470 | 481 | | |
471 | 482 | | |
472 | 483 | | |
| 484 | + | |
473 | 485 | | |
474 | 486 | | |
475 | | - | |
| 487 | + | |
476 | 488 | | |
477 | 489 | | |
478 | 490 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
| 222 | + | |
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| |||
0 commit comments