Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an alert to point users to the correct relese notes. #245

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/templates/docs-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as React from "react";

import { Footer, Layout, Seo, SideNavigation } from "../components/shared";
import { DOCS_NAVIGATION } from "../const";
import { PageSection, Title } from "@patternfly/react-core";
import { PageSection, Title, Alert } from "@patternfly/react-core";
import { AsciiDocSection } from "../types";

const DocsPageTemplate = ({
Expand Down Expand Up @@ -41,6 +41,12 @@ const DocsPageTemplate = ({
isWidthLimited
padding={{ default: "padding" }}
>
<Alert variant="info" title="Important Notice" isInline className="pf-u-mb-xl">
<p>
Please note that more information about the previous v2 releases can be found <a href="https://github.com/opendatahub-io/opendatahub-operator/releases" target="_blank" rel="noopener noreferrer">here</a>.
You can use "Find a release" search bar to search for a particular release.
</p>
</Alert>
<Title headingLevel="h1" size="4xl">{asciidoc?.document?.title ?? markdownRemark?.frontmatter?.title}</Title>
<div
className="asciidoc-docs"
Expand Down
Loading