docs: announcement bar (#21511)

This commit is contained in:
Erick Friis 2024-05-10 10:10:52 -07:00 committed by GitHub
parent a71c4e22d1
commit cfd827b574
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 8 deletions

View File

@ -120,11 +120,10 @@ const config = {
themeConfig: themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */ /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({ ({
// TODO(erick): enable this when 0.2 docs are ready for banner announcementBar: {
// announcementBar: { content: 'LangChain v0.2 is coming soon! Preview the new docs <a href="/v0.2/docs/introduction/">here</a>.',
// content: 'LangChain v0.2 is coming soon! Preview the new docs <a href="/v0.2/docs/introduction/">here</a>.', isCloseable: true,
// isCloseable: true, },
// },
docs: { docs: {
sidebar: { sidebar: {
hideable: true, hideable: true,

View File

@ -244,16 +244,16 @@ nav, h1, h2, h3, h4 {
no-repeat; no-repeat;
} }
.announcementBar_node_modules-\@docusaurus-theme-classic-lib-theme-AnnouncementBar-styles-module { div[class^=announcementBar_] {
height:40px !important; height:40px !important;
font-size: 20px !important; font-size: 20px !important;
} }
[data-theme='dark'] .announcementBar_node_modules-\@docusaurus-theme-classic-lib-theme-AnnouncementBar-styles-module { [data-theme='dark'] div[class^=announcementBar_] {
background-color: #1b1b1b; background-color: #1b1b1b;
color: #fff; color: #fff;
} }
[data-theme='dark'] .announcementBar_node_modules-\@docusaurus-theme-classic-lib-theme-AnnouncementBar-styles-module button { [data-theme='dark'] div[class^=announcementBar_] button {
color: #fff; color: #fff;
} }