@patternfly/documentation-framework 6.33.6 → 6.33.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/components/example/example.js +3 -2
- package/package.json +3 -3
- package/templates/mdx.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 6.33.7 (2026-02-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Update example.js to address react console docs bug. ([#4910](https://github.com/patternfly/patternfly-org/issues/4910)) ([7ff0a35](https://github.com/patternfly/patternfly-org/commit/7ff0a357e09071f287218dd247cc9c0bec7a16b8))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## 6.33.6 (2026-02-03)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
@@ -224,8 +224,9 @@ export const Example = ({
|
|
|
224
224
|
const cleanPathname = loc.pathname.replace(/\/$/, '');
|
|
225
225
|
const sourcePath = `/${source}`;
|
|
226
226
|
|
|
227
|
-
// Check if the source is already
|
|
228
|
-
|
|
227
|
+
// Check if the source is already at the end of the pathname to avoid duplication
|
|
228
|
+
// Using endsWith instead of includes to prevent false positives (e.g., /react-console matching /react)
|
|
229
|
+
if (cleanPathname.endsWith(sourcePath)) {
|
|
229
230
|
return `${cleanPathname}/${slugger(title)}`;
|
|
230
231
|
} else {
|
|
231
232
|
return `${cleanPathname}${sourcePath}/${slugger(title)}`;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/documentation-framework",
|
|
3
3
|
"description": "A framework to build documentation for PatternFly.",
|
|
4
|
-
"version": "6.33.
|
|
4
|
+
"version": "6.33.7",
|
|
5
5
|
"author": "Red Hat",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bin": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"@babel/preset-env": "7.27.1",
|
|
13
13
|
"@babel/preset-react": "^7.24.1",
|
|
14
14
|
"@mdx-js/util": "1.6.16",
|
|
15
|
-
"@patternfly/ast-helpers": "^1.4.0-alpha.
|
|
15
|
+
"@patternfly/ast-helpers": "^1.4.0-alpha.333",
|
|
16
16
|
"@reach/router": "npm:@gatsbyjs/reach-router@1.3.9",
|
|
17
17
|
"autoprefixer": "10.4.19",
|
|
18
18
|
"babel-loader": "^9.1.3",
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"http-cache-semantics": ">=4.1.1",
|
|
90
90
|
"nanoid": "3.3.8"
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "649650dea7397e17a947d7d419c61ce3614db6f7"
|
|
93
93
|
}
|
package/templates/mdx.js
CHANGED
|
@@ -76,8 +76,8 @@ const MDXChildTemplate = ({ Component, source, toc = [], index = 0, id }) => {
|
|
|
76
76
|
<InlineAlert title="Beta feature">
|
|
77
77
|
This beta component is currently under review and is still open for further evolution. It is available for use
|
|
78
78
|
in product. Beta components are considered for promotion on a quarterly basis. Please join in and give us your
|
|
79
|
-
feedback or submit any questions
|
|
80
|
-
<a href="
|
|
79
|
+
feedback or submit any questions via{' '}
|
|
80
|
+
<a href="https://patternfly.slack.com" target="_blank" rel="noopener noreferrer">
|
|
81
81
|
Slack
|
|
82
82
|
</a>
|
|
83
83
|
. To learn more about the process, visit our{' '}
|