@patternfly/documentation-framework 6.49.7 → 6.51.0
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 +22 -0
- package/package.json +7 -7
- package/routes.js +31 -0
- package/scripts/md/parseMD.js +2 -1
- package/templates/mdx.js +6 -6
- package/versions.json +28 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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.51.0 (2026-08-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **misc:** separate CSSVariables into its own tab ([#5046](https://github.com/patternfly/patternfly-org/issues/5046)) ([0ecb4d3](https://github.com/patternfly/patternfly-org/commit/0ecb4d34d9f8100c1088936b765f98ecca9b94b6))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# 6.50.0 (2026-08-03)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **ver:** bump PatternFly packages to 6.6.1 and fix export issue with Astro build. ([#5093](https://github.com/patternfly/patternfly-org/issues/5093)) ([89523fb](https://github.com/patternfly/patternfly-org/commit/89523fb9d16968340f89be200985c74b2d1a1214))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## 6.49.7 (2026-08-03)
|
|
7
29
|
|
|
8
30
|
**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.
|
|
4
|
+
"version": "6.51.0",
|
|
5
5
|
"author": "Red Hat",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bin": {
|
|
@@ -68,11 +68,11 @@
|
|
|
68
68
|
"webpack-merge": "5.10.0"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"@patternfly/patternfly": "^6.6.
|
|
72
|
-
"@patternfly/react-code-editor": "^6.6.
|
|
73
|
-
"@patternfly/react-core": "^6.6.
|
|
74
|
-
"@patternfly/react-icons": "^6.6.
|
|
75
|
-
"@patternfly/react-table": "^6.6.
|
|
71
|
+
"@patternfly/patternfly": "^6.6.1",
|
|
72
|
+
"@patternfly/react-code-editor": "^6.6.1",
|
|
73
|
+
"@patternfly/react-core": "^6.6.1",
|
|
74
|
+
"@patternfly/react-icons": "^6.6.1",
|
|
75
|
+
"@patternfly/react-table": "^6.6.1",
|
|
76
76
|
"react": "^17.0.0 || ^18.0.0",
|
|
77
77
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
78
78
|
},
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"http-cache-semantics": ">=4.1.1",
|
|
93
93
|
"nanoid": "3.3.8"
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "9641204c649b0e5d80b96eee878c15e3f6d1dd5d"
|
|
96
96
|
}
|
package/routes.js
CHANGED
|
@@ -82,6 +82,7 @@ const sourceOrder = {
|
|
|
82
82
|
'react-deprecated': 2.1,
|
|
83
83
|
html: 3,
|
|
84
84
|
'html-demos': 4,
|
|
85
|
+
'css-variables': 5,
|
|
85
86
|
'design-guidelines': 99,
|
|
86
87
|
'accessibility': 100,
|
|
87
88
|
'upgrade-guide': 101,
|
|
@@ -117,6 +118,29 @@ const getDefaultDesignGuidelines = ({ id, section, slug, title }) => {
|
|
|
117
118
|
return pageData;
|
|
118
119
|
}
|
|
119
120
|
|
|
121
|
+
const getCssVariablesTab = ({ id, section, subsection, title, cssPrefix }) => {
|
|
122
|
+
const source = 'css-variables';
|
|
123
|
+
const slug = makeSlug(source, section, id, false, subsection);
|
|
124
|
+
const pageData = {
|
|
125
|
+
id,
|
|
126
|
+
section,
|
|
127
|
+
subsection,
|
|
128
|
+
slug,
|
|
129
|
+
source,
|
|
130
|
+
tabName: 'CSS variables',
|
|
131
|
+
title,
|
|
132
|
+
cssPrefix,
|
|
133
|
+
toc: [{ text: 'CSS variables', id: 'css-variables' }]
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
const Component = () => null;
|
|
137
|
+
Component.displayName = 'CssVariablesTab';
|
|
138
|
+
Component.getPageData = () => pageData;
|
|
139
|
+
pageData.Component = Component;
|
|
140
|
+
|
|
141
|
+
return pageData;
|
|
142
|
+
};
|
|
143
|
+
|
|
120
144
|
Object.entries(groupedRoutes)
|
|
121
145
|
.forEach(([_section, ids]) => {
|
|
122
146
|
Object.values(ids).forEach(pageData => {
|
|
@@ -138,6 +162,13 @@ Object.entries(groupedRoutes)
|
|
|
138
162
|
pageDataObj.sources.forEach(({ slug }) => {
|
|
139
163
|
delete routes[slug];
|
|
140
164
|
});
|
|
165
|
+
|
|
166
|
+
const cssPrefix = [...new Set(pageDataObj.sources.flatMap((source) => source.cssPrefix || []))];
|
|
167
|
+
if (cssPrefix.length > 0 && !pageDataObj.sources.some((source) => source.source === 'css-variables')) {
|
|
168
|
+
const { id, section, subsection, title } = pageDataObj;
|
|
169
|
+
pageDataObj.sources.push(getCssVariablesTab({ id, section, subsection, title, cssPrefix }));
|
|
170
|
+
}
|
|
171
|
+
|
|
141
172
|
// Sort sources for tabs
|
|
142
173
|
pageDataObj.sources = pageDataObj.sources.sort(sortSources);
|
|
143
174
|
// Add grouped route
|
package/scripts/md/parseMD.js
CHANGED
|
@@ -327,7 +327,8 @@ function sourceMDFile(file, source, buildMode, options) {
|
|
|
327
327
|
...(pageData.template && { template: pageData.template }),
|
|
328
328
|
...(pageData.demo && { demo: pageData.demo }),
|
|
329
329
|
...(pageData.sortValue && { sortValue: pageData.sortValue }),
|
|
330
|
-
...(pageData.subsectionSortValue && { subsectionSortValue: pageData.subsectionSortValue })
|
|
330
|
+
...(pageData.subsectionSortValue && { subsectionSortValue: pageData.subsectionSortValue }),
|
|
331
|
+
...(pageData.cssPrefix && { cssPrefix: pageData.cssPrefix })
|
|
331
332
|
};
|
|
332
333
|
}
|
|
333
334
|
}
|
package/templates/mdx.js
CHANGED
|
@@ -68,10 +68,10 @@ const MDXChildTemplate = ({ Component, source, toc = [], index = 0, id }) => {
|
|
|
68
68
|
toc.push({ text: propsTitle });
|
|
69
69
|
toc.push(propComponents.map((propComponent) => ({ text: propComponent.name })));
|
|
70
70
|
}
|
|
71
|
-
if (cssVarsTitle && !toc.find((item) => item.text === cssVarsTitle)) {
|
|
71
|
+
if (source === 'css-variables' && cssVarsTitle && !toc.find((item) => item.text === cssVarsTitle)) {
|
|
72
72
|
toc.push({ text: cssVarsTitle });
|
|
73
73
|
if (cssPrefix.length > 1) {
|
|
74
|
-
toc.push(cssPrefix.map((
|
|
74
|
+
toc.push(cssPrefix.map((prefix) => ({ text: `Prefixed with '${prefix}'` })));
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
// We don't add `id`s in anchor-header.js for items where id === slugger(text)
|
|
@@ -138,8 +138,8 @@ const MDXChildTemplate = ({ Component, source, toc = [], index = 0, id }) => {
|
|
|
138
138
|
{toc.length > 1 && <TableOfContents items={toc} />}
|
|
139
139
|
<Stack hasGutter className={(source !== 'landing-pages' && 'ws-example-page-wrapper')}>
|
|
140
140
|
{InlineAlerts}
|
|
141
|
-
<Component />
|
|
142
|
-
{functionDocumentation.length > 0 && (
|
|
141
|
+
{source !== 'css-variables' && <Component />}
|
|
142
|
+
{source !== 'css-variables' && functionDocumentation.length > 0 && (
|
|
143
143
|
<StackItem>
|
|
144
144
|
<AutoLinkHeader headingLevel="h2" className="pf-v6-c-content--h2" id="functions">
|
|
145
145
|
Functions
|
|
@@ -147,7 +147,7 @@ const MDXChildTemplate = ({ Component, source, toc = [], index = 0, id }) => {
|
|
|
147
147
|
<FunctionsTable functionDescriptions={functionDocumentation} />
|
|
148
148
|
</StackItem>
|
|
149
149
|
)}
|
|
150
|
-
{propsTitle && (
|
|
150
|
+
{source !== 'css-variables' && propsTitle && (
|
|
151
151
|
<StackItem>
|
|
152
152
|
<AutoLinkHeader headingLevel="h2" className="pf-v6-c-content--h2" id="props">
|
|
153
153
|
{propsTitle}
|
|
@@ -163,7 +163,7 @@ const MDXChildTemplate = ({ Component, source, toc = [], index = 0, id }) => {
|
|
|
163
163
|
))}
|
|
164
164
|
</StackItem>
|
|
165
165
|
)}
|
|
166
|
-
{cssPrefix.length > 0 && (
|
|
166
|
+
{source === 'css-variables' && cssPrefix.length > 0 && (
|
|
167
167
|
<StackItem>
|
|
168
168
|
<AutoLinkHeader headingLevel="h2" className="pf-v6-c-content--h2" id="css-variables">
|
|
169
169
|
{cssVarsTitle}
|
package/versions.json
CHANGED
|
@@ -1,9 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"Releases": [
|
|
3
|
+
{
|
|
4
|
+
"name": "6.6.1",
|
|
5
|
+
"date": "2026-08-03",
|
|
6
|
+
"latest": true,
|
|
7
|
+
"versions": {
|
|
8
|
+
"@patternfly/chatbot": "6.7.1",
|
|
9
|
+
"@patternfly/patternfly": "6.6.1",
|
|
10
|
+
"@patternfly/quickstarts": "6.6.0",
|
|
11
|
+
"@patternfly/react-catalog-view-extension": "6.4.0",
|
|
12
|
+
"@patternfly/react-charts": "8.6.1",
|
|
13
|
+
"@patternfly/react-code-editor": "6.6.1",
|
|
14
|
+
"@patternfly/react-component-groups": "6.5.0",
|
|
15
|
+
"@patternfly/react-console": "6.3.0",
|
|
16
|
+
"@patternfly/react-core": "6.6.1",
|
|
17
|
+
"@patternfly/react-data-view": "6.5.0",
|
|
18
|
+
"@patternfly/react-drag-drop": "6.6.1",
|
|
19
|
+
"@patternfly/react-icons": "6.6.1",
|
|
20
|
+
"@patternfly/react-log-viewer": "6.5.0",
|
|
21
|
+
"@patternfly/react-styles": "6.6.1",
|
|
22
|
+
"@patternfly/react-table": "6.6.1",
|
|
23
|
+
"@patternfly/react-templates": "6.6.1",
|
|
24
|
+
"@patternfly/react-tokens": "6.6.1",
|
|
25
|
+
"@patternfly/react-topology": "6.6.0",
|
|
26
|
+
"@patternfly/react-user-feedback": "6.4.0",
|
|
27
|
+
"@patternfly/react-virtualized-extension": "6.2.0"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
3
30
|
{
|
|
4
31
|
"name": "6.6.0",
|
|
5
32
|
"date": "2026-07-01",
|
|
6
|
-
"
|
|
33
|
+
"hidden": true,
|
|
7
34
|
"versions": {
|
|
8
35
|
"@patternfly/chatbot": "6.7.1",
|
|
9
36
|
"@patternfly/patternfly": "6.6.0",
|