Skip to content

Commit

Permalink
fix overview to use correct CDN link
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinbarron committed Jan 24, 2024
1 parent a80121f commit 481f8e6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/mgt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@
"publishConfig": {
"directory": "dist"
}
}
}
11 changes: 8 additions & 3 deletions stories/overview.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,18 @@ The Microsoft Graph Toolkit makes it easy to use Microsoft Graph in your applica

### Installing the Microsoft Graph Toolkit

It's easy to get started! Add the Toolkit via our `mgt-loader` or via npm and you are ready to go!
It's easy to get started! Add the Toolkit from a CDN or via npm and you are ready to go!

#### Via the mgt-loader
#### From a CDN

<Source
language="html"
code={`<script src="https://unpkg.com/@microsoft/mgt@${getCleanVersionInfo(true)}/dist/bundle/mgt-loader.js"></script>`}
code={`
<script type="module">
import { registerMgtComponents, Providers, Msal2Provider } from 'https://unpkg.com/@microsoft/mgt@${getCleanVersionInfo(true)}';
Providers.globalProvider = new Msal2Provider({clientId: '[CLIENT-ID]'});
registerMgtComponents();
</script>`}
/>

#### Via npm
Expand Down

0 comments on commit 481f8e6

Please sign in to comment.