Skip to content

Commit

Permalink
feat(Templates): add to org site (#3947)
Browse files Browse the repository at this point in the history
* feat(Templates): add to org site

* update versions, fix Th

* hide prev version, update screenshots
  • Loading branch information
kmcfaul authored Apr 2, 2024
1 parent 4d24043 commit a869dee
Show file tree
Hide file tree
Showing 240 changed files with 299 additions and 224 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
]
},
"devDependencies": {
"@patternfly/patternfly": "5.2.1",
"@patternfly/react-code-editor": "5.2.2",
"@patternfly/react-core": "5.2.2",
"@patternfly/react-table": "5.2.2",
"@patternfly/patternfly": "5.3.0-prerelease.5",
"@patternfly/react-code-editor": "5.3.0-prerelease.25",
"@patternfly/react-core": "5.3.0-prerelease.23",
"@patternfly/react-table": "5.3.0-prerelease.25",
"@octokit/rest": "^19.0.7",
"glob": "^8.1.0",
"lerna": "^6.4.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export class CSSVariables extends React.Component {
<Tr>
{!this.props.hideSelectorColumn && (
<React.Fragment>
<Th />
<Th screenReaderText="Expand or collapse column" />
<Th>Selector</Th>
</React.Fragment>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const ExpandableNav = ({groupedRoutes, location, section, subsection = null}) =>
source.source === "react-deprecated" || source.source === "html-deprecated")
&& !navObj.sources.some(source => source.source === "react" || source.source === "html")
),
isBeta: navObj.sources.some(source => source.beta && source.source !== 'react-next'),
isBeta: navObj.sources.some(source => source.beta && source.source !== 'react-next' && source.source !== 'react-templates'),
isDemo: navObj.sources.some(source => (
source.source === "react-demos" || source.source === "html-demos")
&& !navObj.sources.some(source => source.source === "react" || source.source === "html")
Expand Down
8 changes: 4 additions & 4 deletions packages/documentation-framework/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@
"webpack-merge": "5.8.0"
},
"peerDependencies": {
"@patternfly/patternfly": "5.2.1",
"@patternfly/react-code-editor": "5.2.2",
"@patternfly/react-core": "5.2.2",
"@patternfly/react-table": "5.2.2",
"@patternfly/patternfly": "5.3.0-prerelease.5",
"@patternfly/react-code-editor": "5.3.0-prerelease.25",
"@patternfly/react-core": "5.3.0-prerelease.23",
"@patternfly/react-table": "5.3.0-prerelease.25",
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/documentation-framework/templates/mdx.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export const MDXTemplate = ({
componentsData
}) => {
const isDeprecated = sources.some(source => source.source === "react-deprecated" || source.source === "html-deprecated") && !sources.some(source => source.source === "react" || source.source === "html");
const isBeta = sources.some(source => source.beta && source.source !== 'react-next')
const isBeta = sources.some(source => source.beta && source.source !== 'react-next' && source.source !== 'react-templates');
const isDemo = sources.some(source => source.source === "react-demos" || source.source === "html-demos") && !sources.some(source => source.source === "react" || source.source === "html");
// Build obj mapping source names to text displayed on tabs
const tabNames = sources.reduce((acc, curSrc) => {
Expand Down
27 changes: 26 additions & 1 deletion packages/documentation-framework/versions.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,34 @@
{
"Releases": [
{
"name": "5.3.0",
"date": "2024-04-02",
"latest": true,
"versions": {
"@patternfly/patternfly": "5.3.0-prerelease.5",
"@patternfly/react-charts": "7.3.0-prerelease.6",
"@patternfly/react-code-editor": "5.3.0-prerelease.25",
"@patternfly/react-core": "5.3.0-prerelease.23",
"@patternfly/react-icons": "5.3.0-prerelease.3",
"@patternfly/react-styles": "5.3.0-prerelease.3",
"@patternfly/react-table": "5.3.0-prerelease.25",
"@patternfly/react-drag-drop": "5.3.0-prerelease.23",
"@patternfly/react-tokens": "5.3.0-prerelease.3",
"@patternfly/react-catalog-view-extension": "5.0.0",
"@patternfly/react-component-groups": "5.1.0",
"@patternfly/react-console": "5.0.0",
"@patternfly/react-log-viewer": "5.2.0",
"@patternfly/react-topology": "5.3.0-prerelease.5",
"@patternfly/react-user-feedback": "5.0.0",
"@patternfly/react-virtualized-extension": "5.0.0",
"@patternfly/quickstarts": "5.3.0-prerelease.1",
"@patternfly/react-templates": "1.0.0-prerelease.6"
}
},
{
"name": "5.2.2",
"date": "2024-03-12",
"latest": true,
"hidden": true,
"versions": {
"@patternfly/patternfly": "5.2.1",
"@patternfly/react-charts": "7.2.2",
Expand Down
8 changes: 4 additions & 4 deletions packages/documentation-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"screenshots": "pf-docs-framework screenshots"
},
"dependencies": {
"@patternfly/documentation-framework": "^5.4.2",
"@patternfly/quickstarts": "^5.1.0",
"@patternfly/documentation-framework": "^5.9.0",
"@patternfly/quickstarts": "^5.3.0-prerelease.1",
"@patternfly/react-catalog-view-extension": "5.0.0",
"@patternfly/react-console": "5.0.0",
"@patternfly/react-docs": "6.2.2",
"@patternfly/react-docs": "6.3.0-prerelease.31",
"@patternfly/react-log-viewer": "5.1.0",
"@patternfly/react-topology": "5.2.1",
"@patternfly/react-topology": "5.3.0-prerelease.5",
"@patternfly/react-user-feedback": "5.0.0",
"@patternfly/react-component-groups": "5.1.0",
"@patternfly/react-virtualized-extension": "5.0.0",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a869dee

Please sign in to comment.