Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit ff67b67

Browse files
authored
components: add deprecation banner to all pages (#8921)
As titled - there are already discrepancies between handbook and Notion, we should more aggressively direct users to the new equivalents. This adds a banner on top of every handbook page automatically. I based the end-of-May EOL date on [this Slack message](https://sourcegraph.slack.com/archives/C02FSM7DU/p1714148599967949) <img width="1027" alt="image" src="https://github.com/sourcegraph/handbook/assets/23356519/f704e099-2906-4363-9402-e8ac0c261304">
1 parent 33b5c8f commit ff67b67

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

src/components/Banner.tsx

+18-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,24 @@ import React from 'react'
77
export function Banner({ path }: { path: string }): JSX.Element {
88
// Banners should each be an <aside> with the appropriate className to indicate the
99
// admonition type.
10-
const banners: React.ReactElement[] = []
10+
11+
const banners: React.ReactElement[] = [
12+
// Deprecation notice
13+
<aside className="warning" key="deprecation-banner">
14+
<div>
15+
⚠️ We are in the process of migrating to Notion as Sourcegraph's handbook platform.{' '}
16+
<b>
17+
This content may represent incomplete, or out-of-date processes - please look for the equivalent
18+
page in the new site at <a href="https://sourcegraph.notion.site">sourcegraph.notion.site</a>.
19+
</b>
20+
<br />
21+
<br />
22+
The contents of this page will only be retained until <b>end of May 2024</b>. If you own this page,
23+
please maintain an equivalent in the new{' '}
24+
<a href="https://www.notion.so/sourcegraph">Notion-based handbook</a>.
25+
</div>
26+
</aside>,
27+
]
1128

1229
// Inject warning banners to pages with cloud in the path - this helps us communicate
1330
// to customers that for finalized documentation, they should refer elsewhere.

0 commit comments

Comments
 (0)