Skip to content

Commit a0424db

Browse files
Homepage API (#2474)
* Add initial draft Created with the help of Claude 3.7 * Add TODO about Data management / green box screenshot * Add Homepage customization draft (moved from features to customization) * Refine the structure and content of the page * Update 2 files * Update 2 files * Revert "Update 2 files" This reverts commit d930f9c. * Revert "Update 2 files" This reverts commit eac1441. * wip * Refine code examples and make them consistent between JS & TS * Refine, and remove unstable API * Improve complete example: screenshot, code explanation, DS API count * Add "Homepage" + icon to example intro. * Tweak example intro. sentence * Tweak another wording in example description * Use widget helpers * Use Widget helpers (loading, no data, etc.) * Update with Rémi's feedback * Clean up formatting * Improve wording * Update CodeSandbox link * Use "NoData" with default content --------- Co-authored-by: dev-docs-github-app[bot] <178952281+dev-docs-github-app[bot]@users.noreply.github.com>
1 parent 6473f24 commit a0424db

File tree

11 files changed

+790
-3
lines changed

11 files changed

+790
-3
lines changed

docusaurus/docs/cms/admin-panel-customization/homepage.md

Lines changed: 774 additions & 0 deletions
Large diffs are not rendered by default.

docusaurus/docs/cms/configurations/features.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The `config/features.js|ts` file is used to enable feature flags. Currently this
1616

1717
Some incoming Strapi features are not yet ready to be shipped to all users, but Strapi still offers community users the opportunity to provide early feedback on these new features or changes. With these experimental features, developers have the flexibility to choose and integrate new features and changes into their Strapi applications as they become available in the current major version as well as assist us in shaping these new features.
1818

19-
Such experimental features are indicated by a <FeatureFlagBadge /> badge throughout the documentation and enabling these features requires enabling the corresponding future flags. Future flags differ from features that are in alpha in that future flags are disabled by default.
19+
Such experimental features are indicated by a <FeatureFlagBadge /> badge throughout the documentation, where the name of the feature flag to use is included in the badge (e.g., <FeatureFlagBadge feature="FeatureFlagName" />). Enabling these features requires enabling the corresponding future flags. Future flags differ from features that are in alpha in that future flags are disabled by default.
2020

2121
:::danger
2222
Enable future flags at your own risk. Experimental features may be subject to change or removal, may contain breaking changes, may be unstable or not fully ready for use, and some parts may still be under development or using mock data.

docusaurus/docs/cms/features/admin-panel.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@ The admin panel is the back office of your Strapi application. From the admin pa
1616
<ThemedImage
1717
alt="Homepage of the Admin Panel"
1818
sources={{
19-
light: '/img/assets/getting-started/admin-panel-homepage.png',
20-
dark: '/img/assets/getting-started/admin-panel-homepage_DARK.png',
19+
light: '/img/assets/admin-homepage/admin-panel-homepage-with-tour.png',
20+
dark: '/img/assets/admin-homepage/admin-panel-homepage-with-tour_DARK.png',
2121
}}
2222
/>
2323

24+
:::tip
25+
You can [create your own widgets](/cms/admin-panel-customization/homepage) to customize the admin panel's homepage.
26+
:::
27+
2428
## Overview
2529

2630
:::prerequisites

docusaurus/sidebars.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ const sidebars = {
7575
id: 'cms/features/draft-and-publish'
7676
},
7777
'cms/features/email',
78+
7879
{
7980
type: 'doc',
8081
label: 'Internationalization (i18n)',
@@ -293,6 +294,14 @@ const sidebars = {
293294
'cms/admin-panel-customization/wysiwyg-editor',
294295
]
295296
},
297+
{
298+
type: 'doc',
299+
label: 'Homepage customization',
300+
id: 'cms/admin-panel-customization/homepage',
301+
customProps: {
302+
new: true,
303+
}
304+
},
296305
'cms/cli',
297306
{
298307
type: 'doc',
406 KB
Loading
413 KB
Loading
309 KB
Loading
310 KB
Loading
61.8 KB
Loading
64.8 KB
Loading

0 commit comments

Comments
 (0)