You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add tooltip
* Simplify usage
* Remove tooltip test from sidebar
* Get clickable "notice" components that expands upon click
* Convert it to hover effect
* Refine tooltip style further
* Refine tooltip examples in sidebars.js
* Fix styles
* Refine tooltips examples & styles
* Slightly tweak dark mode tooltip styles
* Translate code comment
* Translate code comment
* Add comment on how to use value in HTML notices
* Fix gitignore
* Apply various examples of tooltips to TOC
* Adjust CSS
* Rename properties for HTML type to better handle tooltips
* Fix admin panel custom. tooltip
Copy file name to clipboardExpand all lines: docusaurus/sidebars.js
+66-5Lines changed: 66 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -213,6 +213,7 @@ const sidebars = {
213
213
collapsible: false,
214
214
className: 'category-cms-configurations',
215
215
items: [
216
+
216
217
{
217
218
type: 'doc',
218
219
label: 'Configurations introduction',
@@ -223,9 +224,25 @@ const sidebars = {
223
224
label: 'Admin panel',
224
225
collapsed: true,
225
226
customProps: {
226
-
updated: true,
227
+
updated: false,
228
+
text: "The section has been simplified",
229
+
tooltip: `We simplified the admin panel configuration section to make it easier to navigate and find what you need.</div>
230
+
<div>The new structure groups configurations by their purpose, making it more intuitive to locate specific settings.</div>
231
+
<div><em>Notes: </em>
232
+
<ul>
233
+
<li>Lifecycle functions documentation has been moved to the Development section.</li>
234
+
<li>Email and Upload Providers documentation have been included in the corresponding Features pages.</li>
235
+
</div>`
227
236
},
228
237
items: [
238
+
// {
239
+
// type: 'html',
240
+
// value: 'placeholder', // a value is required for the HTML type, but it is not rendered
241
+
// customProps: {
242
+
// text: "The section has been simplified",
243
+
// tooltip: `We simplified the admin panel configuration section to make it easier to navigate and find what you need.</div><div>The new structure groups configurations by their purpose, making it more intuitive to locate specific settings.</div>`
// <span>This tooltip can be used to display short pieces of information.</span><br><br>
311
+
// We may use bullets in the tooltip as well:<br>
312
+
// <ul>
313
+
// <li>This item is purely informative</li>
314
+
// <li>Please avoid using links here as those tooltips are not hoverable</li>
315
+
// </ul><br/>`
316
+
},
317
+
},
288
318
{
289
319
type: 'category',
290
320
collapsed: true,
291
321
collapsible: true,
292
322
label: "Database",
293
323
customProps: {
294
-
updated: false,
324
+
tooltip: 'This section now regroups all the database-related configurations and guides, including migrations and transactions.'
295
325
},
296
326
items: [
297
327
{
@@ -369,9 +399,32 @@ const sidebars = {
369
399
label: 'Admin panel customization',
370
400
collapsed: true,
371
401
customProps: {
372
-
updated: true,
402
+
updated: false,
403
+
// text: `The section has been reorganized`,
404
+
// tooltip: `We have reorganized the admin panel customization section to make it easier to navigate and find what you need.</div>
405
+
// <div>The new structure groups customizations by their purpose, making it more intuitive to locate specific settings.</div>
406
+
// <div><em>Notes: </em>
407
+
// <ul>
408
+
// <li>Deployment-related configuration has been moved to the Configurations > Admin panel > Admin panel server page.</li>
409
+
// <li>Host, port, and path configuration documentation has been moved to the Configurations > Server page.</li>
410
+
// </ul>`
411
+
tooltip: "This section has been reorganized, see details below.",
373
412
},
374
413
items: [
414
+
{
415
+
type: 'html',
416
+
value: 'placeholder',// a value is required for the HTML type, but it is not rendered
417
+
customProps: {
418
+
tooltipTitle: `The section has been reorganized`,
419
+
tooltipContent: `We have reorganized the admin panel customization section to make it easier to navigate and find what you need.</div>
420
+
<br/><br/>
421
+
<div>The new structure groups customizations by their purpose, making it more intuitive to locate specific settings.</div>
422
+
<br/>
423
+
<div><em>Note: </em>
424
+
Deployment-related configuration, including host, port, and path configuration, has been moved to the Configurations > Admin panel > <a href="/cms/configurations/admin-panel#admin-panel-server">Admin panel server</a> page.
425
+
</div>`
426
+
},
427
+
},
375
428
{
376
429
type: 'doc',
377
430
id: 'cms/admin-panel-customization',
@@ -423,6 +476,14 @@ const sidebars = {
423
476
collapsible: false,
424
477
className: 'category-cms-typescript',// TODO: add CSS for icon
425
478
items: [
479
+
{
480
+
type: 'html',
481
+
value: 'placeholder',// a value is required for the HTML type, but it is not rendered
482
+
customProps: {
483
+
tooltipTitle: "This section is new",
484
+
tooltipContent: "We grouped all the TypeScript-related content into a new section, including configurations, development tips, and guides."
0 commit comments