docs: update cdn examples to use v3

This commit is contained in:
Daniel Lautzenheiser 2023-11-17 10:18:57 -05:00
parent f90f805a24
commit 0c0803bd17
3 changed files with 11 additions and 11 deletions

View File

@ -45,12 +45,12 @@ In this example, we pull the `admin/index.html` file from a public CDN.
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://unpkg.com/@staticcms/app@^2.0.0/dist/main.css" />
<link rel="stylesheet" href="https://unpkg.com/@staticcms/app@^3.0.0/dist/main.css" />
<title>Content Manager</title>
</head>
<body>
<!-- Include the script that builds the page and powers Static CMS -->
<script src="https://unpkg.com/@staticcms/app@^2.0.0/dist/static-cms-app.js"></script>
<script src="https://unpkg.com/@staticcms/app@^3.0.0/dist/static-cms-app.js"></script>
<script>
window.CMS.init();
</script>

View File

@ -17,13 +17,13 @@ Start by replacing Decap with Static CMS, then address the changes below.
Decap:
```html
<script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script>
<script src="https://unpkg.com/netlify-cms@^3.0.0/dist/netlify-cms.js"></script>
```
Static CMS:
```html
<script src="https://unpkg.com/@staticcms/app@^2.0.0/dist/static-cms-app.js"></script>
<script src="https://unpkg.com/@staticcms/app@^3.0.0/dist/static-cms-app.js"></script>
```
### Bundling
@ -64,7 +64,7 @@ Static CMS bundles its styles separately from the main javascript file, so you w
**CDN**:
```html
<link rel="stylesheet" href="https://unpkg.com/@staticcms/app@^2.0.0/dist/main.css" />
<link rel="stylesheet" href="https://unpkg.com/@staticcms/app@^3.0.0/dist/main.css" />
```
**Bundling**:

View File

@ -14,12 +14,12 @@ If you are using a package manager like Yarn or NPM, use their standard procedur
If you are using Static CMS through a CDN like Unpkg, then that depends on the version tag you are using. You can find the version tag in the `/admin/index.html` file of your site.
- (Recommended) If you use `^2.0.0`, Static CMS does all updates except major versions automatically.
- It upgrades to `2.0.1`, `2.1.0`, `2.1.1`.
- It does not upgrade to `2.0.0` or higher.
- (Recommended) If you use `^3.0.0`, Static CMS does all updates except major versions automatically.
- It upgrades to `3.0.1`, `3.1.0`, `3.1.1`.
- It does not upgrade to `3.0.0` or higher.
- It does not upgrade to beta versions.
- If you use `~2.0.0`, Static CMS will do only patch updates automatically.
- It upgrades `2.0.1`, `2.0.2`.
- It does not upgrade to `2.1.0` or higher.
- If you use `~3.0.0`, Static CMS will do only patch updates automatically.
- It upgrades `3.0.1`, `3.0.2`.
- It does not upgrade to `3.1.0` or higher.
- It does not upgrade beta versions.