diff --git a/packages/webawesome/docs/.eleventy.js b/packages/webawesome/docs/.eleventy.js index 1e18bebe9..3b6a9287a 100644 --- a/packages/webawesome/docs/.eleventy.js +++ b/packages/webawesome/docs/.eleventy.js @@ -227,7 +227,11 @@ export default async function (eleventyConfig) { // Shortcodes - {% shortCode arg1, arg2 %} eleventyConfig.addShortcode('cdnUrl', location => { - return `https://early.webawesome.com/webawesome@${packageData.version}/dist/` + (location || '').replace(/^\//, ''); + // We use WA (free) via the public CDN for CodePen examples + return ( + `https://cdn.jsdelivr.net/npm/@awesome.me/webawesome@${packageData.version}/dist-cdn/` + + (location || '').replace(/^\//, '') + ); }); // Turns `{% server "foo" %} into `{{ server.foo | safe }}` when the WEBAWESOME_SERVER variable is set to "true" diff --git a/packages/webawesome/docs/_includes/head.njk b/packages/webawesome/docs/_includes/head.njk index 8c5394274..63adce616 100644 --- a/packages/webawesome/docs/_includes/head.njk +++ b/packages/webawesome/docs/_includes/head.njk @@ -25,12 +25,12 @@ -+ +- ++ ``` If you're using a bundler, make sure it comes _before_ any components are imported. @@ -43,7 +43,10 @@ import litPlugin from '@lit-labs/eleventy-plugin-lit'; eleventyConfig.addPlugin(litPlugin, { mode: 'worker', - componentModules: ['@awesome.me/webawesome/dist/components/button/button.js', '@awesome.me/webawesome/dist/components/input/input.js'], + componentModules: [ + '@awesome.me/webawesome/dist/components/button/button.js', + '@awesome.me/webawesome/dist/components/input/input.js', + ], }); ``` @@ -114,4 +117,4 @@ Here are some known issues and things we're still working on. - `@shoelace-style/localize` (our localization library) has no way to set a language currently so it always falls back to `en`. - `` has no fallback if there's no JS besides a blank ``. There's perhaps some backend mechanisms we can use to fetch. But requires altering APIs. Should also have a way to set height / widths, but we don't want to increase pain for SSR users. - `` QR Code will not error on the backend and will render a blank canvas at the appropriate size, but will not render the canvas until the client component connects. -- `setBasePath` and `kit codes` may need reconfiguring to work with SSR. \ No newline at end of file +- `setBasePath` and `kit codes` may need reconfiguring to work with SSR.