From aee79553bc7ecd2a11243863e8c2cd9809ab2850 Mon Sep 17 00:00:00 2001 From: Titani Date: Mon, 22 Apr 2024 16:21:35 -0400 Subject: [PATCH] fix(react-templates): add react-templates --- packages/documentation-framework/package.json | 6 +++--- .../documentation-framework/versions.json | 2 +- packages/documentation-site/package.json | 2 +- .../patternfly-docs/patternfly-docs.source.js | 19 ++++++++----------- 4 files changed, 13 insertions(+), 16 deletions(-) diff --git a/packages/documentation-framework/package.json b/packages/documentation-framework/package.json index efa5bc8b79..fc0c4a355f 100644 --- a/packages/documentation-framework/package.json +++ b/packages/documentation-framework/package.json @@ -74,9 +74,9 @@ }, "peerDependencies": { "@patternfly/patternfly": "6.0.0-alpha.117", - "@patternfly/react-code-editor": "6.0.0-alpha.50", - "@patternfly/react-core": "6.0.0-alpha.50", - "@patternfly/react-table": "6.0.0-alpha.50", + "@patternfly/react-code-editor": "6.0.0-alpha.51", + "@patternfly/react-core": "6.0.0-alpha.51", + "@patternfly/react-table": "6.0.0-alpha.51", "react": "^17.0.0 || ^18.0.0", "react-dom": "^17.0.0 || ^18.0.0" } diff --git a/packages/documentation-framework/versions.json b/packages/documentation-framework/versions.json index 1e2c8bf0d8..670ca9ac55 100644 --- a/packages/documentation-framework/versions.json +++ b/packages/documentation-framework/versions.json @@ -19,7 +19,7 @@ "@patternfly/react-topology": "5.1.0", "@patternfly/quickstarts": "5.1.0", "@patternfly/react-virtualized-extension": "5.1.0", - "@patternfly/react-templates": "^1.0.0-alpha.0" + "@patternfly/react-templates": "^1.0.0-alpha.1" } },{ "name": "5.2.2", diff --git a/packages/documentation-site/package.json b/packages/documentation-site/package.json index 65264526ea..62398aba11 100644 --- a/packages/documentation-site/package.json +++ b/packages/documentation-site/package.json @@ -17,7 +17,7 @@ "screenshots": "pf-docs-framework screenshots" }, "dependencies": { - "@patternfly/documentation-framework": "6.0.0-alpha.20", + "@patternfly/documentation-framework": "6.0.0-alpha.21", "@patternfly/quickstarts": "^5.1.0", "@patternfly/react-catalog-view-extension": "5.0.0", "@patternfly/react-console": "5.0.0", diff --git a/packages/documentation-site/patternfly-docs/patternfly-docs.source.js b/packages/documentation-site/patternfly-docs/patternfly-docs.source.js index 7e384f93e3..3b6f03d5c0 100644 --- a/packages/documentation-site/patternfly-docs/patternfly-docs.source.js +++ b/packages/documentation-site/patternfly-docs/patternfly-docs.source.js @@ -78,10 +78,9 @@ module.exports = (sourceMD, sourceProps, sourceFunctionDocs) => { const reactDragDropPath = require .resolve("@patternfly/react-drag-drop/package.json") .replace("package.json", "src"); - // TODO: add back once PF react rebase is done - // const reactTemplatesPath = require - // .resolve("@patternfly/react-templates/package.json") - // .replace("package.json", "src"); + const reactTemplatesPath = require + .resolve("@patternfly/react-templates/package.json") + .replace("package.json", "src"); const reactTopologyPath = require .resolve("@patternfly/react-topology/package.json") @@ -93,8 +92,7 @@ module.exports = (sourceMD, sourceProps, sourceFunctionDocs) => { sourceProps(path.join(reactChartsPath, "/**/*.tsx"), reactPropsIgnore); sourceProps(path.join(reactDragDropPath, "/**/*.tsx"), reactPropsIgnore); sourceProps(path.join(reactTopologyPath, "/**/*.tsx"), reactPropsIgnore); - // TODO: add back once PF react rebase is done - // sourceProps(path.join(reactTemplatesPath, "/**/*.tsx"), reactPropsIgnore); + sourceProps(path.join(reactTemplatesPath, "/**/*.tsx"), reactPropsIgnore); // React MD sourceMD(path.join(reactCorePath, "/components/**/examples/*.md"), "react"); @@ -130,11 +128,10 @@ module.exports = (sourceMD, sourceProps, sourceFunctionDocs) => { sourceMD(path.join(reactDragDropPath, "/**/examples/*.md"), "react-next"); // Templates MD - // TODO: add back once PF react rebase is done - // sourceMD( - // path.join(reactTemplatesPath, "/**/examples/*.md"), - // "react-templates" - // ); + sourceMD( + path.join(reactTemplatesPath, "/**/examples/*.md"), + "react-templates" + ); // React-topology MD sourceMD(path.join(reactTopologyPath, "/**/*.md"), "extensions");