@sveltia/cms 0.118.1 → 0.119.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 +10 -1
- package/dist/sveltia-cms.js +149 -149
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +144 -144
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -64,6 +64,7 @@ This free, open source successor to Netlify/Decap CMS is currently in public bet
|
|
|
64
64
|
- [Moving your site from Netlify to another hosting service](#moving-your-site-from-netlify-to-another-hosting-service)
|
|
65
65
|
- [Enabling autocomplete and validation for the configuration file](#enabling-autocomplete-and-validation-for-the-configuration-file)
|
|
66
66
|
- [Providing a JSON configuration file](#providing-a-json-configuration-file)
|
|
67
|
+
- [Providing a TOML configuration file](#providing-a-toml-configuration-file)
|
|
67
68
|
- [Providing multiple configuration files](#providing-multiple-configuration-files)
|
|
68
69
|
- [Working around an authentication error](#working-around-an-authentication-error)
|
|
69
70
|
- [Working with a local Git repository](#working-with-a-local-git-repository)
|
|
@@ -282,7 +283,7 @@ We’ve made various improvements to help you get your work done faster and more
|
|
|
282
283
|
### Better configuration
|
|
283
284
|
|
|
284
285
|
- We provide comprehensive [compatibility information](#compatibility) to help you avoid unsupported options and configurations that might cause errors. By contrast, the Netlify/Decap CMS documentation does not mention the deprecation of camel case options, the removal of the Date widget and the replacement of Moment.js.
|
|
285
|
-
- Sveltia CMS supports a [JSON configuration file](#providing-a-json-configuration-file) that can be generated for bulk or complex collections.[^60]
|
|
286
|
+
- Sveltia CMS supports a [JSON configuration file](#providing-a-json-configuration-file) that can be generated for bulk or complex collections.[^60] A [TOML configuration file](#providing-a-toml-configuration-file) is also supported.
|
|
286
287
|
- Also supports [multiple configuration files](#providing-multiple-configuration-files) to allow developers to modularize the configuration.[^197]
|
|
287
288
|
- We provide an [up-to-date JSON schema](#enabling-autocomplete-and-validation-for-the-configuration-file) for YAML/JSON configuration files, which enables autocomplete and validation in VS Code and other editors.[^253] If you use [deprecated options](#deprecations) in a supported code editor, you should receive a warning.
|
|
288
289
|
- Improved TypeScript support:
|
|
@@ -946,6 +947,14 @@ Sveltia CMS supports a configuration file written in the JSON format in addition
|
|
|
946
947
|
|
|
947
948
|
Alternatively, you can [manually initialize](https://decapcms.org/docs/manual-initialization/) the CMS with a JavaScript configuration object.
|
|
948
949
|
|
|
950
|
+
### Providing a TOML configuration file
|
|
951
|
+
|
|
952
|
+
Sveltia CMS supports TOML configuration files in addition to YAML and JSON. To use a TOML config file, add a `<link>` tag to your HTML with the type `application/toml`:
|
|
953
|
+
|
|
954
|
+
```html
|
|
955
|
+
<link href="path/to/config.toml" type="application/toml" rel="cms-config-url" />
|
|
956
|
+
```
|
|
957
|
+
|
|
949
958
|
### Providing multiple configuration files
|
|
950
959
|
|
|
951
960
|
With Sveltia CMS, developers can modularize the CMS configuration. Just provide multiple config links and the CMS will automatically merge them in the order of `<link>` tag appearance. It’s possible to use YAML, [JSON](#providing-a-json-configuration-file) or both.
|