From 0f0991e678fd4944707e782b794bccbf038c869c Mon Sep 17 00:00:00 2001 From: Jason Karlavige Date: Mon, 20 Nov 2023 15:18:29 -0500 Subject: [PATCH] convert footer icons to svgs --- website/docusaurus.config.js | 37 +++++++++++--------- website/src/css/custom.css | 2 ++ website/static/img/fontawesome/x-twitter.svg | 2 +- 3 files changed, 24 insertions(+), 17 deletions(-) diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 466103796ad..f01a238373f 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -49,7 +49,7 @@ var siteSettings = { onBrokenMarkdownLinks: "throw", trailingSlash: false, themeConfig: { - docs:{ + docs: { sidebar: { hideable: true, autoCollapseCategories: true, @@ -71,14 +71,14 @@ var siteSettings = { }, announcementBar: { id: "biweekly-demos", - content: - "Join our weekly demos and dbt Cloud in action!", + content: "Join our weekly demos and dbt Cloud in action!", backgroundColor: "#047377", textColor: "#fff", isCloseable: true, }, announcementBarActive: true, - announcementBarLink: "https://www.getdbt.com/resources/dbt-cloud-demos-with-experts?utm_source=docs&utm_medium=event&utm_campaign=q1-2024_cloud-demos-with-experts_awareness", + announcementBarLink: + "https://www.getdbt.com/resources/dbt-cloud-demos-with-experts?utm_source=docs&utm_medium=event&utm_campaign=q1-2024_cloud-demos-with-experts_awareness", // Set community spotlight member on homepage // This is the ID for a specific file under docs/community/spotlight communitySpotlightMember: "alison-stanton", @@ -127,12 +127,12 @@ var siteSettings = { position: "right", items: [ { - label: 'Courses', - href: 'https://courses.getdbt.com', + label: "Courses", + href: "https://courses.getdbt.com", }, { - label: 'Best Practices', - to: '/best-practices', + label: "Best Practices", + to: "/best-practices", }, { label: "Guides", @@ -145,7 +145,7 @@ var siteSettings = { { label: "Glossary", to: "/glossary", - } + }, ], }, { @@ -194,9 +194,10 @@ var siteSettings = { `, }, @@ -230,7 +231,8 @@ var siteSettings = { }, blog: { blogTitle: "Developer Blog | dbt Developer Hub", - blogDescription: "Find tutorials, product updates, and developer insights in the dbt Developer Blog.", + blogDescription: + "Find tutorials, product updates, and developer insights in the dbt Developer Blog.", postsPerPage: 20, blogSidebarTitle: "Recent posts", blogSidebarCount: 5, @@ -244,7 +246,10 @@ var siteSettings = { [path.resolve("plugins/insertMetaTags"), { metatags }], path.resolve("plugins/svg"), path.resolve("plugins/customWebpackConfig"), - [path.resolve("plugins/buildGlobalData"), { versionedPages, versionedCategories }], + [ + path.resolve("plugins/buildGlobalData"), + { versionedPages, versionedCategories }, + ], path.resolve("plugins/buildAuthorPages"), path.resolve("plugins/buildSpotlightIndexPage"), path.resolve("plugins/buildQuickstartIndexPage"), @@ -279,8 +284,8 @@ var siteSettings = { "sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM", crossorigin: "anonymous", }, - {rel: 'icon', href: '/img/favicon.png', type: 'image/png'}, - {rel: 'icon', href: '/img/favicon.svg', type: 'image/svg+xml'}, + { rel: "icon", href: "/img/favicon.png", type: "image/png" }, + { rel: "icon", href: "/img/favicon.svg", type: "image/svg+xml" }, ], }; diff --git a/website/src/css/custom.css b/website/src/css/custom.css index 1feb5510cc5..c1f9f98f8d2 100644 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -1089,6 +1089,8 @@ html[data-theme="dark"] .main-wrapper nav a:active { /* fontawesome icons in footer */ .footer .fa-brands { color: var(--color-footer-accent); + fill: var(--color-footer-accent); + width: 25px; font-size: 1.6rem; transition: all 0.3s ease-in-out; } diff --git a/website/static/img/fontawesome/x-twitter.svg b/website/static/img/fontawesome/x-twitter.svg index f5feed78f30..4c3e84b57fd 100644 --- a/website/static/img/fontawesome/x-twitter.svg +++ b/website/static/img/fontawesome/x-twitter.svg @@ -1 +1 @@ - \ No newline at end of file +