@patternfly/documentation-framework 6.5.12 → 6.5.14
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 +19 -0
- package/package.json +3 -3
- package/scripts/webpack/getHtmlWebpackPlugins.js +10 -14
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.5.14 (2025-02-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 6.5.13 (2025-02-17)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **getHtmlWebpackPlugins:** Turn off pre-render for ChatBot ([#4467](https://github.com/patternfly/patternfly-org/issues/4467)) ([9bd77f2](https://github.com/patternfly/patternfly-org/commit/9bd77f2c07b33697d6ddefddc8b89139f7027444))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## 6.5.12 (2025-02-17)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @patternfly/documentation-framework
|
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.5.
|
|
4
|
+
"version": "6.5.14",
|
|
5
5
|
"author": "Red Hat",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bin": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"@babel/preset-env": "^7.24.3",
|
|
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.155",
|
|
16
16
|
"@reach/router": "npm:@gatsbyjs/reach-router@1.3.9",
|
|
17
17
|
"autoprefixer": "9.8.6",
|
|
18
18
|
"babel-loader": "^9.1.3",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"react": "^17.0.0 || ^18.0.0",
|
|
80
80
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "426214ce804461c9a43650980fff92e98fe3005f"
|
|
83
83
|
}
|
|
@@ -5,21 +5,17 @@ const { getTitle } = require('../../helpers/getTitle');
|
|
|
5
5
|
|
|
6
6
|
const templateDir = path.join(__dirname, '../../templates');
|
|
7
7
|
|
|
8
|
-
async function getHtmlWebpackPlugin({
|
|
9
|
-
isProd,
|
|
10
|
-
googleAnalyticsID,
|
|
11
|
-
algolia,
|
|
12
|
-
url,
|
|
13
|
-
title,
|
|
14
|
-
isFullscreen
|
|
15
|
-
}) {
|
|
8
|
+
async function getHtmlWebpackPlugin({ isProd, googleAnalyticsID, algolia, url, title, isFullscreen }) {
|
|
16
9
|
return new HtmlWebpackPlugin({
|
|
17
10
|
template: path.join(templateDir, 'html.ejs'),
|
|
18
11
|
filename: `${url}/index.html`.replace(/^\/+/, ''),
|
|
19
12
|
templateParameters: {
|
|
20
13
|
title: getTitle(title),
|
|
21
14
|
// Don't prerender fullscreen pages (expensive!)
|
|
22
|
-
prerendering:
|
|
15
|
+
prerendering:
|
|
16
|
+
isProd && !isFullscreen && !url.includes('chatbot') && !url.includes('topology') && !url.includes('extensions')
|
|
17
|
+
? await prerender(url)
|
|
18
|
+
: null,
|
|
23
19
|
// Don't use GA in dev mode
|
|
24
20
|
googleAnalyticsID: isProd ? googleAnalyticsID : false,
|
|
25
21
|
algolia
|
|
@@ -27,7 +23,7 @@ async function getHtmlWebpackPlugin({
|
|
|
27
23
|
scriptLoading: 'defer',
|
|
28
24
|
inject: false,
|
|
29
25
|
minify: false
|
|
30
|
-
})
|
|
26
|
+
});
|
|
31
27
|
}
|
|
32
28
|
|
|
33
29
|
async function getHtmlWebpackPlugins(options) {
|
|
@@ -40,11 +36,11 @@ async function getHtmlWebpackPlugins(options) {
|
|
|
40
36
|
filename: 'sitemap.xml',
|
|
41
37
|
templateParameters: {
|
|
42
38
|
urls: Object.entries(routes)
|
|
43
|
-
.map(([path, { sources }]) => [path, ...(sources || []).slice(1).map(source => source.slug)])
|
|
39
|
+
.map(([path, { sources }]) => [path, ...(sources || []).slice(1).map((source) => source.slug)])
|
|
44
40
|
.flat()
|
|
45
41
|
},
|
|
46
42
|
inject: false,
|
|
47
|
-
minify: false
|
|
43
|
+
minify: false
|
|
48
44
|
})
|
|
49
45
|
];
|
|
50
46
|
|
|
@@ -59,7 +55,7 @@ async function getHtmlWebpackPlugins(options) {
|
|
|
59
55
|
.map(([url, { sources = [], title, isFullscreen }]) => [
|
|
60
56
|
[url, { title, isFullscreen }],
|
|
61
57
|
// Add pages for sources
|
|
62
|
-
...sources.slice(1).map(source => [source.slug, source])
|
|
58
|
+
...sources.slice(1).map((source) => [source.slug, source])
|
|
63
59
|
])
|
|
64
60
|
.flat()
|
|
65
61
|
.sort();
|
|
@@ -70,7 +66,7 @@ async function getHtmlWebpackPlugins(options) {
|
|
|
70
66
|
|
|
71
67
|
console.log('done prerendering');
|
|
72
68
|
return res;
|
|
73
|
-
}
|
|
69
|
+
}
|
|
74
70
|
|
|
75
71
|
module.exports = {
|
|
76
72
|
getHtmlWebpackPlugins
|