@patternfly/documentation-framework 1.9.2 → 1.10.1
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/app.js +1 -1
- package/package.json +2 -2
- package/scripts/webpack/webpack.base.config.js +5 -0
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
|
+
## 1.10.1 (2023-03-02)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# 1.10.0 (2023-03-01)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **docs:** add react console documentation ([#3366](https://github.com/patternfly/patternfly-org/issues/3366)) ([f3eb5bf](https://github.com/patternfly/patternfly-org/commit/f3eb5bf0ee2557c93068e01e68de1953d6f67716))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## 1.9.2 (2023-03-01)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @patternfly/documentation-framework
|
package/app.js
CHANGED
|
@@ -19,7 +19,7 @@ import './layouts/sideNavLayout/sideNavLayout.css';
|
|
|
19
19
|
const AppRoute = ({ child, katacodaLayout, title, path }) => {
|
|
20
20
|
const pathname = useLocation().pathname;
|
|
21
21
|
if (typeof window !== 'undefined' && window.gtag) {
|
|
22
|
-
gtag('config',
|
|
22
|
+
gtag('config', process.env.googleAnalyticsID, {
|
|
23
23
|
'page_path': pathname,
|
|
24
24
|
'page_title': (title || pathname)
|
|
25
25
|
});
|
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": "1.
|
|
4
|
+
"version": "1.10.1",
|
|
5
5
|
"author": "Red Hat",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"private": false,
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"react": "^16.8.0 || ^17.0.0",
|
|
85
85
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "ee806688406004d5e6d947176c96ab159eb08f1b"
|
|
88
88
|
}
|
|
@@ -8,6 +8,7 @@ module.exports = (_env, argv) => {
|
|
|
8
8
|
const {
|
|
9
9
|
pathPrefix = '',
|
|
10
10
|
mode,
|
|
11
|
+
googleAnalyticsID = false,
|
|
11
12
|
algolia = {},
|
|
12
13
|
hasGdprBanner = false,
|
|
13
14
|
hasFooter = false,
|
|
@@ -39,9 +40,12 @@ module.exports = (_env, argv) => {
|
|
|
39
40
|
include: [
|
|
40
41
|
path.resolve(process.cwd(), 'src'),
|
|
41
42
|
path.resolve(process.cwd(), 'patternfly-docs'),
|
|
43
|
+
path.resolve(process.cwd(), 'examples'),
|
|
42
44
|
path.resolve(__dirname, '../..'), // Temporarily compile theme using webpack for development
|
|
43
45
|
/react-[\w-]+\/src\/.*\/examples/,
|
|
44
46
|
/react-[\w-]+\\src\\.*\\examples/, // fix for Windows
|
|
47
|
+
/react-[\w-]+\/patternfly-docs\/.*\/examples/, //fixes for extensions
|
|
48
|
+
/react-[\w-]+\\patternfly-docs\\.*\\examples/,
|
|
45
49
|
].concat(includePaths.map(path => new RegExp(path))),
|
|
46
50
|
exclude: [
|
|
47
51
|
path.resolve(__dirname, '../../node_modules'), // Temporarily compile theme using webpack for development
|
|
@@ -133,6 +137,7 @@ module.exports = (_env, argv) => {
|
|
|
133
137
|
new webpack.DefinePlugin({
|
|
134
138
|
'process.env.NODE_ENV': JSON.stringify(mode),
|
|
135
139
|
'process.env.pathPrefix': JSON.stringify(isProd ? pathPrefix : ''),
|
|
140
|
+
'process.env.googleAnalyticsID': JSON.stringify(isProd ? googleAnalyticsID : ''),
|
|
136
141
|
'process.env.algolia': JSON.stringify(algolia),
|
|
137
142
|
'process.env.hasGdprBanner': JSON.stringify(hasGdprBanner),
|
|
138
143
|
'process.env.hasFooter': JSON.stringify(hasFooter),
|