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

Commit

Permalink
components: add deprecation banner to all pages
Browse files Browse the repository at this point in the history
  • Loading branch information
bobheadxi committed Apr 29, 2024
1 parent 33b5c8f commit fc5ada3
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/components/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,24 @@ import React from 'react'
export function Banner({ path }: { path: string }): JSX.Element {
// Banners should each be an <aside> with the appropriate className to indicate the
// admonition type.
const banners: React.ReactElement[] = []

const banners: React.ReactElement[] = [
// Deprecation notice
<aside className="warning" key="deprecation-banner">
<div>
⚠️ We are in the process of migrating to Notion as Sourcegraph's handbook platform.{' '}
<b>
This content may represent incomplete, or out-of-date processes - please look for the equivalent
page in the new site at <a href="https://sourcegraph.notion.site">sourcegraph.notion.site</a>.
</b>
<br />
<br />
The contents of this page will only be retained until <b>end of May 2024</b>. If you own this page,
please maintain an equivalent in the new{' '}
<a href="https://www.notion.so/sourcegraph">Notion-based handbook</a>.
</div>
</aside>,
]

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

0 comments on commit fc5ada3

Please sign in to comment.