Skip to content

Commit

Permalink
docs(links): remove unused CDN links in demo files
Browse files Browse the repository at this point in the history
removed `auro-icon`, `auro-button`, etc from `index.html` and `api.html`
  • Loading branch information
sun-mota committed Oct 21, 2024
1 parent 4c7e30e commit 59b4666
Show file tree
Hide file tree
Showing 7 changed files with 584 additions and 34 deletions.
7 changes: 0 additions & 7 deletions demo/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,12 @@
Prism.highlightAll();
});
</script>
<script type="module" data-demo-script="true" src="../index.js"></script>
<script type="module">
import { initExamples } from "./api.min.js"
initExamples();
</script>

<!-- If additional elements are needed for the demo, add them here. -->
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/dist/auro-accordion__bundled.js" type="module"></script>
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/dist/auro-icon__bundled.js" type="module"></script>
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/dist/auro-button__bundled.js" type="module"></script>
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-dropdown@latest/dist/auro-dropdown__bundled.js" type="module"></script>
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-hyperlink@latest/dist/auro-hyperlink__bundled.js" type="module"></script>
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-menu@latest/dist/auro-menu__bundled.js" type="module"></script>
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-dialog@latest/dist/auro-dialog__bundled.js" type="module"></script>
</body>
</html>
4 changes: 4 additions & 0 deletions demo/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { valueExample } from "../apiExamples/value";
import { valueExtractionExample } from "../apiExamples/valueExtraction";

/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
import { AuroSelect } from '../src/auro-select.js';
import '@aurodesignsystem/auro-menu';

AuroSelect.register(); // registering to `auro-select`

export function initExamples(initCount) {
initCount = initCount || 0;
Expand Down
Loading

0 comments on commit 59b4666

Please sign in to comment.