From 939d5c3ae674b797890843c8e95cd6bb524feec0 Mon Sep 17 00:00:00 2001 From: Drew Powers <1369770+drwpow@users.noreply.github.com> Date: Thu, 16 Sep 2021 22:24:27 -0600 Subject: [PATCH] Add sponsorship logos (#1371) --- .github/assets/netlify.svg | 1 + .github/assets/sentry.svg | 1 + .../components/LeftSidebar/LeftSidebar.astro | 41 +++++- packages/astro/README.md | 28 +++- www/public/assets/netlify.svg | 1 + www/src/components/Article.astro | 124 +++++++++--------- www/src/components/Sponsors.astro | 40 ++++++ www/src/pages/index.astro | 6 +- 8 files changed, 175 insertions(+), 67 deletions(-) create mode 100644 .github/assets/netlify.svg create mode 100644 .github/assets/sentry.svg create mode 100644 www/public/assets/netlify.svg create mode 100644 www/src/components/Sponsors.astro diff --git a/.github/assets/netlify.svg b/.github/assets/netlify.svg new file mode 100644 index 000000000..7563fdceb --- /dev/null +++ b/.github/assets/netlify.svg @@ -0,0 +1 @@ + diff --git a/.github/assets/sentry.svg b/.github/assets/sentry.svg new file mode 100644 index 000000000..c43dddfdd --- /dev/null +++ b/.github/assets/sentry.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/src/components/LeftSidebar/LeftSidebar.astro b/docs/src/components/LeftSidebar/LeftSidebar.astro index 1960dbb04..fb8484322 100644 --- a/docs/src/components/LeftSidebar/LeftSidebar.astro +++ b/docs/src/components/LeftSidebar/LeftSidebar.astro @@ -6,7 +6,7 @@ const {currentPage} = Astro.props; // Get the slug w/o a leading or trailing slash const currentPageMatch = removeLeadingSlash(removeTrailingSlash(currentPage)); const langCode = getLanguageFromURL(currentPage); -// SIDEBAR is a flat array. Group it by sections to properly render. +// SIDEBAR is a flat array. Group it by sections to properly render. const sidebarSections = SIDEBAR[langCode].reduce((col, item) => { if (item.header) { col.push({...item, children: []}); @@ -19,7 +19,26 @@ const sidebarSections = SIDEBAR[langCode].reduce((col, item) => { ---