@patternfly/documentation-framework 1.10.3 → 2.0.0-alpha.10
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 +24 -26
- package/app.js +1 -1
- package/components/sideNav/sideNav.js +3 -10
- package/helpers/getTitle.js +2 -2
- package/package.json +12 -8
- package/pages/404/index.js +3 -3
- package/routes.js +4 -19
- package/scripts/cli/build.js +6 -0
- package/scripts/cli/cli.js +1 -0
- package/scripts/md/parseMD.js +1 -11
- package/scripts/webpack/webpack.base.config.js +0 -5
- package/templates/mdx.js +2 -10
- package/templates/patternfly-docs/content/extensions/extension/design-guidelines/design-guidelines.md +0 -2
- package/templates/patternfly-docs/content/extensions/extension/examples/basic.md +0 -2
- package/versions.json +21 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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
|
+
# 2.0.0-alpha.10 (2023-03-15)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
9
9
|
|
|
@@ -11,37 +11,37 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
# 2.0.0-alpha.9 (2023-03-09)
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
### Bug Fixes
|
|
18
18
|
|
|
19
|
-
* **
|
|
19
|
+
* **versions:** fix typo ([a9b8fe2](https://github.com/patternfly/patternfly-org/commit/a9b8fe296a9c28bdd9ada01a80b1653810802ddf))
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
# 2.0.0-alpha.8 (2023-03-03)
|
|
26
26
|
|
|
27
|
-
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
28
27
|
|
|
28
|
+
### Features
|
|
29
29
|
|
|
30
|
+
* **docs-framework:** add legacy ssl cli option ([#3433](https://github.com/patternfly/patternfly-org/issues/3433)) ([ccb56fb](https://github.com/patternfly/patternfly-org/commit/ccb56fb27026ebe4be5f5166a86cf3c2f995a872))
|
|
30
31
|
|
|
31
32
|
|
|
32
33
|
|
|
33
|
-
# 1.10.0 (2023-03-01)
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
# 2.0.0-alpha.7 (2023-03-01)
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
# 2.0.0-alpha.6 (2023-03-01)
|
|
45
45
|
|
|
46
46
|
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
47
47
|
|
|
@@ -49,58 +49,56 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
55
|
-
|
|
52
|
+
# 2.0.0-alpha.5 (2023-03-01)
|
|
56
53
|
|
|
57
54
|
|
|
55
|
+
### Bug Fixes
|
|
58
56
|
|
|
57
|
+
* **404 Page:** Removed CardHeaderMain ([#3429](https://github.com/patternfly/patternfly-org/issues/3429)) ([6169fed](https://github.com/patternfly/patternfly-org/commit/6169fedd3dc57b9c206197c498d6cebc559e2a93))
|
|
59
58
|
|
|
60
|
-
# 1.9.0 (2023-02-27)
|
|
61
59
|
|
|
62
60
|
|
|
63
|
-
### Features
|
|
64
61
|
|
|
65
|
-
* **trainings:** remove broken trainings and replace some with blog style training ([#3353](https://github.com/patternfly/patternfly-org/issues/3353)) ([a8dee99](https://github.com/patternfly/patternfly-org/commit/a8dee99d6b4d1f702b070653a6823e389f7d9759))
|
|
66
62
|
|
|
63
|
+
# 2.0.0-alpha.4 (2023-02-27)
|
|
67
64
|
|
|
68
65
|
|
|
66
|
+
### Bug Fixes
|
|
69
67
|
|
|
68
|
+
* **README:** small wording change to test build ([45ede1b](https://github.com/patternfly/patternfly-org/commit/45ede1b356392df6982fd5cbf3b3a4d976f54e06))
|
|
70
69
|
|
|
71
|
-
## 1.8.1 (2023-02-20)
|
|
72
70
|
|
|
73
|
-
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
74
71
|
|
|
75
72
|
|
|
76
73
|
|
|
74
|
+
# 2.0.0-alpha.3 (2023-02-13)
|
|
77
75
|
|
|
78
76
|
|
|
79
|
-
|
|
77
|
+
### Bug Fixes
|
|
80
78
|
|
|
79
|
+
* **whitespace:** test github actions ([de769f0](https://github.com/patternfly/patternfly-org/commit/de769f0d47e770af07caf9370ae72f76ab66c8a8))
|
|
81
80
|
|
|
82
|
-
### Features
|
|
83
81
|
|
|
84
|
-
* **docs:** enabled manual ordering of sidenav ([#3403](https://github.com/patternfly/patternfly-org/issues/3403)) ([b630ed9](https://github.com/patternfly/patternfly-org/commit/b630ed9e7062e1302d58793bfec65d49da7764d3))
|
|
85
82
|
|
|
86
83
|
|
|
87
84
|
|
|
85
|
+
# 2.0.0-alpha.2 (2023-02-13)
|
|
88
86
|
|
|
89
87
|
|
|
90
|
-
|
|
88
|
+
### Bug Fixes
|
|
91
89
|
|
|
90
|
+
* **whitespace:** test github actions ([2e04c13](https://github.com/patternfly/patternfly-org/commit/2e04c137472fe5b4bd96c25cc32ab9c45238f70b))
|
|
92
91
|
|
|
93
|
-
### Features
|
|
94
92
|
|
|
95
|
-
* **docs:** customize tabs with optional tabText frontmatter ([#3394](https://github.com/patternfly/patternfly-org/issues/3394)) ([093c6c7](https://github.com/patternfly/patternfly-org/commit/093c6c77053f544605d40f8918dc5621829ac7c3))
|
|
96
93
|
|
|
97
94
|
|
|
98
95
|
|
|
96
|
+
# 2.0.0-alpha.1 (2023-02-13)
|
|
99
97
|
|
|
100
98
|
|
|
101
|
-
|
|
99
|
+
### Features
|
|
102
100
|
|
|
103
|
-
**
|
|
101
|
+
* **v5:** pull in alphas, set up doc-framework alpha ([#3401](https://github.com/patternfly/patternfly-org/issues/3401)) ([082d048](https://github.com/patternfly/patternfly-org/commit/082d048f33505fb1efc39a3c9928d1552c7f9cea))
|
|
104
102
|
|
|
105
103
|
|
|
106
104
|
|
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', 'UA-47523816-6', {
|
|
23
23
|
'page_path': pathname,
|
|
24
24
|
'page_title': (title || pathname)
|
|
25
25
|
});
|
|
@@ -12,8 +12,6 @@ const getIsActive = (location, section, subsection = null) => {
|
|
|
12
12
|
return location.pathname.startsWith(`${process.env.pathPrefix}${slug}`);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
const defaultValue = 50;
|
|
16
|
-
|
|
17
15
|
const NavItem = ({ text, href }) => {
|
|
18
16
|
const isMobileView = window.innerWidth < Number.parseInt(globalBreakpointXl.value, 10);
|
|
19
17
|
return (
|
|
@@ -69,14 +67,9 @@ const ExpandableNav = ({groupedRoutes, location, section, subsection = null}) =>
|
|
|
69
67
|
}}
|
|
70
68
|
>
|
|
71
69
|
{Object.entries(routes || {})
|
|
72
|
-
.filter(([id,
|
|
73
|
-
.map(([id, { slug, isSubsection = false
|
|
74
|
-
.sort(({text: text1
|
|
75
|
-
if (sortValue1 === sortValue2) {
|
|
76
|
-
return text1.localeCompare(text2);
|
|
77
|
-
}
|
|
78
|
-
return sortValue1 > sortValue2 ? 1 : -1;
|
|
79
|
-
})
|
|
70
|
+
.filter(([id, { hideNavItem }]) => !Boolean(hideNavItem) && (id !== 'isSubsection'))
|
|
71
|
+
.map(([id, { slug, isSubsection = false }]) => ({ text: id, href: slug, isSubsection }))
|
|
72
|
+
.sort(({ text: text1 }, { text: text2 }) => text1.localeCompare(text2))
|
|
80
73
|
.map(navObj => navObj.isSubsection
|
|
81
74
|
? ExpandableNav({groupedRoutes, location, section, subsection: navObj.text})
|
|
82
75
|
: NavItem(navObj)
|
package/helpers/getTitle.js
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/documentation-framework",
|
|
3
3
|
"description": "A framework to build documentation for PatternFly.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.0-alpha.10",
|
|
5
5
|
"author": "Red Hat",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"private": false,
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public",
|
|
10
|
+
"tag": "alpha"
|
|
11
|
+
},
|
|
8
12
|
"bin": {
|
|
9
13
|
"pf-docs-framework": "scripts/cli/cli.js"
|
|
10
14
|
},
|
|
@@ -77,12 +81,12 @@
|
|
|
77
81
|
"webpack-merge": "5.8.0"
|
|
78
82
|
},
|
|
79
83
|
"peerDependencies": {
|
|
80
|
-
"@patternfly/patternfly": "
|
|
81
|
-
"@patternfly/react-code-editor": "
|
|
82
|
-
"@patternfly/react-core": "
|
|
83
|
-
"@patternfly/react-table": "
|
|
84
|
-
"react": "^
|
|
85
|
-
"react-dom": "^
|
|
84
|
+
"@patternfly/patternfly": "^5.0.0-alpha.13",
|
|
85
|
+
"@patternfly/react-code-editor": "^5.0.0-alpha.7",
|
|
86
|
+
"@patternfly/react-core": "^5.0.0-alpha.7",
|
|
87
|
+
"@patternfly/react-table": "^5.0.0-alpha.7",
|
|
88
|
+
"react": "^17.0.0 || ^18.0.0",
|
|
89
|
+
"react-dom": "^17.0.0 || ^18.0.0"
|
|
86
90
|
},
|
|
87
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "3b383cc2f3e0d94a1b88f1b72c6c7f10537928a4"
|
|
88
92
|
}
|
package/pages/404/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
CardTitle,
|
|
7
7
|
CardBody,
|
|
8
8
|
CardFooter,
|
|
9
|
-
|
|
9
|
+
CardHeader,
|
|
10
10
|
EmptyState,
|
|
11
11
|
EmptyStateBody,
|
|
12
12
|
EmptyStateIcon,
|
|
@@ -36,9 +36,9 @@ const Card404 = ({
|
|
|
36
36
|
}) => (
|
|
37
37
|
<GridItem xl={3} md={6} xs={12}>
|
|
38
38
|
<Card style={{ height: '340px' }}>
|
|
39
|
-
<
|
|
39
|
+
<CardHeader className="ws-404-card-header">
|
|
40
40
|
<img src={img} alt={alt} width="64px" />
|
|
41
|
-
</
|
|
41
|
+
</CardHeader>
|
|
42
42
|
<CardTitle>
|
|
43
43
|
{title}
|
|
44
44
|
</CardTitle>
|
package/routes.js
CHANGED
|
@@ -9,8 +9,6 @@ const routes = {
|
|
|
9
9
|
...generatedRoutes
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
const defaultOrder = 50;
|
|
13
|
-
|
|
14
12
|
for (let route in routes) {
|
|
15
13
|
const pageData = routes[route];
|
|
16
14
|
if (pageData.SyncComponent) {
|
|
@@ -30,7 +28,7 @@ const isNull = o => o === null || o === undefined;
|
|
|
30
28
|
const groupedRoutes = Object.entries(routes)
|
|
31
29
|
.filter(([_slug, { id, section }]) => !isNull(id) && !isNull(section))
|
|
32
30
|
.reduce((accum, [slug, pageData]) => {
|
|
33
|
-
const { section, subsection = null, id, title, source, katacodaLayout, hideNavItem, relPath
|
|
31
|
+
const { section, subsection = null, id, title, source, katacodaLayout, hideNavItem, relPath } = pageData;
|
|
34
32
|
pageData.slug = slug;
|
|
35
33
|
// add section to groupedRoutes obj if not yet created
|
|
36
34
|
accum[section] = accum[section] || {};
|
|
@@ -44,9 +42,7 @@ const groupedRoutes = Object.entries(routes)
|
|
|
44
42
|
sources: [],
|
|
45
43
|
katacodaLayout,
|
|
46
44
|
hideNavItem,
|
|
47
|
-
relPath
|
|
48
|
-
...(sortValue && { sortValue }),
|
|
49
|
-
...(subsectionSortValue && { subsectionSortValue })
|
|
45
|
+
relPath
|
|
50
46
|
}
|
|
51
47
|
// add page to groupedRoutes obj section or subsection
|
|
52
48
|
if (subsection) {
|
|
@@ -56,21 +52,10 @@ const groupedRoutes = Object.entries(routes)
|
|
|
56
52
|
// add page to subsection
|
|
57
53
|
accum[section][subsection][id] = accum[section][subsection][id] || data;
|
|
58
54
|
accum[section][subsection][id].sources.push(pageData);
|
|
59
|
-
// nav item ordering
|
|
60
|
-
if (sortValue) {
|
|
61
|
-
accum[section][subsection].sortValue = sortValue;
|
|
62
|
-
}
|
|
63
|
-
if (subsectionSortValue) {
|
|
64
|
-
accum[section][subsection].subsectionSortValue = subsectionSortValue;
|
|
65
|
-
}
|
|
66
55
|
} else {
|
|
67
56
|
// add page to section
|
|
68
57
|
accum[section][id] = accum[section][id] || data;
|
|
69
58
|
accum[section][id].sources.push(pageData);
|
|
70
|
-
// nav item ordering
|
|
71
|
-
if (sortValue) {
|
|
72
|
-
accum[section][id].sortValue = sortValue;
|
|
73
|
-
}
|
|
74
59
|
}
|
|
75
60
|
|
|
76
61
|
return accum;
|
|
@@ -88,6 +73,7 @@ const sourceOrder = {
|
|
|
88
73
|
'design-guidelines': 99,
|
|
89
74
|
'accessibility': 100
|
|
90
75
|
};
|
|
76
|
+
const defaultOrder = 50;
|
|
91
77
|
|
|
92
78
|
const sortSources = ({ source: s1 }, { source: s2 }) => {
|
|
93
79
|
const s1Index = sourceOrder[s1] || defaultOrder;
|
|
@@ -122,8 +108,7 @@ Object.entries(groupedRoutes)
|
|
|
122
108
|
// Loop through each page in expandable subsection
|
|
123
109
|
if (pageData.isSubsection) {
|
|
124
110
|
Object.entries(pageData).map(([section, ids]) => {
|
|
125
|
-
|
|
126
|
-
if (ids && ids?.id) {
|
|
111
|
+
if (section !== 'isSubsection') {
|
|
127
112
|
pageDataArr.push(ids);
|
|
128
113
|
}
|
|
129
114
|
})
|
package/scripts/cli/build.js
CHANGED
|
@@ -50,6 +50,11 @@ async function execFile(file, args) {
|
|
|
50
50
|
const child_execArgv = [
|
|
51
51
|
'--max-old-space-size=4096'
|
|
52
52
|
];
|
|
53
|
+
|
|
54
|
+
if (args.legacySSL) {
|
|
55
|
+
child_execArgv.push('--openssl-legacy-provider')
|
|
56
|
+
}
|
|
57
|
+
|
|
53
58
|
const child = fork(path.join(__dirname, file), child_argv, { execArgv: child_execArgv });
|
|
54
59
|
function errorHandler(err) {
|
|
55
60
|
console.error(err);
|
|
@@ -78,6 +83,7 @@ async function build(cmd, options) {
|
|
|
78
83
|
const config = getConfig(options);
|
|
79
84
|
config.analyze = options.analyze;
|
|
80
85
|
config.output = options.output;
|
|
86
|
+
config.legacySSL = options.legacySSL
|
|
81
87
|
|
|
82
88
|
// These get passed to `fork`ed builds
|
|
83
89
|
process.env.pathPrefix = config.pathPrefix;
|
package/scripts/cli/cli.js
CHANGED
|
@@ -26,6 +26,7 @@ program
|
|
|
26
26
|
.command('build <server|client|all>')
|
|
27
27
|
.option('-a, --analyze', 'use webpack-bundle-analyzer', false)
|
|
28
28
|
.option('-o, --output <folder>', 'output folder', 'public')
|
|
29
|
+
.option('--legacySSL', 'use legacy version of openssl, needed to support Node 18 until we upgrade webpack to v5', false)
|
|
29
30
|
.description('generates source files and runs webpack')
|
|
30
31
|
.action((cmd, options) => {
|
|
31
32
|
const { build } = require('./build');
|
package/scripts/md/parseMD.js
CHANGED
|
@@ -85,7 +85,6 @@ function toReactComponent(mdFilePath, source, buildMode) {
|
|
|
85
85
|
section: frontmatter.section || '',
|
|
86
86
|
subsection: frontmatter.subsection || '',
|
|
87
87
|
source,
|
|
88
|
-
tabName: frontmatter.tabName || null,
|
|
89
88
|
slug,
|
|
90
89
|
sourceLink: frontmatter.sourceLink || `https://github.com/patternfly/${
|
|
91
90
|
sourceRepo}/blob/main/${
|
|
@@ -127,12 +126,6 @@ function toReactComponent(mdFilePath, source, buildMode) {
|
|
|
127
126
|
if (frontmatter.hideNavItem) {
|
|
128
127
|
pageData.hideNavItem = frontmatter.hideNavItem;
|
|
129
128
|
}
|
|
130
|
-
if (frontmatter.sortValue) {
|
|
131
|
-
pageData.sortValue = frontmatter.sortValue;
|
|
132
|
-
}
|
|
133
|
-
if (frontmatter.subsectionSortValue) {
|
|
134
|
-
pageData.subsectionSortValue = frontmatter.subsectionSortValue;
|
|
135
|
-
}
|
|
136
129
|
})
|
|
137
130
|
// Delete HTML comments
|
|
138
131
|
.use(require('./remove-comments'))
|
|
@@ -273,11 +266,8 @@ function sourceMDFile(file, source, buildMode) {
|
|
|
273
266
|
section: pageData.section,
|
|
274
267
|
subsection: pageData.subsection,
|
|
275
268
|
source: pageData.source,
|
|
276
|
-
tabName: pageData.tabName,
|
|
277
269
|
...(pageData.katacodaLayout && { katacodaLayout: pageData.katacodaLayout }),
|
|
278
|
-
...(pageData.hideNavItem && { hideNavItem: pageData.hideNavItem })
|
|
279
|
-
...(pageData.sortValue && { sortValue: pageData.sortValue }),
|
|
280
|
-
...(pageData.subsectionSortValue && { subsectionSortValue: pageData.subsectionSortValue })
|
|
270
|
+
...(pageData.hideNavItem && { hideNavItem: pageData.hideNavItem })
|
|
281
271
|
};
|
|
282
272
|
}
|
|
283
273
|
}
|
|
@@ -8,7 +8,6 @@ module.exports = (_env, argv) => {
|
|
|
8
8
|
const {
|
|
9
9
|
pathPrefix = '',
|
|
10
10
|
mode,
|
|
11
|
-
googleAnalyticsID = false,
|
|
12
11
|
algolia = {},
|
|
13
12
|
hasGdprBanner = false,
|
|
14
13
|
hasFooter = false,
|
|
@@ -40,12 +39,9 @@ module.exports = (_env, argv) => {
|
|
|
40
39
|
include: [
|
|
41
40
|
path.resolve(process.cwd(), 'src'),
|
|
42
41
|
path.resolve(process.cwd(), 'patternfly-docs'),
|
|
43
|
-
path.resolve(process.cwd(), 'examples'),
|
|
44
42
|
path.resolve(__dirname, '../..'), // Temporarily compile theme using webpack for development
|
|
45
43
|
/react-[\w-]+\/src\/.*\/examples/,
|
|
46
44
|
/react-[\w-]+\\src\\.*\\examples/, // fix for Windows
|
|
47
|
-
/react-[\w-]+\/patternfly-docs\/.*\/examples/, //fixes for extensions
|
|
48
|
-
/react-[\w-]+\\patternfly-docs\\.*\\examples/,
|
|
49
45
|
].concat(includePaths.map(path => new RegExp(path))),
|
|
50
46
|
exclude: [
|
|
51
47
|
path.resolve(__dirname, '../../node_modules'), // Temporarily compile theme using webpack for development
|
|
@@ -137,7 +133,6 @@ module.exports = (_env, argv) => {
|
|
|
137
133
|
new webpack.DefinePlugin({
|
|
138
134
|
'process.env.NODE_ENV': JSON.stringify(mode),
|
|
139
135
|
'process.env.pathPrefix': JSON.stringify(isProd ? pathPrefix : ''),
|
|
140
|
-
'process.env.googleAnalyticsID': JSON.stringify(isProd ? googleAnalyticsID : ''),
|
|
141
136
|
'process.env.algolia': JSON.stringify(algolia),
|
|
142
137
|
'process.env.hasGdprBanner': JSON.stringify(hasGdprBanner),
|
|
143
138
|
'process.env.hasFooter': JSON.stringify(hasFooter),
|
package/templates/mdx.js
CHANGED
|
@@ -121,15 +121,7 @@ export const MDXTemplate = ({
|
|
|
121
121
|
id,
|
|
122
122
|
componentsData
|
|
123
123
|
}) => {
|
|
124
|
-
|
|
125
|
-
const tabNames = sources.reduce((acc, curSrc) => {
|
|
126
|
-
const { source, tabName } = curSrc;
|
|
127
|
-
// use tabName for tab name if present, otherwise default to source
|
|
128
|
-
const tabLinkText = tabName || capitalize(source.replace('html', 'HTML').replace(/-/g, ' '));
|
|
129
|
-
acc[source] = tabLinkText;
|
|
130
|
-
return acc;
|
|
131
|
-
}, {});
|
|
132
|
-
const sourceKeys = Object.keys(tabNames);
|
|
124
|
+
const sourceKeys = sources.map(v => v.source);
|
|
133
125
|
const isSinglePage = sourceKeys.length === 1;
|
|
134
126
|
|
|
135
127
|
let isDevResources, isComponent, isExtension, isChart, isDemo, isLayout, isUtility;
|
|
@@ -231,7 +223,7 @@ export const MDXTemplate = ({
|
|
|
231
223
|
onClick={() => trackEvent('tab_click', 'click_event', source.toUpperCase())}
|
|
232
224
|
>
|
|
233
225
|
<Link className="pf-c-tabs__link" to={`${path}${index === 0 ? '' : '/' + source}`}>
|
|
234
|
-
{
|
|
226
|
+
{capitalize(source.replace('html', 'HTML').replace(/-/g, ' '))}
|
|
235
227
|
</Link>
|
|
236
228
|
</li>
|
|
237
229
|
))}
|
|
@@ -7,8 +7,6 @@ section: extensions
|
|
|
7
7
|
id: My extension
|
|
8
8
|
# Tab (react | react-demos | html | html-demos | design-guidelines | accessibility)
|
|
9
9
|
source: design-guidelines
|
|
10
|
-
# Optional custom text to display in tab in place of source
|
|
11
|
-
tabName: My custom tab-name
|
|
12
10
|
---
|
|
13
11
|
|
|
14
12
|
Design guidelines intro
|
|
@@ -7,8 +7,6 @@ section: extensions
|
|
|
7
7
|
id: My extension
|
|
8
8
|
# Tab (react | react-demos | html | html-demos | design-guidelines | accessibility)
|
|
9
9
|
source: react
|
|
10
|
-
# Optional custom text to display in tab in place of source
|
|
11
|
-
tabName: My custom tab-name
|
|
12
10
|
# If you use typescript, the name of the interface to display props for
|
|
13
11
|
# These are found through the sourceProps function provdided in patternfly-docs.source.js
|
|
14
12
|
# Can also pass object { component: string, source: string } allowing to specify the source
|
package/versions.json
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"Releases": [
|
|
3
|
+
{
|
|
4
|
+
"name": "alphas",
|
|
5
|
+
"date": "2022-02-08",
|
|
6
|
+
"latest": true,
|
|
7
|
+
"versions": {
|
|
8
|
+
"@patternfly/patternfly": "5.0.0-alpha.13",
|
|
9
|
+
"@patternfly/react-catalog-view-extension": "4.95.1",
|
|
10
|
+
"@patternfly/react-charts": "7.0.0-alpha.3",
|
|
11
|
+
"@patternfly/react-code-editor": "5.0.0-alpha.7",
|
|
12
|
+
"@patternfly/react-core": "5.0.0-alpha.7",
|
|
13
|
+
"@patternfly/react-drag-drop": "5.0.0-alpha.0",
|
|
14
|
+
"@patternfly/react-icons": "5.0.0-alpha.2",
|
|
15
|
+
"@patternfly/react-inline-edit-extension": "4.86.118",
|
|
16
|
+
"@patternfly/react-log-viewer": "4.87.100",
|
|
17
|
+
"@patternfly/react-styles": "5.0.0-alpha.2",
|
|
18
|
+
"@patternfly/react-table": "5.0.0-alpha.7",
|
|
19
|
+
"@patternfly/react-tokens": "5.0.0-alpha.2",
|
|
20
|
+
"@patternfly/react-topology": "4.91.27",
|
|
21
|
+
"@patternfly/react-virtualized-extension": "4.88.113"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
3
24
|
{
|
|
4
25
|
"name": "2023.01",
|
|
5
26
|
"date": "2022-01-31",
|