docs: update cdn examples to use v3
This commit is contained in:
parent
f90f805a24
commit
0c0803bd17
@ -45,12 +45,12 @@ In this example, we pull the `admin/index.html` file from a public CDN.
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<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>
|
<title>Content Manager</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!-- Include the script that builds the page and powers Static CMS -->
|
<!-- 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>
|
<script>
|
||||||
window.CMS.init();
|
window.CMS.init();
|
||||||
</script>
|
</script>
|
||||||
|
@ -17,13 +17,13 @@ Start by replacing Decap with Static CMS, then address the changes below.
|
|||||||
Decap:
|
Decap:
|
||||||
|
|
||||||
```html
|
```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:
|
Static CMS:
|
||||||
|
|
||||||
```html
|
```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
|
### Bundling
|
||||||
@ -64,7 +64,7 @@ Static CMS bundles its styles separately from the main javascript file, so you w
|
|||||||
**CDN**:
|
**CDN**:
|
||||||
|
|
||||||
```html
|
```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**:
|
**Bundling**:
|
||||||
|
@ -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.
|
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.
|
- (Recommended) If you use `^3.0.0`, Static CMS does all updates except major versions automatically.
|
||||||
- It upgrades to `2.0.1`, `2.1.0`, `2.1.1`.
|
- It upgrades to `3.0.1`, `3.1.0`, `3.1.1`.
|
||||||
- It does not upgrade to `2.0.0` or higher.
|
- It does not upgrade to `3.0.0` or higher.
|
||||||
- It does not upgrade to beta versions.
|
- It does not upgrade to beta versions.
|
||||||
|
|
||||||
- If you use `~2.0.0`, Static CMS will do only patch updates automatically.
|
- If you use `~3.0.0`, Static CMS will do only patch updates automatically.
|
||||||
- It upgrades `2.0.1`, `2.0.2`.
|
- It upgrades `3.0.1`, `3.0.2`.
|
||||||
- It does not upgrade to `2.1.0` or higher.
|
- It does not upgrade to `3.1.0` or higher.
|
||||||
- It does not upgrade beta versions.
|
- It does not upgrade beta versions.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user