@patternfly/documentation-framework 6.0.0-alpha.24 → 6.0.0-alpha.25
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/package.json +4 -4
- package/scripts/md/parseMD.js +31 -30
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.0.0-alpha.25 (2024-05-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **build:** bump ts version and fix docs build for v6 ([#4004](https://github.com/patternfly/patternfly-org/issues/4004)) ([55db3db](https://github.com/patternfly/patternfly-org/commit/55db3db9d8f0b47b323ce921ac42f06d8515c9b6))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# 6.0.0-alpha.24 (2024-05-06)
|
|
7
18
|
|
|
8
19
|
|
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.0.0-alpha.
|
|
4
|
+
"version": "6.0.0-alpha.25",
|
|
5
5
|
"author": "Red Hat",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"private": false,
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"@babel/preset-env": "^7.24.3",
|
|
14
14
|
"@babel/preset-react": "^7.24.1",
|
|
15
15
|
"@mdx-js/util": "1.6.16",
|
|
16
|
-
"@patternfly/ast-helpers": "^1.4.0-alpha.
|
|
16
|
+
"@patternfly/ast-helpers": "^1.4.0-alpha.14",
|
|
17
17
|
"@reach/router": "npm:@gatsbyjs/reach-router@1.3.9",
|
|
18
18
|
"autoprefixer": "9.8.6",
|
|
19
19
|
"babel-loader": "^9.1.3",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"style-to-object": "0.3.0",
|
|
61
61
|
"to-vfile": "6.1.0",
|
|
62
62
|
"typedoc": "0.23.0",
|
|
63
|
-
"typescript": "4.
|
|
63
|
+
"typescript": "4.7.4",
|
|
64
64
|
"unified": "9.1.0",
|
|
65
65
|
"unist-util-remove": "2.0.0",
|
|
66
66
|
"unist-util-visit": "2.0.3",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"react": "^17.0.0 || ^18.0.0",
|
|
81
81
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "f125eeab9c4e7df4315c40e95ba00f6d0ac7ce70"
|
|
84
84
|
}
|
package/scripts/md/parseMD.js
CHANGED
|
@@ -8,7 +8,7 @@ const vfileReport = require('vfile-reporter');
|
|
|
8
8
|
const yaml = require('js-yaml'); // https://github.com/nodeca/js-yaml
|
|
9
9
|
const chokidar = require('chokidar');
|
|
10
10
|
const { globSync } = require('glob');
|
|
11
|
-
const { typecheck } = require('./typecheck');
|
|
11
|
+
// const { typecheck } = require('./typecheck');
|
|
12
12
|
const { makeSlug } = require('../../helpers/slugger');
|
|
13
13
|
const { liveCodeTypes } = require('../../helpers/liveCodeTypes');
|
|
14
14
|
const { tsDocgen } = require('../tsDocgen');
|
|
@@ -204,35 +204,36 @@ function toReactComponent(mdFilePath, source, buildMode) {
|
|
|
204
204
|
&& node.tagName === 'Example'
|
|
205
205
|
&& liveCodeTypes.includes(node.properties.lang)
|
|
206
206
|
&& !node.properties.noLive;
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
}
|
|
207
|
+
// TODO: revert when CommonJS is upgraded to ESM or when unist-util packages are updated to a tool that is compatible with ESM
|
|
208
|
+
// visit(tree, isExample, node => {
|
|
209
|
+
// if (node.properties.isFullscreen) {
|
|
210
|
+
// pageData.fullscreenExamples = pageData.fullscreenExamples || [];
|
|
211
|
+
// pageData.fullscreenExamples.push(node.title);
|
|
212
|
+
// }
|
|
213
|
+
// else {
|
|
214
|
+
// pageData.examples = pageData.examples || [];
|
|
215
|
+
// pageData.examples.push(node.title);
|
|
216
|
+
// }
|
|
217
|
+
// // Typecheck TS examples
|
|
218
|
+
// if (node.properties.lang === 'ts') {
|
|
219
|
+
// const typerrors = typecheck(
|
|
220
|
+
// path.join(pageData.id, node.title + '.tsx'), // Needs to be unique per-example
|
|
221
|
+
// node.properties.code
|
|
222
|
+
// );
|
|
223
|
+
// typerrors.forEach(({ line, character, message }) => {
|
|
224
|
+
// line = node.position.start.line + line + 1;
|
|
225
|
+
// const column = character;
|
|
226
|
+
// if (buildMode === 'start') {
|
|
227
|
+
// // Don't fail to start over types
|
|
228
|
+
// file.message(`\u001b[31m THIS WILL FAIL THE BUILD\u001b[0m\n ${message}`, { line, column });
|
|
229
|
+
// } else {
|
|
230
|
+
// console.log('\u001b[31m');
|
|
231
|
+
// file.fail(`\n ${message}\n`, { line, column });
|
|
232
|
+
// console.log('\u001b[0m');
|
|
233
|
+
// }
|
|
234
|
+
// });
|
|
235
|
+
// }
|
|
236
|
+
// });
|
|
236
237
|
})
|
|
237
238
|
// Add custom PatternFly doc design things
|
|
238
239
|
.use(require('./anchor-header'), toc => {
|