From 5422e6431c2fb6691b2a75006c68c89f52c1e7a2 Mon Sep 17 00:00:00 2001 From: konnorrogers Date: Mon, 11 Dec 2023 16:25:24 -0500 Subject: [PATCH 1/6] fix copying cdn build to _site after its been built --- scripts/build.js | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/scripts/build.js b/scripts/build.js index 97d6a82b6..1cbbbb85a 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -212,17 +212,6 @@ await nextTask(`Copying CDN files to "${cdndir}"`, async () => { await copy(outdir, cdndir); }); -// Copy the CDN build to the docs (prod only; we use a virtual directory in dev) -if (!serve) { - await nextTask(`Copying the build to "${sitedir}"`, async () => { - await deleteAsync(sitedir); - - // We copy the CDN build because that has everything bundled. Yes this looks weird. - // But if we do "/cdn" it requires changes all the docs to do /cdn instead of /dist. - await copy(cdndir, path.join(sitedir, 'dist')); - }); -} - await nextTask('Building source files', async () => { buildResults = await buildTheSource(); }); @@ -303,7 +292,17 @@ if (serve) { // Build for production if (!serve) { - await nextTask('Building the docs', async () => await buildTheDocs()); + // Copy the CDN build to the docs (prod only; we use a virtual directory in dev) + await nextTask(`Copying the build to "${sitedir}"`, async () => { + await deleteAsync(sitedir); + + // We copy the CDN build because that has everything bundled. Yes this looks weird. + // But if we do "/cdn" it requires changes all the docs to do /cdn instead of /dist. + await copy(cdndir, path.join(sitedir, 'dist')); + }); + await nextTask('Building the docs', async () => { + await buildTheDocs() + }); } // Cleanup on exit From eb9dbf097c539f01704e0718c33d8599584b47c8 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Mon, 11 Dec 2023 16:53:11 -0500 Subject: [PATCH 2/6] prettier --- scripts/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.js b/scripts/build.js index 1cbbbb85a..89604166e 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -301,7 +301,7 @@ if (!serve) { await copy(cdndir, path.join(sitedir, 'dist')); }); await nextTask('Building the docs', async () => { - await buildTheDocs() + await buildTheDocs(); }); } From fc9151e5730244aded30bab309e0bdbd57eec415 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Wed, 13 Dec 2023 12:04:53 -0500 Subject: [PATCH 3/6] backport 1787 --- docs/pages/resources/changelog.md | 1 + src/components/spinner/spinner.styles.ts | 10 ++++++++-- src/components/spinner/spinner.test.ts | 7 +++++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/docs/pages/resources/changelog.md b/docs/pages/resources/changelog.md index 58d4f9c83..46308231a 100644 --- a/docs/pages/resources/changelog.md +++ b/docs/pages/resources/changelog.md @@ -31,6 +31,7 @@ New versions of Web Awesome are released as-needed and generally occur when a cr - Added the `hover-bridge` feature to `` to support better tooltip accessibility [#1734] - Fixed a bug in `` and `` that made it work differently from `` and `