Commit cae6f91
authored
Refactor AppHost docs and add a localized site tour (#666)
* feat: Refactor AppHost language pivot component and update documentation
- Introduced `AppHostLangPivot` component to streamline language-specific code presentation in documentation.
- Updated `resource-mcp-servers.mdx` to utilize the new `AppHostLangPivot` for C# and TypeScript code examples.
- Modified `what-is-aspire.mdx` to implement `AppHostLangPivot` for improved clarity in multi-language AppHost examples.
- Adjusted Japanese documentation to reflect changes in links and content structure.
- Enhanced CSS for sidebar responsiveness and improved layout for API reference pages.
- Fixed links in various documentation files to point to the correct paths for creating Aspire applications.
* fix: Correct markdown syntax for code blocks in contributor guide
* feat(tour): implement site tour functionality with step definitions and UI components
- Added SiteTour component to manage and display a guided tour for users.
- Integrated tour steps for key UI elements including app host selector, sidebar toggle, and page actions.
- Enhanced PageTitle and Sidebar components with data attributes for tour targeting.
- Introduced new SVG icon for help in site navigation.
- Updated prerequisites documentation to include margin for better layout.
* Refactor code structure for improved readability and maintainability
* fix: Update references from dotnet to microsoft for aspire-samples repository
* Add analytics tracking scripts for event capturing
- Introduced 1ds.js to initialize Application Insights for analytics tracking.
- Added track.js to bind click event tracking for elements with data attributes.
- Implemented checks to prevent multiple initializations and bindings.
- Enhanced debugging output for better traceability during analytics operations.
* style: Enhance sidebar and integration grid styles for improved layout and usability
* fix: Update route data handling and normalize path function for breadcrumbs
* Add site tour translations for multiple languages
- Implemented site tour translations in Indonesian, Italian, Japanese, Korean, Brazilian Portuguese, European Portuguese, Russian, Turkish, Ukrainian, and Simplified Chinese.
- Each language includes labels, tooltips, hints, and steps for the site tour feature.
* chore: rewrite add existing app for scenarios, avoiding bias.
* chore: add `tmp/` to .gitignore and delete patches.
* feat: enhance sidebar functionality and improve breadcrumb utility
- Refactored getContentBreadcrumbs function for cleaner syntax.
- Added functionality to dismiss site tour consent if visible in e2e tests.
- Implemented waitForTopicSidebarReady helper to ensure topic sidebar is ready before interactions.
- Created tests for topic sidebar controls, ensuring they persist state and respond correctly to user actions.
- Added checks for sidebar collapse state and filter reset on reload.
* Add end-to-end and unit tests for site tour functionality
- Implemented a new end-to-end test for the site tour feature in `site-tour.spec.ts`, covering scenarios such as opening the tour, resuming progress, and completing the tour on larger screens.
- Added a test to ensure the site tour is disabled on narrow viewports.
- Created unit tests in `site-tour.vitest.test.ts` for various helper functions related to site tour step definitions, state parsing, and filtering logic.
- Verified the correct order of site tour steps and ensured proper handling of malformed stored states.
* fix: update footer preferences heading to use paragraph tag for consistency
test: refactor pivot selector tests to improve clarity and maintain state
* fix: rename variables for site tour props to avoid conflicts
* fix: update documentation and styles for improved clarity and consistency
* fix: improve inline code handling in markdown content for better readability
* fix: remove unnecessary 'prev' field from documentation for clarity
* fix: refactor Playwright configuration and enhance E2E test support with cookie consent handling
* fix: refactor prerequisites documentation to streamline language selection and enhance clarity
* fix: refactor TypeScript API routes and enhance slug generation for better uniqueness
* fix: update links in documentation for consistency and clarity
* fix: remove inline-block display from code elements for better wrapping behavior
* fix: enhance header actions for better accessibility and responsiveness in mobile view
* fix: refactor site tour feature to enable/disable based on environment variable1 parent b732bf9 commit cae6f91
File tree
113 files changed
+8617
-5589
lines changed- .github/skills
- doc-writer
- update-samples
- src/frontend
- config
- sidebar
- scripts
- src
- assets/icons
- components
- starlight
- content
- docs
- app-host
- architecture
- community
- dashboard
- deployment
- azure
- extensibility
- get-started
- integrations
- custom-integrations
- databases/efcore
- reverse-proxies
- ja
- get-started
- testing
- whats-new
- testing
- whats-new
- i18n
- pages/reference/api
- csharp
- [package]
- [type]
- typescript
- [module]
- [item]
- [member]
- styles
- utils
- tests
- e2e
- typecheck
- unit
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
113 files changed
+8617
-5589
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
| 169 | + | |
168 | 170 | | |
169 | 171 | | |
170 | 172 | | |
| |||
188 | 190 | | |
189 | 191 | | |
190 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
191 | 209 | | |
192 | 210 | | |
193 | 211 | | |
| |||
246 | 264 | | |
247 | 265 | | |
248 | 266 | | |
249 | | - | |
| 267 | + | |
250 | 268 | | |
251 | 269 | | |
252 | | - | |
| 270 | + | |
253 | 271 | | |
254 | 272 | | |
255 | 273 | | |
| |||
259 | 277 | | |
260 | 278 | | |
261 | 279 | | |
262 | | - | |
| 280 | + | |
263 | 281 | | |
264 | 282 | | |
265 | 283 | | |
| |||
333 | 351 | | |
334 | 352 | | |
335 | 353 | | |
336 | | - | |
| 354 | + | |
337 | 355 | | |
338 | 356 | | |
339 | 357 | | |
340 | 358 | | |
341 | | - | |
| 359 | + | |
342 | 360 | | |
343 | | - | |
| 361 | + | |
344 | 362 | | |
345 | 363 | | |
346 | | - | |
| 364 | + | |
347 | 365 | | |
348 | | - | |
349 | | - | |
| 366 | + | |
| 367 | + | |
350 | 368 | | |
351 | 369 | | |
352 | 370 | | |
| |||
359 | 377 | | |
360 | 378 | | |
361 | 379 | | |
362 | | - | |
363 | | - | |
| 380 | + | |
| 381 | + | |
364 | 382 | | |
365 | 383 | | |
366 | 384 | | |
| |||
375 | 393 | | |
376 | 394 | | |
377 | 395 | | |
378 | | - | |
379 | | - | |
| 396 | + | |
| 397 | + | |
380 | 398 | | |
381 | 399 | | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
382 | 406 | | |
383 | 407 | | |
384 | 408 | | |
385 | 409 | | |
386 | 410 | | |
387 | | - | |
388 | | - | |
| 411 | + | |
| 412 | + | |
389 | 413 | | |
390 | 414 | | |
391 | 415 | | |
| |||
400 | 424 | | |
401 | 425 | | |
402 | 426 | | |
403 | | - | |
| 427 | + | |
404 | 428 | | |
405 | 429 | | |
406 | 430 | | |
407 | | - | |
| 431 | + | |
408 | 432 | | |
409 | 433 | | |
410 | 434 | | |
411 | 435 | | |
412 | 436 | | |
413 | 437 | | |
414 | 438 | | |
415 | | - | |
| 439 | + | |
416 | 440 | | |
417 | 441 | | |
418 | 442 | | |
| |||
443 | 467 | | |
444 | 468 | | |
445 | 469 | | |
446 | | - | |
| 470 | + | |
| 471 | + | |
447 | 472 | | |
448 | 473 | | |
449 | 474 | | |
| |||
459 | 484 | | |
460 | 485 | | |
461 | 486 | | |
462 | | - | |
463 | | - | |
| 487 | + | |
| 488 | + | |
464 | 489 | | |
465 | 490 | | |
466 | 491 | | |
| |||
471 | 496 | | |
472 | 497 | | |
473 | 498 | | |
474 | | - | |
475 | | - | |
| 499 | + | |
| 500 | + | |
476 | 501 | | |
477 | 502 | | |
478 | 503 | | |
| |||
484 | 509 | | |
485 | 510 | | |
486 | 511 | | |
487 | | - | |
488 | | - | |
| 512 | + | |
| 513 | + | |
489 | 514 | | |
490 | 515 | | |
491 | 516 | | |
| |||
508 | 533 | | |
509 | 534 | | |
510 | 535 | | |
511 | | - | |
512 | | - | |
| 536 | + | |
| 537 | + | |
513 | 538 | | |
514 | 539 | | |
515 | 540 | | |
| |||
522 | 547 | | |
523 | 548 | | |
524 | 549 | | |
525 | | - | |
526 | | - | |
| 550 | + | |
| 551 | + | |
527 | 552 | | |
528 | 553 | | |
529 | 554 | | |
| |||
538 | 563 | | |
539 | 564 | | |
540 | 565 | | |
541 | | - | |
542 | | - | |
| 566 | + | |
| 567 | + | |
543 | 568 | | |
544 | 569 | | |
545 | 570 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
75 | 87 | | |
76 | 88 | | |
77 | 89 | | |
| |||
0 commit comments