igniteui-astro-components 0.0.26 → 0.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/README.md +82 -74
  2. package/package.json +16 -9
  3. package/src/components/CopyCode/CopyCode.astro +21 -7
  4. package/src/components/DocsBreadcrumb/DocsBreadcrumb.astro +33 -21
  5. package/src/components/DocsBreadcrumb/DocsBreadcrumb.scss +44 -43
  6. package/src/components/DocsBreadcrumb/README.md +10 -14
  7. package/src/components/DocsSidebar/DocsSidebar.astro +47 -45
  8. package/src/components/DocsSidebar/DocsSidebar.scss +120 -122
  9. package/src/components/DocsSidebar/README.md +25 -21
  10. package/src/components/DocsSidebar/SidebarFilterInput.astro +24 -29
  11. package/src/components/DocsSidebar/SidebarFilterInput.scss +90 -89
  12. package/src/components/DocsSidebar/SidebarLabel.astro +35 -26
  13. package/src/components/DocsSidebar/sidebar-filter.ts +93 -56
  14. package/src/components/DocsSubHeader/DocsSubHeader.astro +256 -185
  15. package/src/components/DocsSubHeader/DocsSubHeader.scss +181 -169
  16. package/src/components/DocsSubHeader/README.md +18 -16
  17. package/src/components/DocsToc/DocsToc.astro +301 -280
  18. package/src/components/DocsToc/DocsToc.scss +20 -21
  19. package/src/components/DocsToc/README.md +11 -9
  20. package/src/components/DocsToc/toTreeNodes.ts +3 -8
  21. package/src/components/DocsTree/DocsTree.astro +32 -20
  22. package/src/components/DocsTree/DocsTreeItem.astro +35 -30
  23. package/src/components/DocsTree/README.md +16 -15
  24. package/src/components/DocsTree/docs-tree.scss +267 -268
  25. package/src/components/GlobalFooter/GlobalFooter.astro +10 -10
  26. package/src/components/GlobalFooter/README.md +3 -2
  27. package/src/components/GlobalNavBar/GlobalNavBar.astro +4 -2
  28. package/src/components/GlobalNavBar/GlobalNavBar.module.scss +222 -222
  29. package/src/components/GlobalNavBar/README.md +3 -2
  30. package/src/components/LicenseIndicator/LicenseIndicator.astro +7 -5
  31. package/src/components/LicenseIndicator/LicenseIndicator.scss +3 -3
  32. package/src/components/MobileSidebarToggle/MobileSidebarToggle.astro +16 -17
  33. package/src/components/MobileSidebarToggle/README.md +3 -2
  34. package/src/components/MobileTocToggle/MobileTocToggle.astro +75 -61
  35. package/src/components/MobileTocToggle/MobileTocToggle.scss +65 -59
  36. package/src/components/Search/README.md +1 -0
  37. package/src/components/Search/Search.astro +137 -109
  38. package/src/components/Search/Search.scss +20 -20
  39. package/src/components/SearchAdvanced/README.md +21 -15
  40. package/src/components/SearchAdvanced/SearchAdvanced.astro +220 -133
  41. package/src/components/SearchAdvanced/SearchAdvanced.scss +152 -153
  42. package/src/components/mdx/ApiLink/ApiLink.astro +133 -113
  43. package/src/components/mdx/ApiLink/ApiLink.scss +9 -9
  44. package/src/components/mdx/ApiLink/README.md +26 -22
  45. package/src/components/mdx/ApiLink/api-link-index.ts +196 -173
  46. package/src/components/mdx/ApiRef/ApiRef.astro +54 -51
  47. package/src/components/mdx/ApiRef/README.md +20 -15
  48. package/src/components/mdx/Badge/Badge.astro +14 -14
  49. package/src/components/mdx/Badge/Badge.scss +61 -56
  50. package/src/components/mdx/Badge/README.md +24 -19
  51. package/src/components/mdx/DocsAside/DocsAside.astro +30 -37
  52. package/src/components/mdx/DocsAside/DocsAside.scss +82 -82
  53. package/src/components/mdx/DocsAside/README.md +22 -22
  54. package/src/components/mdx/Faq/Faq.astro +86 -0
  55. package/src/components/mdx/Faq/Faq.scss +105 -0
  56. package/src/components/mdx/Faq/FaqItem.astro +117 -0
  57. package/src/components/mdx/Faq/README.md +223 -0
  58. package/src/components/mdx/Faq/types.ts +34 -0
  59. package/src/components/mdx/PlatformBlock/PlatformBlock.astro +3 -2
  60. package/src/components/mdx/PlatformBlock/README.md +6 -8
  61. package/src/components/mdx/Sample/README.md +21 -16
  62. package/src/components/mdx/Sample/Sample.astro +97 -74
  63. package/src/components/mdx/Sample/Sample.scss +132 -132
  64. package/src/content-helper.ts +71 -72
  65. package/src/content.config.ts +1 -6
  66. package/src/integration.ts +566 -512
  67. package/src/layouts/DocsLayout/DocsLayout.astro +228 -182
  68. package/src/layouts/DocsLayout/DocsLayout.scss +261 -261
  69. package/src/layouts/DocsLayout/README.md +24 -35
  70. package/src/lib/nav-helpers.ts +88 -82
  71. package/src/lib/types.ts +76 -76
  72. package/src/llms.ts +205 -166
  73. package/src/platform.ts +312 -162
  74. package/src/plugins/rehype-heading-anchors.ts +45 -45
  75. package/src/plugins/rehype-pagefind-ignore.ts +19 -19
  76. package/src/plugins/rehype-table-wrapper.ts +30 -30
  77. package/src/plugins/remark-docfx.ts +12 -0
  78. package/src/plugins/remark-env-vars.ts +12 -4
  79. package/src/plugins/remark-md-links.ts +10 -4
  80. package/src/scripts/icon-manifest.ts +13 -5
  81. package/src/scripts/sample-widget.ts +557 -501
  82. package/src/sidebar.ts +103 -97
  83. package/src/styles/global/_code-blocks.scss +43 -44
  84. package/src/styles/global/_component-themes.scss +151 -153
  85. package/src/styles/global/_icon-gallery.scss +81 -81
  86. package/src/styles/global/_index.scss +0 -1
  87. package/src/styles/global/_markdown.scss +816 -787
  88. package/src/styles/global/_palette.scss +456 -110
  89. package/src/styles/global/_search-shared.scss +402 -398
  90. package/src/styles/global/_type-scale.scss +127 -127
  91. package/src/styles/global/_variables.scss +138 -111
  92. package/src/styles/theme.scss +49 -40
  93. package/src/virtual-modules.d.ts +11 -2
@@ -9,69 +9,69 @@
9
9
  // ────────────────────────────────────────────────────────────────────────────
10
10
 
11
11
  .igd-page-layout {
12
- display: grid;
13
- grid-template-columns: var(--igd-page-layout-grid);
14
- background: var(--igd-app-bg);
15
- color: var(--igd-on-app-bg);
16
- margin: 0;
17
- position: relative;
18
- z-index: 0;
19
-
20
- &:not(:has(.igd-right-sidebar)) {
21
- .igd-main-pane {
22
- > main {
23
- margin: 0
24
- }
25
- }
26
- }
12
+ display: grid;
13
+ grid-template-columns: var(--igd-page-layout-grid);
14
+ background: var(--igd-app-bg);
15
+ color: var(--igd-on-app-bg);
16
+ margin: 0;
17
+ position: relative;
18
+ z-index: 0;
19
+
20
+ &:not(:has(.igd-right-sidebar)) {
21
+ .igd-main-pane {
22
+ > main {
23
+ margin: 0;
24
+ }
25
+ }
26
+ }
27
27
  }
28
28
 
29
29
  .igd-main-content {
30
- display: grid;
31
- position: relative;
32
- //background: var(--ig-surface-500);
33
-
34
- &:not(:has(.igd-right-sidebar)) {
35
- .igd-main-pane {
36
- > main {
37
- margin: 0
38
- }
39
- }
40
- }
30
+ display: grid;
31
+ position: relative;
32
+ //background: var(--ig-surface-500);
33
+
34
+ &:not(:has(.igd-right-sidebar)) {
35
+ .igd-main-pane {
36
+ > main {
37
+ margin: 0;
38
+ }
39
+ }
40
+ }
41
41
  }
42
42
 
43
43
  .igd-main-content__page {
44
- display: grid;
45
- background-color: var(--igd-layout-sections-bg);
46
- border-inline-end: var(--igd-app-outline);
47
- width: 100%;
44
+ display: grid;
45
+ background-color: var(--igd-layout-sections-bg);
46
+ border-inline-end: var(--igd-app-outline);
47
+ width: 100%;
48
48
  }
49
49
 
50
50
  .igd-main-content__inner:not(:has(aside)) {
51
- .igd-main-content__page {
52
- border-inline: var(--igd-app-outline);
53
- }
51
+ .igd-main-content__page {
52
+ border-inline: var(--igd-app-outline);
53
+ }
54
54
  }
55
55
 
56
56
  .igd-main-content__page + aside {
57
- margin-inline-end: auto;
57
+ margin-inline-end: auto;
58
58
  }
59
59
 
60
60
  .igd-main-content__inner {
61
- display: flex;
62
- position: relative;
63
-
64
- &:has(aside) {
65
- .igd-main-content__page {
66
- margin-inline-end: 0;
67
- }
68
- }
61
+ display: flex;
62
+ position: relative;
63
+
64
+ &:has(aside) {
65
+ .igd-main-content__page {
66
+ margin-inline-end: 0;
67
+ }
68
+ }
69
69
  }
70
70
 
71
71
  .content {
72
- max-width: 60rem;
73
- margin: 0 auto;
74
- padding: 0;
72
+ max-width: 60rem;
73
+ margin: 0 auto;
74
+ padding: 0;
75
75
  }
76
76
 
77
77
  // ════════════════════════════════════════════════════════════════════════════
@@ -85,236 +85,236 @@
85
85
  // the docs layout and the components rendered inside `.igd-page-layout`.
86
86
  // ════════════════════════════════════════════════════════════════════════════
87
87
 
88
-
89
88
  @media (min-width: #{$bp-desktop-wide}) {
90
- .igd-page-layout {
91
- --igd-page-layout-grid: #{rem(400px)} 1fr;
92
- }
93
-
94
- .igd-main-content__page {
95
- gap: var(--ig-padding);
96
- margin-inline: auto;
97
- border-inline: var(--igd-app-outline);
98
- width: clamp(rem(1200px), 100%, rem(1200px));
99
- }
89
+ .igd-page-layout {
90
+ --igd-page-layout-grid: #{rem(400px)} 1fr;
91
+ }
92
+
93
+ .igd-main-content__page {
94
+ gap: var(--ig-padding);
95
+ margin-inline: auto;
96
+ border-inline: var(--igd-app-outline);
97
+ width: clamp(rem(1200px), 100%, rem(1200px));
98
+ }
100
99
  }
101
100
 
102
101
  // ── Mobile + Tablet (< 1280px) — everything below desktop ──────────────────
103
102
  @media (max-width: #{$bp-tablet-max}) {
104
- :root {
105
- --igd-header-height: #{rem(60px)};
106
- --igd-page-padding: #{rem(24px)};
107
- }
108
-
109
- // Single-column page grid; subheader follows via subgrid.
110
- .igd-page-layout {
111
- --igd-page-layout-grid: auto 1fr;
112
- }
113
-
114
- .igd-logo__text {
115
- display: none;
116
- }
117
-
118
- .igd-main-content {
119
- grid-row: 2;
120
- }
121
-
122
- .igd-search-mobile-bar {
123
- display: flex;
124
- }
125
-
126
- // Sidebar becomes a fixed slide-in overlay, hidden off-screen by default.
127
- .docs-sidebar {
128
- --igd-sidebar-z-index: 1000;
129
-
130
- position: fixed;
131
- inset-block: 0;
132
- inset-inline-start: 0;
133
- height: 100dvh;
134
- max-height: 100dvh;
135
- width: min(rem(360px), 85vw);
136
- transform: translateX(-100%);
137
- transition: transform 250ms ease, box-shadow 250ms ease;
138
- box-shadow: none;
139
- }
140
-
141
- .docs-sidebar-backdrop {
142
- display: block;
143
- position: fixed;
144
- inset: 0;
145
- z-index: 99;
146
- background: light-dark(var(--ig-gray-900), var(--ig-gray-100));
147
- opacity: 0;
148
- pointer-events: none;
149
- transition: opacity 250ms ease;
150
- }
151
-
152
- body[data-sidebar-open] {
153
- overflow: hidden;
154
-
155
- .docs-sidebar {
156
- transform: translateX(0);
157
- box-shadow: var(--ig-elevation-8);
158
- }
159
-
160
- .docs-sidebar-backdrop {
161
- opacity: .6;
162
- pointer-events: auto;
163
- backdrop-filter: blur(10px);
164
- }
165
- }
166
-
167
- body[data-sidebar-open],
168
- body[data-search-modal-open] {
169
- .globalnav {
170
- z-index: 0;
171
- }
172
- }
173
-
174
- // Subheader sidebar toggle reveals when the sidebar is not persistent.
175
- .subheader-sidebar-toggle {
176
- display: flex;
177
- flex-shrink: 0;
178
- }
179
-
180
- // Logo inside the slide-in sidebar (visible only when sidebar is an overlay).
181
- .igd-sidebar-logo {
182
- display: flex;
183
- }
184
-
185
- .igd-main-content__inner {
186
- padding-inline: 0;
187
- }
188
-
189
- // This is the height of the input in fluent theme + 8px padding + height of the logo above
190
- .sidebar-gutter {
191
- min-height: rem(80px);
192
- align-items: center;
193
- }
103
+ :root {
104
+ --igd-header-height: #{rem(60px)};
105
+ --igd-page-padding: #{rem(24px)};
106
+ }
107
+
108
+ // Single-column page grid; subheader follows via subgrid.
109
+ .igd-page-layout {
110
+ --igd-page-layout-grid: auto 1fr;
111
+ }
112
+
113
+ .igd-logo__text {
114
+ display: none;
115
+ }
116
+
117
+ .igd-main-content {
118
+ grid-row: 2;
119
+ }
120
+
121
+ .igd-search-mobile-bar {
122
+ display: flex;
123
+ }
124
+
125
+ // Sidebar becomes a fixed slide-in overlay, hidden off-screen by default.
126
+ .docs-sidebar {
127
+ --igd-sidebar-z-index: 1000;
128
+
129
+ position: fixed;
130
+ inset-block: 0;
131
+ inset-inline-start: 0;
132
+ height: 100dvh;
133
+ max-height: 100dvh;
134
+ width: min(rem(360px), 85vw);
135
+ transform: translateX(-100%);
136
+ transition:
137
+ transform 250ms ease,
138
+ box-shadow 250ms ease;
139
+ box-shadow: none;
140
+ }
141
+
142
+ .docs-sidebar-backdrop {
143
+ display: block;
144
+ position: fixed;
145
+ inset: 0;
146
+ z-index: 99;
147
+ background: light-dark(var(--ig-gray-900), var(--ig-gray-100));
148
+ opacity: 0;
149
+ pointer-events: none;
150
+ transition: opacity 250ms ease;
151
+ }
152
+
153
+ body[data-sidebar-open] {
154
+ overflow: hidden;
155
+
156
+ .docs-sidebar {
157
+ transform: translateX(0);
158
+ box-shadow: var(--ig-elevation-8);
159
+ }
160
+
161
+ .docs-sidebar-backdrop {
162
+ opacity: 0.6;
163
+ pointer-events: auto;
164
+ backdrop-filter: blur(10px);
165
+ }
166
+ }
167
+
168
+ body[data-sidebar-open],
169
+ body[data-search-modal-open] {
170
+ .globalnav {
171
+ z-index: 0;
172
+ }
173
+ }
174
+
175
+ // Subheader sidebar toggle reveals when the sidebar is not persistent.
176
+ .subheader-sidebar-toggle {
177
+ display: flex;
178
+ flex-shrink: 0;
179
+ }
180
+
181
+ // Logo inside the slide-in sidebar (visible only when sidebar is an overlay).
182
+ .igd-sidebar-logo {
183
+ display: flex;
184
+ }
185
+
186
+ .igd-main-content__inner {
187
+ padding-inline: 0;
188
+ }
189
+
190
+ // This is the height of the input in fluent theme + 8px padding + height of the logo above
191
+ .sidebar-gutter {
192
+ min-height: rem(80px);
193
+ align-items: center;
194
+ }
194
195
  }
195
196
 
196
197
  // ── Mobile only (< 768px) ──────────────────────────────────────────────────
197
198
  @media (max-width: #{$bp-mobile-max}) {
198
- .igd-search-content {
199
- max-height: 100%;
200
- }
201
-
202
- .search-decoration {
203
- width: 40px;
204
- aspect-ratio: 1;
205
-
206
- .search-trigger {
207
- display: none;
208
- }
209
-
210
- &:has(.search-trigger:defined)::before {
211
- animation: rotation 6s linear infinite;
212
- opacity: 1;
213
- transition-delay: 500ms;
214
- }
215
- }
216
-
217
- .search-trigger-mobile {
218
- --size: 100%;
219
- --border-radius: #{rem(10px)};
220
-
221
- display: flex;
222
-
223
- width: 100%;
224
- height: 100%;
225
- }
226
-
227
- .igniteui-page-logo {
228
- display: block;
229
- }
230
-
231
- .igd-version-select {
232
- max-width: rem(90px);
233
- }
234
-
235
- .igd-docs-subheader {
236
- padding-inline: rem(16px);
237
- }
238
-
239
- .igd-docs-subheader__content:last-child {
240
- margin-inline-end: 0;
241
- }
242
-
243
- .mobile-toc {
244
- display: block;
245
- position: sticky;
246
- top: var(--igd-header-height);
247
- z-index: 10;
248
- grid-column: 1 / -1;
249
- border-block-end: var(--igd-app-outline);
250
- background-color: var(--igd-layout-sections-bg);
251
- }
252
-
253
- .igd-main-content__markdown {
254
- padding-inline: rem(32px);
255
- }
256
-
257
- // Search dialog goes fullscreen on mobile only.
258
- // `.igd-page-layout` prefix bumps specificity so this beats the
259
- // centered-card base styles declared in Search.scss / SearchAdvanced.scss
260
- // (those files load after this one in the Astro bundle).
261
- .igd-page-layout .search-dialog,
262
- .igd-page-layout .igd-search-dialog::part(base) {
263
- --border-radius: #{rem(8px)};
264
-
265
- margin: 0;
266
- width: 100%;
267
- max-width: 100%;
268
- height: 100dvh;
269
- max-height: 100dvh;
270
- }
271
-
272
-
273
- .igd-search-shell {
274
- grid-template-rows: auto calc(100% - (var(--search-header-footer-height) * 2)) auto;
275
-
276
- igc-divider {
277
- margin-block-start: auto;
278
- }
279
- }
280
-
281
- .igd-search-footer {
282
- display: flex;
283
- align-items: center;
284
- justify-content: end;
285
- border-block-start: var(--igd-app-outline);
286
- }
199
+ .igd-search-content {
200
+ max-height: 100%;
201
+ }
202
+
203
+ .search-decoration {
204
+ width: 40px;
205
+ aspect-ratio: 1;
206
+
207
+ .search-trigger {
208
+ display: none;
209
+ }
210
+
211
+ &:has(.search-trigger:defined)::before {
212
+ animation: rotation 6s linear infinite;
213
+ opacity: 1;
214
+ transition-delay: 500ms;
215
+ }
216
+ }
217
+
218
+ .search-trigger-mobile {
219
+ --size: 100%;
220
+ --border-radius: #{rem(10px)};
221
+
222
+ display: flex;
223
+
224
+ width: 100%;
225
+ height: 100%;
226
+ }
227
+
228
+ .igniteui-page-logo {
229
+ display: block;
230
+ }
231
+
232
+ .igd-version-select {
233
+ max-width: rem(90px);
234
+ }
235
+
236
+ .igd-docs-subheader {
237
+ padding-inline: rem(16px);
238
+ }
239
+
240
+ .igd-docs-subheader__content:last-child {
241
+ margin-inline-end: 0;
242
+ }
243
+
244
+ .mobile-toc {
245
+ display: block;
246
+ position: sticky;
247
+ top: var(--igd-header-height);
248
+ z-index: 10;
249
+ grid-column: 1 / -1;
250
+ border-block-end: var(--igd-app-outline);
251
+ background-color: var(--igd-layout-sections-bg);
252
+ }
253
+
254
+ .igd-main-content__markdown {
255
+ padding-inline: rem(32px);
256
+ }
257
+
258
+ // Search dialog goes fullscreen on mobile only.
259
+ // `.igd-page-layout` prefix bumps specificity so this beats the
260
+ // centered-card base styles declared in Search.scss / SearchAdvanced.scss
261
+ // (those files load after this one in the Astro bundle).
262
+ .igd-page-layout .search-dialog,
263
+ .igd-page-layout .igd-search-dialog::part(base) {
264
+ --border-radius: #{rem(8px)};
265
+
266
+ margin: 0;
267
+ width: 100%;
268
+ max-width: 100%;
269
+ height: 100dvh;
270
+ max-height: 100dvh;
271
+ }
272
+
273
+ .igd-search-shell {
274
+ grid-template-rows: auto calc(100% - (var(--search-header-footer-height) * 2)) auto;
275
+
276
+ igc-divider {
277
+ margin-block-start: auto;
278
+ }
279
+ }
280
+
281
+ .igd-search-footer {
282
+ display: flex;
283
+ align-items: center;
284
+ justify-content: end;
285
+ border-block-start: var(--igd-app-outline);
286
+ }
287
287
  }
288
288
 
289
289
  @media (max-width: #{$bp-hide-toc}) {
290
- .igd-main-content__inner {
291
- aside {
292
- display: none;
293
- }
294
- }
295
-
296
- .igd-main-content__page {
297
- border: none;
298
- }
290
+ .igd-main-content__inner {
291
+ aside {
292
+ display: none;
293
+ }
294
+ }
295
+
296
+ .igd-main-content__page {
297
+ border: none;
298
+ }
299
299
  }
300
300
 
301
301
  // ── Tablet + Desktop (≥ 768px) ─────────────────────────────────────────────
302
302
  @media (min-width: #{$bp-tablet-min}) {
303
- .search-decoration {
304
- &:has(.search-trigger-mobile:defined)::before {
305
- animation: rotation 6s linear infinite;
306
- opacity: 1;
307
- transition-delay: 500ms;
308
- }
309
- }
310
-
311
- .sidebar-gutter {
312
- &:has(.igd-sidebar-logo:only-child) {
313
- display: none;
314
- }
315
- }
316
-
317
- .igd-page-layout {
318
- justify-content: center;
319
- }
303
+ .search-decoration {
304
+ &:has(.search-trigger-mobile:defined)::before {
305
+ animation: rotation 6s linear infinite;
306
+ opacity: 1;
307
+ transition-delay: 500ms;
308
+ }
309
+ }
310
+
311
+ .sidebar-gutter {
312
+ &:has(.igd-sidebar-logo:only-child) {
313
+ display: none;
314
+ }
315
+ }
316
+
317
+ .igd-page-layout {
318
+ justify-content: center;
319
+ }
320
320
  }
@@ -10,23 +10,23 @@ import DocsLayout from 'igniteui-astro-components/layouts/DocsLayout.astro';
10
10
 
11
11
  ## Props
12
12
 
13
- | Prop | Type | Default | Description |
14
- |------|------|---------|-------------|
15
- | `title` | `string` | — | Page `<title>` prepended to the site name. Omit to show the site name only. |
16
- | `description` | `string \| null` | — | `<meta name="description">` value. |
17
- | `keywords` | `string \| null` | — | `<meta name="keywords">` value. |
18
- | `hasSidebar` | `boolean` | `true` | Renders the sidebar rail when `true`. Provide content via `<… slot="sidebar">`. |
19
- | `currentSlug` | `string` | `''` | Slug of the current page — used for breadcrumbs in the sub-header. |
20
- | `siteTitle` | `string` | virtual module | Override the site name used in `<title>` and the sub-header. Use this when not running `siteMetaIntegration`. |
13
+ | Prop | Type | Default | Description |
14
+ | ------------- | ---------------- | -------------- | ------------------------------------------------------------------------------------------------------------- |
15
+ | `title` | `string` | — | Page `<title>` prepended to the site name. Omit to show the site name only. |
16
+ | `description` | `string \| null` | — | `<meta name="description">` value. |
17
+ | `keywords` | `string \| null` | — | `<meta name="keywords">` value. |
18
+ | `hasSidebar` | `boolean` | `true` | Renders the sidebar rail when `true`. Provide content via `<… slot="sidebar">`. |
19
+ | `currentSlug` | `string` | `''` | Slug of the current page — used for breadcrumbs in the sub-header. |
20
+ | `siteTitle` | `string` | virtual module | Override the site name used in `<title>` and the sub-header. Use this when not running `siteMetaIntegration`. |
21
21
 
22
22
  ## Slots
23
23
 
24
- | Slot | Description |
25
- |------|-------------|
26
- | *(default)* | Main page content. |
27
- | `sidebar` | Sidebar content — typically `<DocsSidebar>`. Only rendered when `hasSidebar={true}`. |
28
- | `toc` | "On this page" column — pass `<DocsToc slot="toc" headings={headings} />` here. Omit to hide the TOC sidebar entirely. |
29
- | `head` | Extra `<head>` entries injected after platform defaults. |
24
+ | Slot | Description |
25
+ | ----------- | ---------------------------------------------------------------------------------------------------------------------- |
26
+ | _(default)_ | Main page content. |
27
+ | `sidebar` | Sidebar content — typically `<DocsSidebar>`. Only rendered when `hasSidebar={true}`. |
28
+ | `toc` | "On this page" column — pass `<DocsToc slot="toc" headings={headings} />` here. Omit to hide the TOC sidebar entirely. |
29
+ | `head` | Extra `<head>` entries injected after platform defaults. |
30
30
 
31
31
  ## Example
32
32
 
@@ -48,20 +48,12 @@ const { headings } = Astro.props as { headings: MarkdownHeading[] };
48
48
  const slug = Astro.params.slug ?? '';
49
49
 
50
50
  const sidebar: SidebarEntry[] = [
51
- { label: 'Getting Started', collapsed: false, items: [
52
- { label: 'Introduction', slug: '' },
53
- ]},
54
- { label: 'Components', collapsed: false, items: [
55
- { label: 'Toast', slug: 'components/toast' },
56
- ]},
51
+ { label: 'Getting Started', collapsed: false, items: [{ label: 'Introduction', slug: '' }] },
52
+ { label: 'Components', collapsed: false, items: [{ label: 'Toast', slug: 'components/toast' }] },
57
53
  ];
58
54
  ---
59
- <DocsLayout
60
- title="Toast"
61
- siteTitle="My Library"
62
- hasSidebar
63
- currentSlug={slug}
64
- >
55
+
56
+ <DocsLayout title="Toast" siteTitle="My Library" hasSidebar currentSlug={slug}>
65
57
  <DocsSidebar slot="sidebar" items={sidebar} currentSlug={slug} />
66
58
  <DocsToc slot="toc" headings={headings} offsetTarget=".docs-subheader" />
67
59
  <slot />
@@ -79,6 +71,7 @@ import DocsSidebar from 'igniteui-astro-components/components/sidebar/DocsSideba
79
71
 
80
72
  const slug = Astro.params.slug ?? '';
81
73
  ---
74
+
82
75
  <DocsLayout title="Changelog" siteTitle="My Library" hasSidebar currentSlug={slug}>
83
76
  <DocsSidebar slot="sidebar" currentSlug={slug} />
84
77
  <slot />
@@ -99,12 +92,8 @@ import DocsToc from 'igniteui-astro-components/components/DocsToc.astro';
99
92
  const { headings } = Astro.props;
100
93
  const slug = Astro.params.slug ?? '';
101
94
  ---
102
- <DocsLayout
103
- title="Toast"
104
- description="Toast component documentation"
105
- hasSidebar
106
- currentSlug={slug}
107
- >
95
+
96
+ <DocsLayout title="Toast" description="Toast component documentation" hasSidebar currentSlug={slug}>
108
97
  <DocsSidebar slot="sidebar" currentSlug={slug} />
109
98
  <DocsToc slot="toc" headings={headings} offsetTarget=".docs-subheader" />
110
99
  <slot />
@@ -118,7 +107,7 @@ they are provided automatically. When not, supply minimal stubs via a Vite
118
107
  plugin (see [playground/astro.config.mjs](../../../playground/astro.config.mjs)
119
108
  for a reference implementation):
120
109
 
121
- | Module | Used for | Can be overridden by prop |
122
- |--------|----------|--------------------------|
110
+ | Module | Used for | Can be overridden by prop |
111
+ | --------------------------------- | --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
123
112
  | `virtual:docs-template/site-meta` | Site title, sidebar tree, product links, extra `<head>` entries | `siteTitle` on `DocsLayout`, `items` on `DocsSidebar`, `productLinks`/`sidebarItems` on `DocsSubHeader` |
124
- | `virtual:docs-template/nav-html` | Pre-fetched nav/footer HTML, widget script URL, platform key | — (not yet prop-overridable) |
113
+ | `virtual:docs-template/nav-html` | Pre-fetched nav/footer HTML, widget script URL, platform key | — (not yet prop-overridable) |