@sveltia/cms 0.21.4 → 0.22.0
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 +12 -0
- package/dist/sveltia-cms.js +20 -20
- package/dist/sveltia-cms.mjs +46 -46
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -124,6 +124,7 @@ We are working hard to create a **significantly better alternative to Netlify CM
|
|
|
124
124
|
- Entry slug template tags support [filter transformations](https://decapcms.org/docs/summary-strings/) just like summary string template tags[^29].
|
|
125
125
|
- You can set the maximum number of characters for an entry slug with the new `slug_length` collection option[^25].
|
|
126
126
|
- Single quotes in a slug will be replaced with `sanitize_replacement` (default: hyphen) rather than being removed[^52].
|
|
127
|
+
- Supports a [JSON configuration file](#providing-a-json-configuration-file) that can be generated for bulk or complex collections[^60].
|
|
127
128
|
|
|
128
129
|
### Better content editing
|
|
129
130
|
|
|
@@ -310,6 +311,16 @@ If you’ve chosen to install with npm, updating the package is your responsibil
|
|
|
310
311
|
|
|
311
312
|
## Tips & tricks
|
|
312
313
|
|
|
314
|
+
### Providing a JSON configuration file
|
|
315
|
+
|
|
316
|
+
Sveltia CMS supports a configuration file written in the JSON format in addition to the standard YAML format. This allows developers to programmatically generate the CMS configuration to enable bulk or complex collections. To do this, simply add a `<link>` tag to your HTML, just like a [custom YAML config link](https://decapcms.org/docs/configuration-options/#configuration-file), but with the type `application/json`:
|
|
317
|
+
|
|
318
|
+
```html
|
|
319
|
+
<link href="path/to/config.json" type="application/json" rel="cms-config-url" />
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
Alternatively, you can [manually initialize](https://decapcms.org/docs/manual-initialization/) the CMS with a JavaScript configuration object.
|
|
323
|
+
|
|
313
324
|
### Migrating from Git Gateway backend
|
|
314
325
|
|
|
315
326
|
Sveltia CMS does not support the Git Gateway backend (and Netlify Identity) due to performance limitations. If you don’t care about user management, you can easily migrate to the [GitHub backend](https://decapcms.org/docs/github-backend/) or [GitLab backend](https://decapcms.org/docs/gitlab-backend/). Make sure **you install an OAuth client** on GitHub or GitLab in addition to updating your configuration file. As noted in the document, Netlify still facilitates the auth flow.
|
|
@@ -608,3 +619,4 @@ This software is provided “as is” without any express or implied warranty. W
|
|
|
608
619
|
[^57]: Netlify/Decap CMS [#328](https://github.com/decaporg/decap-cms/issues/328), [#3853](https://github.com/decaporg/decap-cms/issues/3853)
|
|
609
620
|
[^58]: Netlify/Decap CMS [#5125](https://github.com/decaporg/decap-cms/issues/5125)
|
|
610
621
|
[^59]: Netlify/Decap CMS [#1654](https://github.com/decaporg/decap-cms/issues/1654)
|
|
622
|
+
[^60]: Netlify/Decap CMS [#386](https://github.com/decaporg/decap-cms/issues/386)
|