Skip to content

Commit

Permalink
docs: announcement bar (#21511)
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis committed May 10, 2024
1 parent a71c4e2 commit cfd827b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,10 @@ const config = {
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// TODO(erick): enable this when 0.2 docs are ready for banner
// announcementBar: {
// content: 'LangChain v0.2 is coming soon! Preview the new docs <a href="/v0.2/docs/introduction/">here</a>.',
// isCloseable: true,
// },
announcementBar: {
content: 'LangChain v0.2 is coming soon! Preview the new docs <a href="/v0.2/docs/introduction/">here</a>.',
isCloseable: true,
},
docs: {
sidebar: {
hideable: true,
Expand Down
6 changes: 3 additions & 3 deletions docs/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -244,16 +244,16 @@ nav, h1, h2, h3, h4 {
no-repeat;
}

.announcementBar_node_modules-\@docusaurus-theme-classic-lib-theme-AnnouncementBar-styles-module {
div[class^=announcementBar_] {
height:40px !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;
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;
}

0 comments on commit cfd827b

Please sign in to comment.