Skip to content

Commit

Permalink
fix(storybook): fix cwc cdn link docs (#10189)
Browse files Browse the repository at this point in the history
### Related Ticket(s)

N/A

### Description

Carbon Web Component's Storybook docs have CDNs as `https://1.www.s81c.com/common/carbon/web-components/tag/v1/latest/button.min.js` - it should be `https://1.www.s81c.com/common/carbon/web-components/tag/latest/button.min.js` - without the  `v1`.

### Changelog

**Removed**

- `v1` from CDN paths in storybook docs for CWC

<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "test: e2e": Codesandbox examples and e2e integration tests -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->
  • Loading branch information
annawen1 authored Mar 5, 2023
1 parent 78c76bb commit 8656e2e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @license
*
* Copyright IBM Corp. 2021, 2022
* Copyright IBM Corp. 2021, 2023
*
* 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 @@ -44,7 +44,7 @@ export const cdnJs = ({ components }) => {
${_renderScript(components, `version/v${packageJson.version}`)}
// LATEST tag
${_renderScript(components, 'tag/v1/latest')}
${_renderScript(components, 'tag/latest')}
\`\`\`
> NOTE: The latest tag is a moving version. While beneficial to
Expand All @@ -59,7 +59,7 @@ export const cdnJs = ({ components }) => {
${_renderScript(components, `version/v${packageJson.version}`, true)}
// LATEST tag
${_renderScript(components, 'tag/v1/latest', true)}
${_renderScript(components, 'tag/latest', true)}
\`\`\`
`;
};
Expand Down

0 comments on commit 8656e2e

Please sign in to comment.