@sveltia/cms 0.117.2 → 0.118.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 +5 -5
- package/dist/sveltia-cms.js +9 -9
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +9 -9
- package/dist/sveltia-cms.mjs.map +1 -1
- package/main.d.ts +5 -5
- package/package.json +1 -1
- package/schema/sveltia-cms.json +1 -1
- package/types/public.d.ts +4 -4
package/README.md
CHANGED
|
@@ -852,7 +852,7 @@ You can now open `https://[hostname]/admin/` as usual to start editing. There is
|
|
|
852
852
|
|
|
853
853
|
#### Editing the configuration file
|
|
854
854
|
|
|
855
|
-
For a better DX, we recommend [setting up the JSON schema](#enabling-autocomplete-and-validation-for-the-configuration-file) for the
|
|
855
|
+
For a better DX, we recommend [setting up the JSON schema](#enabling-autocomplete-and-validation-for-the-configuration-file) for the CMS configuration file in your code editor. If you have the YAML extension installed, VS Code may automatically apply the outdated Netlify CMS config schema to `config.yml`. To use the latest Sveltia CMS config schema instead, you need to specify its URL.
|
|
856
856
|
|
|
857
857
|
#### Dealing with unsupported features
|
|
858
858
|
|
|
@@ -899,7 +899,7 @@ You can also generate a personal access token (PAT) on GitHub or GitLab, and use
|
|
|
899
899
|
|
|
900
900
|
### Enabling autocomplete and validation for the configuration file
|
|
901
901
|
|
|
902
|
-
Sveltia CMS provides a full [JSON schema](https://json-schema.org/) for the configuration file, so you can get autocomplete and validation in your favourite code editor while editing the
|
|
902
|
+
Sveltia CMS provides a full [JSON schema](https://json-schema.org/) for the configuration file, so you can get autocomplete and validation in your favourite code editor while editing the CMS configuration. The schema is generated from the source and always up to date with the latest CMS version.
|
|
903
903
|
|
|
904
904
|
If you use VS Code, you can enable it for the YAML configuration file by installing the [YAML extension](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml) and adding the following comment to the top of `config.yml`:
|
|
905
905
|
|
|
@@ -948,7 +948,7 @@ Alternatively, you can [manually initialize](https://decapcms.org/docs/manual-in
|
|
|
948
948
|
|
|
949
949
|
### Providing multiple configuration files
|
|
950
950
|
|
|
951
|
-
With Sveltia CMS, developers can modularize the
|
|
951
|
+
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.
|
|
952
952
|
|
|
953
953
|
```html
|
|
954
954
|
<link href="/admin/config.yml" type="application/yaml" rel="cms-config-url" />
|
|
@@ -1122,7 +1122,7 @@ Note that the special index file is placed right under the `folder`, regardless
|
|
|
1122
1122
|
|
|
1123
1123
|
The singleton collection is an unnamed, non-nested variant of a [file collection](https://decapcms.org/docs/collection-file/) that can be used to manage a set of pre-defined data files. Singleton files appear in the content library’s sidebar under the Files group, and users can open the Content Editor directly without navigating to a file list. (If there are no other collections, the singleton collection appears as a regular file collection on desktop.)
|
|
1124
1124
|
|
|
1125
|
-
To create this special file collection, add the new `singletons` option, along with an array of file definitions, to the root level of your
|
|
1125
|
+
To create this special file collection, add the new `singletons` option, along with an array of file definitions, to the root level of your CMS configuration.
|
|
1126
1126
|
|
|
1127
1127
|
This is a conventional file collection:
|
|
1128
1128
|
|
|
@@ -2088,7 +2088,7 @@ Due late 2026
|
|
|
2088
2088
|
|
|
2089
2089
|
Sveltia CMS is not a service but a client-side application that runs in your web browser. You don’t need an account to use the app, but you do need to authenticate with your Git hosting provider to read and write remote data. All content is stored in your Git repository. No data is sent to any server operated by us.
|
|
2090
2090
|
|
|
2091
|
-
Depending on your
|
|
2091
|
+
Depending on your CMS configuration, you will need to use an OAuth application hosted by yourself or a third party, such as Netlify or Cloudflare, to retrieve an access token from GitHub. Alternatively, you can provide an access token directly on the CMS’s sign-in page. In any case, your token is stored in your browser’s local storage, and subsequent API requests are made directly between your browser and the Git hosting provider.
|
|
2092
2092
|
|
|
2093
2093
|
The CMS also integrates with various third-party services, including stock photo providers and translation services. These are “bring your own key” (BYOK) features that are entirely optional. You provide your own API keys for these services, which are stored in your browser’s local storage, and API requests are then made directly between your browser and the relevant service providers.
|
|
2094
2094
|
|