Skip to content

Commit db1c86d

Browse files
committed
docs: default to v1 docs
1 parent a922e02 commit db1c86d

File tree

2 files changed

+29
-5
lines changed

2 files changed

+29
-5
lines changed

apps/website/src/pages/index.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,15 +167,13 @@ export default function Home(): React.JSX.Element {
167167

168168
<div className="flex items-center justify-center gap-3 mt-10 md:justify-start [&>a]:text-white [&>a]:hover:text-white">
169169
<Link
170-
to="/docs/v0/guide/installation"
171-
// to="/docs/guide/getting-started/introduction"
170+
to="/docs/guide/getting-started/introduction"
172171
className="font-semibold bg-gradient-to-r from-[#b079fc] to-[#9a60f7] hover:from-[#9a60f7] hover:to-[#7e33f6] py-2 px-4 rounded-full shadow-lg hover:shadow-xl transform hover:scale-105 transition-all duration-300"
173172
>
174173
Guide
175174
</Link>
176175
<Link
177-
to="/docs/v0/api-reference/classes/ButtonKit"
178-
// to="/docs/api-reference/commandkit"
176+
to="/docs/api-reference/commandkit/"
179177
className="font-semibold bg-gradient-to-r from-blue-500 to-blue-600 hover:from-blue-600 hover:to-blue-700 py-2 px-4 rounded-full shadow-lg hover:shadow-xl transform hover:scale-105 transition-all duration-300"
180178
>
181179
API <span className="hidden md:inline">Reference</span>

apps/website/src/theme/DocVersionBanner/index.tsx

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,33 @@ export default function DocVersionBannerWrapper(
112112
);
113113
}
114114

115-
case '0.1.10':
115+
case '0.1.10': {
116+
return (
117+
<div
118+
className={clsx(
119+
ThemeClassNames.docs.docVersionBanner,
120+
'alert alert--warning margin-bottom--md space-y-2',
121+
)}
122+
role="warning"
123+
>
124+
<p>
125+
You are looking at documentation for CommandKit version{' '}
126+
<strong>0.1.10</strong> which is no longer actively maintained. We
127+
highly recommend you to upgrade to CommandKit v1.
128+
</p>
129+
<ul className="list-inside list-disc">
130+
<li>
131+
To go to the v1 documentation,{' '}
132+
<Link href="/docs/guide/getting-started/introduction">
133+
click here
134+
</Link>
135+
.
136+
</li>
137+
</ul>
138+
</div>
139+
);
140+
}
141+
116142
default: {
117143
return <DocVersionBanner {...props} />;
118144
}

0 commit comments

Comments
 (0)