-
Notifications
You must be signed in to change notification settings - Fork 145
feat: add deprecated subpaths #3291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
cf6824f
81c962e
3533764
dcc4165
1cbf4d2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,6 +40,7 @@ module.exports = (sourceMD, sourceProps) => { | |
| const reactChartsPath = require | ||
| .resolve('@patternfly/react-charts/package.json') | ||
| .replace('package.json', 'src'); | ||
|
|
||
| const reactLogViewerPath = require | ||
| .resolve('@patternfly/react-log-viewer/package.json') | ||
| .replace('package.json', 'src'); | ||
|
|
@@ -59,12 +60,14 @@ module.exports = (sourceMD, sourceProps) => { | |
| sourceMD(path.join(reactCorePath, '/components/**/examples/*.md'), 'react'); | ||
| sourceMD(path.join(reactCorePath, '/layouts/**/examples/*.md'), 'react'); | ||
| sourceMD(path.join(reactCorePath, '/next/components/**/examples/*.md'), 'react-next'); | ||
| sourceMD(path.join(reactCorePath, '/deprecated/components/**/examples/*.md'), 'react-deprecated'); | ||
| sourceMD(path.join(reactCorePath, '/**/demos/**/*.md'), 'react-demos'); | ||
|
|
||
| // React-table MD | ||
| sourceMD(path.join(reactTablePath, '/**/TableComposable/examples/*.md'), 'react-composable'); | ||
| sourceMD(path.join(reactTablePath, '/**/demos/*.md'), 'react-demos'); | ||
| sourceMD(path.join(reactTablePath, '/**/TableComposable/examples/*.md'), 'react'); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Was this tested locally by any chance? This regex might conflict with the deprecated path regex on line 61. To prevent the potential for that we can remove the wildcard at the beginning of this line and replace it with
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not recently but i'll do that
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jeffpuzzo so i'm realizing now that this line will be better tested in the react-docs package where we have our own patternfly-docs.source.js file defined. patternfly-react does not consume org's v4 package, it's actually the other way around, so if these lines dont work in the react workspace when the change is made there, then we can update it here to match whatever worked in the workspace. If this is good to be merged, hopefully this will unblock the work to deprecate table
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah right, that makes sense. |
||
| sourceMD(path.join(reactTablePath, '/**/Table/examples/*.md'), 'react-legacy'); | ||
| sourceMD(path.join(reactTablePath, '/deprecated/components/**/examples/*.md'), 'react-deprecated'); | ||
| sourceMD(path.join(reactTablePath, '/**/demos/*.md'), 'react-demos'); | ||
|
|
||
| // Charts MD (no demos yet) | ||
| sourceMD(path.join(reactChartsPath, '/**/examples/*.md'), 'react'); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still have plans to use
react-legacyafter this change and introduction ofreact-deprecated?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ultimately react-deprecated will replace the legacy here so I can remove it, but probably not until it's been removed after the breaking change. I don't want to remove it before then.
The deprecated work is going in the v5 branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, so maybe we make a follow-up issue to remove this when we're ready?