@patternfly/documentation-framework 6.22.1 → 6.22.3
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
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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.22.3 (2025-09-05)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 6.22.2 (2025-09-05)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## 6.22.1 (2025-09-05)
|
|
7
23
|
|
|
8
24
|
|
|
@@ -218,8 +218,17 @@ export const Example = ({
|
|
|
218
218
|
? getStaticParams(title, editorCode)
|
|
219
219
|
: getReactParams(title, editorCode, scope, lang, relativeImports, relPath, sourceLink)
|
|
220
220
|
);
|
|
221
|
-
const fullscreenLink =
|
|
222
|
-
|
|
221
|
+
const fullscreenLink = (() => {
|
|
222
|
+
const cleanPathname = loc.pathname.replace(/\/$/, '');
|
|
223
|
+
const sourcePath = `/${source}`;
|
|
224
|
+
|
|
225
|
+
// Check if the source is already in the pathname to avoid duplication
|
|
226
|
+
if (cleanPathname.includes(sourcePath)) {
|
|
227
|
+
return `${cleanPathname}/${slugger(title)}`;
|
|
228
|
+
} else {
|
|
229
|
+
return `${cleanPathname}${sourcePath}/${slugger(title)}`;
|
|
230
|
+
}
|
|
231
|
+
})();
|
|
223
232
|
|
|
224
233
|
const hasMetaText = isBeta || isDemo || isDeprecated || false;
|
|
225
234
|
const tooltips = (
|
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.22.
|
|
4
|
+
"version": "6.22.3",
|
|
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.273",
|
|
16
16
|
"@reach/router": "npm:@gatsbyjs/reach-router@1.3.9",
|
|
17
17
|
"autoprefixer": "10.4.19",
|
|
18
18
|
"babel-loader": "^9.1.3",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"braces": ">=3.0.3",
|
|
88
88
|
"ssri": ">=8.0.1"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "227076888719ebf48f935d705b2343851048c586"
|
|
91
91
|
}
|
|
@@ -36,7 +36,12 @@ async function getHtmlWebpackPlugins(options) {
|
|
|
36
36
|
filename: 'sitemap.xml',
|
|
37
37
|
templateParameters: {
|
|
38
38
|
urls: Object.entries(routes)
|
|
39
|
-
.map(([path, { sources }]) => [
|
|
39
|
+
.map(([path, { sources }]) => [
|
|
40
|
+
path,
|
|
41
|
+
...(sources || []).slice(1)
|
|
42
|
+
.filter(source => source.slug !== path) // Filter out sources that would create duplicate routes
|
|
43
|
+
.map((source) => source.slug)
|
|
44
|
+
])
|
|
40
45
|
.flat()
|
|
41
46
|
},
|
|
42
47
|
inject: false,
|
|
@@ -54,8 +59,10 @@ async function getHtmlWebpackPlugins(options) {
|
|
|
54
59
|
.concat(Object.entries(fullscreenRoutes))
|
|
55
60
|
.map(([url, { sources = [], title, isFullscreen }]) => [
|
|
56
61
|
[url, { title, isFullscreen }],
|
|
57
|
-
// Add pages for sources
|
|
58
|
-
...sources.slice(1)
|
|
62
|
+
// Add pages for sources, but filter out duplicates
|
|
63
|
+
...sources.slice(1)
|
|
64
|
+
.filter(source => source.slug !== url) // Filter out sources that would create duplicate routes
|
|
65
|
+
.map((source) => [source.slug, source])
|
|
59
66
|
])
|
|
60
67
|
.flat()
|
|
61
68
|
.sort();
|