Repository navigation
Commit d7a5481
authored
Fix manul install, make website install sections linkable (#230)
* Fix manual installation JSON examples to use @latest version
- Updated README.md, FAQ.md, and docs/index.html
- Changed '@wonderwhy-er/desktop-commander' to '@wonderwhy-er/desktop-commander@latest'
- Ensures manual installations always use the latest version from npm
* Fix website tab navigation and URL updating
- Updated openTab() function to update URL hash when switching tabs
- Enhanced handleAnchorNavigation() to handle all installation tab anchors
- Now all installation links work: #npx, #bash, #smithery, #manual, #local, #docker-install
- URL updates when changing tabs, making links shareable
- Maintains special handling for docker-install with highlighting
* Add support for general #installation anchor link
- Added handling for #installation link that scrolls to section without changing tabs
- Maintains default tab (NPX Install) when using general installation link
- Existing tab-specific links still work (#npx, #bash, #smithery, etc.)
- Navigation menu 'Installation' link now works properly
* Fix URL hash not updating when clicking navigation links
- Modified smooth scrolling code to update URL hash using history.pushState()
- Now clicking 'Installation' in header properly updates URL to #installation
- Maintains smooth scrolling behavior while enabling shareable URLs
- All navigation links now update the URL hash as expected1 parent a7e10a7 commit d7a5481
4 files changed
Lines changed: 68 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1473 | 1473 | | |
1474 | 1474 | | |
1475 | 1475 | | |
1476 | | - | |
| 1476 | + | |
1477 | 1477 | | |
1478 | 1478 | | |
1479 | 1479 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
68 | 77 | | |
69 | 78 | | |
70 | 79 | | |
| |||
314 | 323 | | |
315 | 324 | | |
316 | 325 | | |
317 | | - | |
| 326 | + | |
| 327 | + | |
318 | 328 | | |
319 | 329 | | |
320 | | - | |
| 330 | + | |
321 | 331 | | |
322 | 332 | | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
323 | 336 | | |
324 | 337 | | |
325 | 338 | | |
| |||
431 | 444 | | |
432 | 445 | | |
433 | 446 | | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
442 | 475 | | |
443 | 476 | | |
444 | 477 | | |
445 | 478 | | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
451 | 484 | | |
452 | 485 | | |
453 | 486 | | |
| |||
456 | 489 | | |
457 | 490 | | |
458 | 491 | | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
467 | 509 | | |
468 | 510 | | |
469 | 511 | | |
| |||
0 commit comments