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

Commit

Permalink
docs(cdn): remove reference to next tag (#920)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
jeffchew and kodiakhq[bot] authored Jan 10, 2022
1 parent fb119bb commit ebfb7b6
Showing 1 changed file with 8 additions and 14 deletions.
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

0 comments on commit ebfb7b6

Please sign in to comment.