Skip to content

Commit

Permalink
feat: add pf 6 alpha banner to home page and version switcher (#3896)
Browse files Browse the repository at this point in the history
* feat: add pf 6 alpha banner to home page and version switcher

* update wording
  • Loading branch information
nicolethoen authored Mar 19, 2024
1 parent 26de940 commit f7aaa22
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,26 @@ const HeaderTools = ({
</DropdownList>
</DropdownGroup>
)}
<Divider key="divider" className="ws-switcher-divider"/>
<Divider key="divider1" className="ws-switcher-divider"/>
<DropdownGroup key="Alpha preview version" label="Alpha preview version">
<DropdownList>
<DropdownItem
key="PatternFly 6"
className="ws-patternfly-versions"
isExternalLink
to="https://staging-v6.patternfly.org/"
itemId="patternfly-6"
>
PatternFly 6
</DropdownItem>
</DropdownList>
</DropdownGroup>
<Divider key="divider2" className="ws-switcher-divider"/>
<DropdownGroup key="Previous versions" label="Previous versions">
<DropdownList>
<DropdownItem
key="PatternFly 4"
className="ws-patternfly-3"
className="ws-patternfly-versions"
isExternalLink
to="http://v4-archive.patternfly.org/v4/"
itemId="patternfly-4"
Expand All @@ -177,7 +191,7 @@ const HeaderTools = ({
</DropdownItem>
<DropdownItem
key="PatternFly 3"
className="ws-patternfly-3"
className="ws-patternfly-versions"
isExternalLink
to="https://pf3.patternfly.org/"
itemId="patternfly-3"
Expand Down
2 changes: 1 addition & 1 deletion packages/documentation-framework/templates/mdx.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ws-page-content-router {
display: flex;
flex-direction: column;
height: 100%;
flex-shrink: 0;
}

.ws-release-notes-toc {
Expand Down
2 changes: 1 addition & 1 deletion packages/documentation-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"screenshots": "pf-docs-framework screenshots"
},
"dependencies": {
"@patternfly/documentation-framework": "^5.3.20",
"@patternfly/documentation-framework": "^5.4.2",
"@patternfly/quickstarts": "^5.1.0",
"@patternfly/react-catalog-view-extension": "5.0.0",
"@patternfly/react-console": "5.0.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/documentation-site/patternfly-docs/pages/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
FlexItem,
Grid,
PageSection,
PageSectionVariants,
Title,
Text,
TextVariants,
Expand Down Expand Up @@ -157,6 +158,9 @@ const FeaturedBlogCard = ({postData, idx}) => {

const HomePage = () => (
<React.Fragment>
<PageSection variant={PageSectionVariants.light} stickyOnBreakpoint={{ default: 'top' }} className="pf-v5-u-font-size-lg">
The PatternFly 6 alpha release is available! Our staging website has a fresh look, along with new styles, code samples, and documentation. <a href="https://staging-v6.patternfly.org/" className="pf-v5-u-font-weight-bold"> Go to PatternFly 6 <ArrowRightIcon /></a>
</PageSection>
<PageSection isWidthLimited className="ws-homepage-main-section">
<Flex
direction={{default: "column", lg: "row"}}
Expand Down

0 comments on commit f7aaa22

Please sign in to comment.