docs: v0.1 docs deprecation show (#26510)

This commit is contained in:
Erick Friis 2024-09-15 19:21:35 -07:00 committed by GitHub
parent 86b6d9df9a
commit 5b5a782196
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2994 additions and 12 deletions

View File

@ -121,8 +121,9 @@ const config = {
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
announcementBar: {
content: 'LangChain v0.2 is out! You are currently viewing the old v0.1 docs. <strong>View the latest docs <a href="/v0.2/docs/introduction/">here</a>.</strong>',
isCloseable: true,
content:
'A newer LangChain version is out! Check out the <a href="https://python.langchain.com/docs/introduction">latest version</a>.',
isCloseable: false,
},
docs: {
sidebar: {

View File

@ -244,16 +244,26 @@ nav, h1, h2, h3, h4 {
no-repeat;
}
div[class^=announcementBar_] {
height: 72px !important;
font-size: 20px !important;
}
div[class^='announcementBar_'] {
font-size: 20px;
[data-theme='dark'] div[class^=announcementBar_] {
background-color: #1b1b1b;
color: #fff;
}
/*
--site-announcement-bar-stripe-color1: hsl(
var(--site-primary-hue-saturation) 85%
);
--site-announcement-bar-stripe-color2: hsl(
var(--site-primary-hue-saturation) 95%
);
*/
--site-announcement-bar-stripe-color1: rgb(197,186,254);
--site-announcement-bar-stripe-color2: rgb(255,246,224);
[data-theme='dark'] div[class^=announcementBar_] button {
color: #fff;
background: repeating-linear-gradient(
-35deg,
var(--site-announcement-bar-stripe-color1),
var(--site-announcement-bar-stripe-color1) 20px,
var(--site-announcement-bar-stripe-color2) 10px,
var(--site-announcement-bar-stripe-color2) 40px
);
font-weight: bold;
}

File diff suppressed because it is too large Load Diff