Skip to content

Commit

Permalink
fix(react-templates): add react-templates
Browse files Browse the repository at this point in the history
  • Loading branch information
tlabaj committed Apr 22, 2024
1 parent b9c2e95 commit aee7955
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
6 changes: 3 additions & 3 deletions packages/documentation-framework/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/documentation-framework/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
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": "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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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");
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit aee7955

Please sign in to comment.