From b9aed459b004324888462835d35c6c5f59f19f1c Mon Sep 17 00:00:00 2001 From: Cole Goldsmith Date: Thu, 20 Mar 2025 13:29:16 -0500 Subject: [PATCH] Docs: Create styled link to DataStax Langflow in the sidebar (#7143) add new html sidebar item with custom styles and new font Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com> --- docs/css/custom.css | 43 +++++++++++++++++++++++++++++++++++++++ docs/docusaurus.config.js | 9 ++++++++ docs/sidebars.js | 13 ++++++++++++ 3 files changed, 65 insertions(+) diff --git a/docs/css/custom.css b/docs/css/custom.css index 6a54d4ed1..bd98435d2 100644 --- a/docs/css/custom.css +++ b/docs/css/custom.css @@ -277,3 +277,46 @@ body { margin-top: 0.25rem !important; } +.sidebar-ad { + margin-top: 2rem; + margin-left: -0.5rem; + margin-right: -0.5rem; + margin-bottom: -0.5rem; + border-radius: 0; + border-top: 1px solid var(--ifm-color-emphasis-300); + border-bottom: 1px solid var(--ifm-color-emphasis-300); + background-color: var(--ifm-background-color); + position: sticky; + bottom: -0.5rem; +} + +.sidebar-ad a { + display: flex; + justify-content: center; + align-items: center; + gap: 1rem; + padding-top: 0.75rem; + padding-bottom: 0.75rem; +} + +.sidebar-ad-text-container { + display: flex; + flex-direction: column; + gap: 0.5rem; +} + +.sidebar-ad-text { + font-size: 0.875rem; + font-family: "Sora", serif; +} + +.sidebar-ad-text-gradient { + color: transparent; + background-clip: text; + background-image: linear-gradient( + to right, + #a855f7, + var(--ifm-color-primary) + ); +} + diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index ffd075ff4..97ad55f1a 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -24,6 +24,15 @@ const config = { defaultLocale: "en", locales: ["en"], }, + headTags: [ + { + tagName: "link", + attributes: { + rel: "stylesheet", + href: "https://fonts.googleapis.com/css2?family=Sora:wght@550;600&display=swap", + }, + } + ], presets: [ [ diff --git a/docs/sidebars.js b/docs/sidebars.js index f81602984..e276eca87 100644 --- a/docs/sidebars.js +++ b/docs/sidebars.js @@ -213,5 +213,18 @@ module.exports = { }, ], }, + { + type: "html", + className: "sidebar-ad", + value: ` + + + + + `, + }, ], };