Commit 7081ec0
fix(docs): fix JS URL detection, root index links, and lint
- frame.html.jinja2: replace pathParts.indexOf("component_framework") with
pathParts.indexOf("component-framework") (the repo name). The old approach
returned -1 on component_framework.html (filename, not directory), wrongly
treating all root package pages as local dev and breaking Home/Example nav
links. New approach finds the repo segment → version is always pathParts[repoIdx+1].
- update_gh_pages.py: split single long Google Fonts <link> (139 chars) into
two <link> tags to satisfy ruff E501 (100-char limit).
- update_gh_pages.py: change root version index hrefs from component_framework.html
to index.html so clicking a version lands on the home page, not the raw API docs.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 65b35e3 commit 7081ec0
2 files changed
Lines changed: 17 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
529 | 534 | | |
530 | 535 | | |
531 | 536 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
92 | 95 | | |
93 | 96 | | |
94 | 97 | | |
| |||
237 | 240 | | |
238 | 241 | | |
239 | 242 | | |
240 | | - | |
| 243 | + | |
241 | 244 | | |
242 | 245 | | |
243 | 246 | | |
| |||
247 | 250 | | |
248 | 251 | | |
249 | 252 | | |
250 | | - | |
| 253 | + | |
251 | 254 | | |
252 | 255 | | |
253 | 256 | | |
| |||
259 | 262 | | |
260 | 263 | | |
261 | 264 | | |
262 | | - | |
| 265 | + | |
263 | 266 | | |
264 | 267 | | |
265 | 268 | | |
| |||
0 commit comments