Skip to content

Commit

Permalink
Merge branch 'patternfly:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
wise-king-sullyman authored Mar 22, 2024
2 parents 67a663b + 861632d commit d379c66
Show file tree
Hide file tree
Showing 11 changed files with 84 additions and 11 deletions.
22 changes: 22 additions & 0 deletions packages/ast-helpers/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,28 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# 1.8.0 (2024-03-20)


### Features

* **templates:** add templates package to versions.json ([#3902](https://github.com/patternfly/patternfly-org/issues/3902)) ([c7c727c](https://github.com/patternfly/patternfly-org/commit/c7c727c717d5cc3c031f4f3c52070ffc6164e5d6))





# 1.7.0 (2024-03-19)


### Features

* add pf 6 alpha banner to home page and version switcher ([#3896](https://github.com/patternfly/patternfly-org/issues/3896)) ([f7aaa22](https://github.com/patternfly/patternfly-org/commit/f7aaa22d12310aa62533de4169e1fa70a49a20d9))





# 1.6.0 (2024-03-13)


Expand Down
2 changes: 1 addition & 1 deletion packages/ast-helpers/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@patternfly/ast-helpers",
"description": "Acorn AST helpers for working with live code",
"version": "1.6.0",
"version": "1.8.0",
"author": "Red Hat",
"license": "MIT",
"publishConfig": {
Expand Down
22 changes: 22 additions & 0 deletions packages/documentation-framework/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,28 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# 5.8.0 (2024-03-20)


### Features

* **templates:** add templates package to versions.json ([#3902](https://github.com/patternfly/patternfly-org/issues/3902)) ([c7c727c](https://github.com/patternfly/patternfly-org/commit/c7c727c717d5cc3c031f4f3c52070ffc6164e5d6))





# 5.7.0 (2024-03-19)


### Features

* add pf 6 alpha banner to home page and version switcher ([#3896](https://github.com/patternfly/patternfly-org/issues/3896)) ([f7aaa22](https://github.com/patternfly/patternfly-org/commit/f7aaa22d12310aa62533de4169e1fa70a49a20d9))





# 5.6.0 (2024-03-13)


Expand Down
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
4 changes: 2 additions & 2 deletions packages/documentation-framework/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@patternfly/documentation-framework",
"description": "A framework to build documentation for PatternFly.",
"version": "5.6.0",
"version": "5.8.0",
"author": "Red Hat",
"license": "MIT",
"private": false,
Expand All @@ -17,7 +17,7 @@
"@babel/plugin-transform-react-jsx": "7.17.12",
"@babel/preset-env": "7.18.2",
"@mdx-js/util": "1.6.16",
"@patternfly/ast-helpers": "^1.6.0",
"@patternfly/ast-helpers": "^1.8.0",
"@reach/router": "npm:@gatsbyjs/[email protected]",
"autoprefixer": "9.8.6",
"babel-loader": "9.1.2",
Expand Down
2 changes: 2 additions & 0 deletions packages/documentation-framework/scripts/md/parseMD.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ function toReactComponent(mdFilePath, source, buildMode) {
section: frontmatter.section || '',
subsection: frontmatter.subsection || '',
deprecated: frontmatter.deprecated || false,
template: frontmatter.template || false,
beta: frontmatter.beta || false,
demo: frontmatter.demo || false,
newImplementationLink: frontmatter.newImplementationLink || false,
Expand Down Expand Up @@ -295,6 +296,7 @@ function sourceMDFile(file, source, buildMode) {
...(pageData.hideNavItem && { hideNavItem: pageData.hideNavItem }),
...(pageData.beta && { beta: pageData.beta }),
...(pageData.deprecated && { deprecated: pageData.deprecated }),
...(pageData.template && { template: pageData.template }),
...(pageData.demo && { demo: pageData.demo }),
...(pageData.sortValue && { sortValue: pageData.sortValue }),
...(pageData.subsectionSortValue && { subsectionSortValue: pageData.subsectionSortValue })
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
6 changes: 6 additions & 0 deletions packages/documentation-framework/templates/mdx.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const MDXChildTemplate = ({
optIn,
beta,
deprecated,
template,
newImplementationLink,
functionDocumentation = []
} = Component.getPageData();
Expand Down Expand Up @@ -84,6 +85,11 @@ const MDXChildTemplate = ({
{' '}To learn more about the process, visit our <Link to="/get-started/about#major-release-cadence">about page</Link>.
</InlineAlert>
)}
{(template || source === 'react-template') && (
<InlineAlert title="Templates" variant="info">
{`This page showcases templates for the ${id.toLowerCase()} component. A template combines a component with logic that supports a specific use case, with a streamlined API that offers additional, limited customization.`}
</InlineAlert>
)}
</React.Fragment>
);
// Create dynamic component for @reach/router
Expand Down
9 changes: 6 additions & 3 deletions packages/documentation-framework/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"@patternfly/react-topology": "5.2.1",
"@patternfly/react-user-feedback": "5.0.0",
"@patternfly/react-virtualized-extension": "5.0.0",
"@patternfly/quickstarts": "5.0.0"
"@patternfly/quickstarts": "5.0.0",
"@patternfly/react-templates": "^1.0.0-alpha.0"
}
},
{
Expand All @@ -45,7 +46,8 @@
"@patternfly/react-topology": "5.2.1",
"@patternfly/react-user-feedback": "5.0.0",
"@patternfly/react-virtualized-extension": "5.0.0",
"@patternfly/quickstarts": "5.0.0"
"@patternfly/quickstarts": "5.0.0",
"@patternfly/react-templates": "^1.0.0-alpha.0"
}
},
{
Expand All @@ -69,7 +71,8 @@
"@patternfly/react-topology": "5.2.1",
"@patternfly/react-user-feedback": "5.0.0",
"@patternfly/react-virtualized-extension": "5.0.0",
"@patternfly/quickstarts": "5.0.0"
"@patternfly/quickstarts": "5.0.0",
"@patternfly/react-templates": "^1.0.0-alpha.0"
}
},{
"name": "5.1.0",
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 d379c66

Please sign in to comment.