Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

docs(cdn): remove reference to next tag #920

Merged
merged 3 commits into from
Jan 10, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 8 additions & 14 deletions src/globals/internal/storybook-cdn.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @license
*
* Copyright IBM Corp. 2021
* Copyright IBM Corp. 2021, 2022
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
Expand Down Expand Up @@ -38,34 +38,28 @@ function _renderScript(components, tag, isRTL = false) {
export const cdnJs = ({ components }) => {
return `
### JS (via CDN)

\`\`\`html
// SPECIFIC VERSION (available starting v1.6.0)
${_renderScript(components, `version/v${packageJson.version}`)}

// LATEST tag
${_renderScript(components, 'tag/v1/latest')}

// NEXT tag
${_renderScript(components, 'tag/v1/next')}
\`\`\`
> NOTE: The latest/next tags are moving versions. While beneficial to

> NOTE: The latest tag is a moving version. While beneficial to
> always stay on the most recent version, it is recommended to choose a specific
> version and properly test your application when upgrading to a newer version.


#### Right-to-left (RTL) versions

\`\`\`html
// SPECIFIC VERSION (available starting v1.6.0)
${_renderScript(components, `version/v${packageJson.version}`, true)}

// LATEST tag
${_renderScript(components, 'tag/v1/latest', true)}

// NEXT tag
${_renderScript(components, 'tag/v1/next', true)}
\`\`\`
`;
};
Expand Down