Skip to content

Commit

Permalink
chore(web-components): update cwc links to point to carbon core (#4274)
Browse files Browse the repository at this point in the history
* chore(web-components): update cwc links to point to carbon core

* chore: format

* chore: yarn format

---------

Co-authored-by: Alison Joseph <[email protected]>
Co-authored-by: Kritvi <[email protected]>
  • Loading branch information
3 people committed Sep 24, 2024
1 parent 2e453db commit c760d9b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/pages/all-about-carbon/what-is-carbon.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ primary maintainers:
- [Elements](https://github.com/carbon-design-system/carbon): Carbon team
- [React](https://github.com/carbon-design-system/carbon/tree/main/packages/react):
Carbon team
- [Web Components](https://github.com/carbon-design-system/carbon-for-ibm-dotcom/tree/main/packages/carbon-web-components):
- [Web Components](https://github.com/carbon-design-system/carbon/tree/main/packages/web-components):
Carbon team
- [Angular](https://angular.carbondesignsystem.com/): Community maintained
- [Vue](https://github.com/carbon-design-system/carbon-components-vue):
Expand Down
2 changes: 1 addition & 1 deletion src/pages/developing/dev-resources/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ your framework of choice.
<Column colMd={4} colLg={4} noGutterSm>
<ResourceCard
subTitle="Carbon Web Components"
href="https://github.com/carbon-design-system/carbon-for-ibm-dotcom/tree/main/packages/carbon-web-components">
href="https://github.com/carbon-design-system/carbon/tree/main/packages/web-components">
<MdxIcon name="github" />
</ResourceCard>
</Column>
Expand Down
27 changes: 12 additions & 15 deletions src/pages/developing/frameworks/web-components.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ This library uses Custom Elements v1 and Shadow DOM v1 specs.

<InlineNotification>

For support, contact the
[Carbon Web Components team](https://github.com/carbon-design-system/carbon-for-ibm-dotcom/issues/new/choose).

Info on Carbon Web Components v1 can be found
[here](https://v10.carbondesignsystem.com/developing/frameworks/web-components).

Expand All @@ -53,10 +50,10 @@ Info on Carbon Web Components v1 can be found
</Column>
<Column colMd={4} colLg={4} noGutterSm>
<ResourceCard
subTitle="Try web components with CodeSandbox"
href="https://codesandbox.io/s/github/carbon-design-system/carbon-for-ibm-dotcom/tree/main/packages/carbon-web-components/examples/codesandbox/basic"
subTitle="Try web components with Stackblitz"
href="https://stackblitz.com/github/carbon-design-system/carbon/tree/main/packages/web-components/examples/components/accordion"
>
<MdxIcon name="codesandbox" />
<MdxIcon name="stackblitz" />
</ResourceCard>
</Column>
</Row>
Expand Down Expand Up @@ -178,10 +175,10 @@ directly used once the script tag has been added to the page. For example:
</html>
```

Our example at [CodeSandbox](https://codesandbox.io) shows usage with only CDN
Our example at [Stackblitz](https://stackblitz.com) shows usage with only CDN
artifacts:

[![Edit @carbon/web-components](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/carbon-design-system/carbon-for-ibm-dotcom/tree/main/packages/carbon-web-components/examples/codesandbox/cdn)
[![Edit @carbon/web-components](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/carbon-design-system/carbon/tree/main/packages/web-components/examples/components/accordion?file=cdn.html)

### Using ES imports

Expand All @@ -203,13 +200,13 @@ yarn add @carbon/web-components

#### Basic usage

Our example at [CodeSandbox](https://codesandbox.io) shows the most basic usage:
Our example at [Stackblitz](https://stackblitz.com) shows the most basic usage:

[![Edit @carbon/web-components](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/carbon-design-system/carbon-for-ibm-dotcom/tree/main/packages/carbon-web-components/examples/codesandbox/basic)
[![Edit @carbon/web-components](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/carbon-design-system/carbon/tree/main/packages/web-components/examples/components/accordion)

The first thing you need to do is **set up a module bundler** to resolve
ECMAScript `import`s. The above example uses [Webpack](https://webpack.js.org)
but you can use other bundlers like [Rollup](https://rollupjs.org/) too.
ECMAScript `import`s. The above example uses [ViteJS](https://vitejs.dev) but
you can use other bundlers like [Webpack](https://webpack.js.org) too.

Once you set up a module bundler, you can start importing our component modules,
for example:
Expand Down Expand Up @@ -261,7 +258,7 @@ Angular, Carbon Vue).

If you experience any issues while getting set up with Carbon Web Components,
please head over to the
[GitHub repo](https://github.com/carbon-design-system/carbon-for-ibm-dotcom/tree/main/packages/carbon-web-components)
[GitHub repo](https://github.com/carbon-design-system/carbon/tree/main/packages/web-components)
for more guidelines and support. Please
[create an issue](https://github.com/carbon-design-system/carbon-for-ibm-dotcom/issues)
if your issue does not already exist.
[create an issue](https://github.com/carbon-design-system/carbon/issues) if your
issue does not already exist.
2 changes: 1 addition & 1 deletion src/pages/help/contact-us/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ GitHub issue.
#### Code issues

- [@carbon/react](https://github.com/carbon-design-system/carbon/issues/new/choose)
- [@carbon/web-components](https://github.com/carbon-design-system/carbon-for-ibm-dotcom/issues/new/choose)
- [@carbon/web-components](https://github.com/carbon-design-system/carbon/issues/new/choose)
- [carbon-components-angular](https://github.com/IBM/carbon-components-angular/issues/new)
- [carbon-components-vanilla](https://github.com/carbon-design-system/carbon/issues/new/choose)
- [carbon-components-vue](https://github.com/carbon-design-system/carbon-components-vue/issues/new)
Expand Down
2 changes: 1 addition & 1 deletion src/pages/help/faq/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ For larger changes, please see our
#### Code repos

- [@carbon/react](https://github.com/carbon-design-system/carbon/issues/new/choose)
- [@carbon/web-components](https://github.com/carbon-design-system/carbon-for-ibm-dotcom/issues/new/choose)
- [@carbon/web-components](https://github.com/carbon-design-system/carbon/issues/new/choose)
- [carbon-components-angular](https://github.com/IBM/carbon-components-angular/issues/new)
- [carbon-components-vanilla](https://github.com/carbon-design-system/carbon/issues/new/choose)
- [carbon-components-vue](https://github.com/carbon-design-system/carbon-components-vue/issues/new)
Expand Down

0 comments on commit c760d9b

Please sign in to comment.