Skip to content

Commit

Permalink
feat: Added data view to the documentaion site.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlabaj committed Jan 7, 2025
1 parent 1e62285 commit 47029b9
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/documentation-framework/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"@patternfly/quickstarts": "6.1.0",
"@patternfly/react-virtualized-extension": "6.0.0",
"@patternfly/react-templates": "6.1.0",
"@patternfly/chatbot": "2.1.0"
"@patternfly/chatbot": "2.1.0",
"@patternfly/data-view": "7.0.0-prerelease.7"
}
},{
"name": "6.0.0",
Expand Down
1 change: 1 addition & 0 deletions packages/documentation-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@patternfly/quickstarts": "6.1.0",
"@patternfly/chatbot": "2.1.0",
"@patternfly/design-tokens": "1.13.0",
"@patternfly/react-data-view": "7.0.0-prerelease.7",
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0",
"showdown": "^2.1.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,25 @@ module.exports = (sourceMD, sourceProps, sourceFunctionDocs) => {
sourceMD(path.join(logViewerContentBase, "/**/examples/*.md"), "react");
sourceMD(path.join(logViewerContentBase, "/**/demos/*.md"), "react-demos");

// Data view extension
const reactDataViewPath = require
.resolve("@patternfly/react-data-view/package.json")
.replace("package.json", "patternfly-docs/");

const reactDataViewContentBase = require
.resolve("@patternfly/react-data-view/package.json")
.replace(
"package.json",
"patternfly-docs/content/extensions/data-view"
);
sourceProps(path.join(reactDataViewPath, "/**/*.tsx"), reactPropsIgnore);
sourceMD(path.join(reactDataViewContentBase, "/**/examples/*.md"), "react");
sourceMD(
path.join(reactDataViewContentBase, "/**/design-guidelines/*.md"),
"design-guidelines"
);


// User feedback extension
const reactUserFeedbackPath = require
.resolve("@patternfly/react-user-feedback/package.json")
Expand Down
2 changes: 2 additions & 0 deletions scripts/latest-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ packagesExtensions=(
@patternfly/react-log-viewer
@patternfly/react-catalog-view-extension
@patternfly/react-component-groups
@patternfly/chatbot
@patternfly/react-data-view
)

prereleaseTag=prerelease
Expand Down
14 changes: 13 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1879,7 +1879,7 @@
react-dropzone "14.3.5"
tslib "^2.8.1"

"@patternfly/[email protected]":
"@patternfly/[email protected]", "@patternfly/react-component-groups@^6.1.0":
version "6.1.0"
resolved "https://registry.yarnpkg.com/@patternfly/react-component-groups/-/react-component-groups-6.1.0.tgz#aae33c0d114e00923626ddfaf7143626d526d013"
integrity sha512-8RkQv9wQk+D+nUMFtl4uk0ddMvxZ/+jFwnnXe2fw/BulouDVbpKRI24C1S8i1OQHr3++CbocBmmWRV0iw9Kvlw==
Expand Down Expand Up @@ -1952,6 +1952,18 @@
react-dropzone "^14.3.5"
tslib "^2.8.1"

"@patternfly/[email protected]":
version "7.0.0-prerelease.7"
resolved "https://registry.yarnpkg.com/@patternfly/react-data-view/-/react-data-view-7.0.0-prerelease.7.tgz#1649993bbbac659e14897882c664f5553c69f209"
integrity sha512-i/AN+Yd/UGhb6X3eo0HkgVm0VuCz4BEXn5IipPRCDEXZQAuhvcNcE9igb+EpIqsAdYKvTb4cHT/WO+Ur0AxodQ==
dependencies:
"@patternfly/react-component-groups" "^6.1.0"
"@patternfly/react-core" "^6.0.0"
"@patternfly/react-icons" "^6.0.0"
"@patternfly/react-table" "^6.0.0"
clsx "^2.1.1"
react-jss "^10.10.0"

"@patternfly/[email protected]":
version "7.1.0"
resolved "https://registry.yarnpkg.com/@patternfly/react-docs/-/react-docs-7.1.0.tgz#fbb9c20028050b30775a13908c1a3ad3c8c05223"
Expand Down

0 comments on commit 47029b9

Please sign in to comment.