@sveltia/cms 0.9.0 → 0.9.2
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.
- package/README.md +16 -14
- package/dist/sveltia-cms.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -82,7 +82,7 @@ Here are some highlights mainly compared to Netlify/Decap CMS:
|
|
|
82
82
|
|
|
83
83
|
### Better fields/widgets
|
|
84
84
|
|
|
85
|
-
- Relation field options are displayed with no
|
|
85
|
+
- Relation field options are displayed with no additional API requests[^14]. The `options_length` property is therefore ignored.
|
|
86
86
|
- Required fields, not optional fields, are clearly marked for efficient data entry.
|
|
87
87
|
- Provides a reimagined all-in-one asset selection dialog for file and image fields.
|
|
88
88
|
- [Collection-specific assets](#use-a-custom-media-folder-for-a-collection) will be listed first for easy selection, while all assets can also be displayed in a separate tab[^19].
|
|
@@ -96,7 +96,7 @@ Here are some highlights mainly compared to Netlify/Decap CMS:
|
|
|
96
96
|
|
|
97
97
|
- A completely new Asset Library, built separately from the image selection dialog, makes it easy to manage all of your files, including images, videos and documents.
|
|
98
98
|
- You can sort or filter assets by name or file type and view asset details, including size, dimensions, and a list of entries that use the selected asset.
|
|
99
|
-
- You can upload multiple assets at once, including files in nested folders, by browsing or dragging & dropping them into the
|
|
99
|
+
- You can upload multiple assets at once, including files in nested folders, by browsing or dragging & dropping them into the library[^5].
|
|
100
100
|
- You can navigate between the global media folder and per-collection media folders[^6].
|
|
101
101
|
- Assets stored in an entry-relative media folder are automatically deleted when the associated entry is deleted because these assets are not available for other entries[^22].
|
|
102
102
|
|
|
@@ -167,7 +167,7 @@ While it’s not our goal to recreate all the features found in Netlify/Decap CM
|
|
|
167
167
|
|
|
168
168
|
- [Svelte 5](https://svelte.dev/blog/runes) migration
|
|
169
169
|
- Further Netlify/Decap CMS compatibility, including Editorial Workflow
|
|
170
|
-
- Localization
|
|
170
|
+
- Localization other than Japanese
|
|
171
171
|
- Documentation
|
|
172
172
|
- Marketing site
|
|
173
173
|
- Demo site
|
|
@@ -188,7 +188,7 @@ Here are some starter kits for popular frameworks created by community members.
|
|
|
188
188
|
|
|
189
189
|
- [Eleventy starter template](https://github.com/danurbanowicz/eleventy-sveltia-cms-starter) by [@danurbanowicz](https://github.com/danurbanowicz)
|
|
190
190
|
- [Hugo module](https://github.com/privatemaker/headless-cms) by [@privatemaker](https://github.com/privatemaker)
|
|
191
|
-
-
|
|
191
|
+
- Astro: [astro-sveltia-cms](https://github.com/majesticostudio/astro-sveltia-cms), [astro-starter](https://github.com/zankhq/astro-starter) and [astros](https://github.com/zankhq/astros) by [@zanhk](https://github.com/zanhk)
|
|
192
192
|
|
|
193
193
|
Alternatively, you can probably use one of the [Netlify/Decap CMS templates](https://decapcms.org/docs/start-with-a-template/) and make a quick migration to Sveltia CMS.
|
|
194
194
|
|
|
@@ -319,21 +319,23 @@ With Sveltia CMS, you can disable automatic deployments by default and manually
|
|
|
319
319
|
```
|
|
320
320
|
1. Commit and deploy the change to the config file and reload the CMS.
|
|
321
321
|
1. Now, whenever you save an entry or asset, `[skip ci]` is automatically added to each commit message. However, deletions are always committed without the prefix to avoid unexpected data retention on your site.
|
|
322
|
-
1. If you want to deploy a new
|
|
322
|
+
1. If you want to deploy a new or updated entry, as well as any other unpublished entries and assets, click an arrow next to the Save button in the content editor, then select **Save and Publish**. This will trigger CI/CD by omitting `[skip ci]`.
|
|
323
323
|
|
|
324
324
|
If you set `automatic_deployments` to `true`, the behaviour is reversed. CI/CD will be triggered by default, while you have an option to **Save without Publishing** that adds `[skip ci]` only to the associated commit.
|
|
325
325
|
|
|
326
|
-
|
|
326
|
+
_Gotcha:_ Unpublished entries and assets are not drafts. Once committed to your repository, those changes can be deployed any time another commit is pushed without `[skip ci]`, or when a manual deployment is triggered.
|
|
327
|
+
|
|
328
|
+
If the `automatic_deployments` property is defined, you can manually trigger a deployment by selecting **Publish Changes** under the Account button in the top right corner of the CMS. To use this feature:
|
|
327
329
|
|
|
328
330
|
- GitHub Actions:
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
331
|
+
1. Without any configuration, Publish Changes will [trigger a `repository_dispatch` event](https://docs.github.com/en/rest/repos/repos#create-a-repository-dispatch-event) with the `sveltia-cms-publish` event type. Update your build workflow to receive this event:
|
|
332
|
+
```diff
|
|
333
|
+
on:
|
|
334
|
+
push:
|
|
335
|
+
branches: [$default-branch]
|
|
336
|
+
+ repository_dispatch:
|
|
337
|
+
+ types: [sveltia-cms-publish]
|
|
338
|
+
```
|
|
337
339
|
- Other CI/CD providers:
|
|
338
340
|
1. Select Settings under the Account button in the top right corner of the CMS.
|
|
339
341
|
1. Select the Advanced tab.
|