@patternfly/documentation-framework 6.0.0-alpha.12 → 6.0.0-alpha.121

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.
Files changed (47) hide show
  1. package/CHANGELOG.md +1501 -0
  2. package/README.md +5 -76
  3. package/app.js +2 -5
  4. package/components/autoLinkHeader/autoLinkHeader.css +2 -2
  5. package/components/autoLinkHeader/autoLinkHeader.js +9 -19
  6. package/components/cssVariables/cssVariables.css +9 -11
  7. package/components/cssVariables/cssVariables.js +19 -32
  8. package/components/example/example.css +6 -50
  9. package/components/example/example.js +149 -78
  10. package/components/example/exampleToolbar.js +3 -2
  11. package/components/footer/RHLogoDark.png +0 -0
  12. package/components/footer/footer.css +31 -93
  13. package/components/footer/footer.js +167 -96
  14. package/components/gdprBanner/gdprBanner.css +0 -3
  15. package/components/gdprBanner/gdprBanner.js +22 -16
  16. package/components/inlineAlert/inlineAlert.js +1 -1
  17. package/components/link/link.js +23 -18
  18. package/components/propsTable/propsTable.js +14 -10
  19. package/components/sectionGallery/TextSummary.js +10 -10
  20. package/components/sectionGallery/sectionDataListLayout.js +89 -43
  21. package/components/sectionGallery/sectionGallery.css +3 -36
  22. package/components/sectionGallery/sectionGalleryLayout.js +73 -23
  23. package/components/sectionGallery/sectionGalleryToolbar.js +48 -12
  24. package/components/sectionGallery/sectionGalleryWrapper.js +69 -31
  25. package/components/sideNav/sideNav.js +2 -3
  26. package/components/tableOfContents/tableOfContents.css +21 -30
  27. package/components/tableOfContents/tableOfContents.js +58 -28
  28. package/layouts/sideNavLayout/sideNavLayout.css +0 -35
  29. package/layouts/sideNavLayout/sideNavLayout.js +177 -92
  30. package/package.json +14 -21
  31. package/pages/404/404.css +2 -2
  32. package/pages/404/index.js +23 -36
  33. package/routes.js +3 -1
  34. package/scripts/md/anchor-header.js +1 -1
  35. package/scripts/md/parseMD.js +23 -21
  36. package/scripts/md/styled-tags.js +22 -14
  37. package/scripts/md/typecheck.js +5 -0
  38. package/scripts/webpack/prerender.js +2 -1
  39. package/scripts/webpack/webpack.base.config.js +7 -18
  40. package/scripts/writeScreenshots.js +1 -1
  41. package/templates/mdx.css +11 -288
  42. package/templates/mdx.js +36 -39
  43. package/templates/patternfly-docs/patternfly-docs.source.js +8 -8
  44. package/versions.json +187 -17
  45. package/components/sideNav/sideNav.css +0 -21
  46. package/pages/global-css-variables.md +0 -109
  47. package/pages/img/component-variable-mapping.png +0 -0
@@ -4,7 +4,6 @@ import {
4
4
  Page,
5
5
  PageSidebar,
6
6
  PageSidebarBody,
7
- Brand,
8
7
  Dropdown,
9
8
  DropdownItem,
10
9
  DropdownGroup,
@@ -26,7 +25,8 @@ import {
26
25
  Switch,
27
26
  SearchInput,
28
27
  ToggleGroup,
29
- ToggleGroupItem
28
+ ToggleGroupItem,
29
+ MastheadLogo,
30
30
  } from '@patternfly/react-core';
31
31
  import BarsIcon from '@patternfly/react-icons/dist/esm/icons/bars-icon';
32
32
  import GithubIcon from '@patternfly/react-icons/dist/esm/icons/github-icon';
@@ -34,7 +34,7 @@ import MoonIcon from '@patternfly/react-icons/dist/esm/icons/moon-icon';
34
34
  import SunIcon from '@patternfly/react-icons/dist/esm/icons/sun-icon';
35
35
  import { SideNav, TopNav, GdprBanner } from '../../components';
36
36
  import staticVersions from '../../versions.json';
37
- import v5Logo from '../PF-HorizontalLogo-Reverse.svg';
37
+ import { Footer } from '@patternfly/documentation-framework/components';
38
38
 
39
39
  export const RtlContext = createContext(false);
40
40
 
@@ -46,43 +46,51 @@ const HeaderTools = ({
46
46
  hasRTLSwitcher,
47
47
  topNavItems,
48
48
  isRTL,
49
- setIsRTL
49
+ setIsRTL,
50
+ isDarkTheme,
51
+ setIsDarkTheme,
50
52
  }) => {
51
- const initialVersion = staticVersions.Releases.find(release => release.latest);
52
- const latestVersion = versions.Releases.find(version => version.latest);
53
- const previousReleases = Object.values(versions.Releases).filter(version => !version.hidden && !version.latest);
53
+ const latestVersion = versions.Releases.find((version) => version.latest);
54
+ const previousReleases = Object.values(versions.Releases).filter(
55
+ (version) => !version.hidden && !version.latest
56
+ );
54
57
  const hasSearch = algolia;
55
58
  const [isDropdownOpen, setDropdownOpen] = useState(false);
56
59
  const [searchValue, setSearchValue] = React.useState('');
57
60
  const [isSearchExpanded, setIsSearchExpanded] = React.useState(false);
58
- const [isDarkTheme, setIsDarkTheme] = React.useState(false);
59
61
 
60
62
  const getDropdownItem = (version, isLatest = false) => (
61
- <DropdownItem itemId={version.name} key={version.name} to={isLatest ? '/' : `/${version.name}`}>
62
- {`Release ${version.name}`}
63
+ <DropdownItem
64
+ itemId={version.name}
65
+ key={version.name}
66
+ to={isLatest ? '/' : `/${version.name}`}
67
+ >
68
+ {`Current ${version.name}`}
63
69
  </DropdownItem>
64
70
  );
65
71
 
66
72
  const onChange = (_evt, value) => {
67
- setSearchValue(value);
73
+ setSearchValue(value);
68
74
  };
69
75
 
70
- const onToggleExpand = (_evt, isSearchExpanded) => {
71
- setIsSearchExpanded(!isSearchExpanded);
72
- };
76
+ const onToggleExpand = (_evt, isSearchExpanded) => {
77
+ setIsSearchExpanded(!isSearchExpanded);
78
+ };
73
79
 
74
80
  const toggleDarkTheme = (_evt, selected) => {
75
- const darkThemeToggleClicked = !selected === isDarkTheme
76
- document.querySelector('html').classList.toggle('pf-v5-theme-dark', darkThemeToggleClicked);
81
+ const darkThemeToggleClicked = !selected === isDarkTheme;
82
+ document
83
+ .querySelector('html')
84
+ .classList.toggle('pf-v6-theme-dark', darkThemeToggleClicked);
77
85
  setIsDarkTheme(darkThemeToggleClicked);
78
86
  };
79
87
 
80
88
  useEffect(() => {
81
89
  // reattach algolia to input each time search is expanded
82
90
  if (hasSearch && isSearchExpanded) {
83
- attachDocSearch(algolia, '.ws-global-search .pf-v5-c-text-input-group__text-input', 1000);
91
+ attachDocSearch(algolia, '.ws-global-search .pf-v6-c-text-input-group__text-input', 1000);
84
92
  }
85
- }, [isSearchExpanded])
93
+ }, [isSearchExpanded])
86
94
 
87
95
  return (
88
96
  <Toolbar isFullHeight>
@@ -92,21 +100,33 @@ const HeaderTools = ({
92
100
  <TopNav navItems={topNavItems} />
93
101
  </ToolbarItem>
94
102
  )}
95
- <ToolbarGroup
96
- align={{ default: 'alignRight' }}
97
- spaceItems={{ default: 'spacerNone', md: 'spacerMd' }}
98
- >
103
+ <ToolbarGroup align={{ default: 'alignEnd' }}>
99
104
  {hasDarkThemeSwitcher && (
100
105
  <ToolbarItem>
101
- <ToggleGroup aria-label="Dark theme toggle group">
102
- <ToggleGroupItem aria-label="light theme toggle" icon={<Icon size="md"><SunIcon /></Icon>} isSelected={!isDarkTheme} onChange={toggleDarkTheme} />
103
- <ToggleGroupItem aria-label="dark theme toggle" icon={<Icon size="md"><MoonIcon /></Icon>} isSelected={isDarkTheme} onChange={toggleDarkTheme} />
104
- </ToggleGroup>
106
+ <ToggleGroup aria-label="Dark theme toggle group">
107
+ <ToggleGroupItem
108
+ aria-label="light theme toggle"
109
+ icon={<SunIcon />}
110
+ isSelected={!isDarkTheme}
111
+ onChange={toggleDarkTheme}
112
+ />
113
+ <ToggleGroupItem
114
+ aria-label="dark theme toggle"
115
+ icon={<MoonIcon />}
116
+ isSelected={isDarkTheme}
117
+ onChange={toggleDarkTheme}
118
+ />
119
+ </ToggleGroup>
105
120
  </ToolbarItem>
106
121
  )}
107
122
  {hasRTLSwitcher && (
108
123
  <ToolbarItem>
109
- <Switch id="ws-rtl-switch" label={'RTL'} defaultChecked={isRTL} onChange={() => setIsRTL(isRTL => !isRTL)} />
124
+ <Switch
125
+ id="ws-rtl-switch"
126
+ label={'RTL'}
127
+ defaultChecked={isRTL}
128
+ onChange={() => setIsRTL((isRTL) => !isRTL)}
129
+ />
110
130
  </ToolbarItem>
111
131
  )}
112
132
  {hasSearch && (
@@ -140,7 +160,6 @@ const HeaderTools = ({
140
160
  isOpen={isDropdownOpen}
141
161
  toggle={(toggleRef) => (
142
162
  <MenuToggle
143
- isFullHeight
144
163
  ref={toggleRef}
145
164
  onClick={() => setDropdownOpen(!isDropdownOpen)}
146
165
  isExpanded={isDropdownOpen}
@@ -155,20 +174,52 @@ const HeaderTools = ({
155
174
  </DropdownList>
156
175
  </DropdownGroup>
157
176
  {previousReleases.length > 0 && (
158
- <DropdownGroup key="Previous releases" label="Previous releases">
177
+ <DropdownGroup
178
+ key="Previous releases"
179
+ label="Previous releases"
180
+ >
159
181
  <DropdownList>
160
182
  {previousReleases
161
- .slice(0,3)
162
- .map(version => getDropdownItem(version))}
183
+ .slice(0, 3)
184
+ .map((version) => getDropdownItem(version))}
163
185
  </DropdownList>
164
186
  </DropdownGroup>
165
187
  )}
166
- <Divider key="divider" className="ws-switcher-divider"/>
167
- <DropdownGroup key="Previous versions" label="Previous versions">
188
+ <Divider key="divider1" />
189
+ <DropdownGroup
190
+ key="Alpha preview version"
191
+ label="Alpha preview version"
192
+ >
193
+ <DropdownList>
194
+ <DropdownItem
195
+ key="PatternFly 6"
196
+ className="ws-patternfly-versions"
197
+ isExternalLink
198
+ to="https://staging.patternfly.org/"
199
+ itemId="patternfly-6"
200
+ >
201
+ PatternFly 6
202
+ </DropdownItem>
203
+ </DropdownList>
204
+ </DropdownGroup>
205
+ <Divider key="divider2" />
206
+ <DropdownGroup
207
+ key="Previous versions"
208
+ label="Previous versions"
209
+ >
168
210
  <DropdownList>
211
+ <DropdownItem
212
+ key="PatternFly 5"
213
+ className="ws-patternfly-versions"
214
+ isExternalLink
215
+ to="https://www.patternfly.org"
216
+ itemId="patternfly-5"
217
+ >
218
+ PatternFly 5
219
+ </DropdownItem>
169
220
  <DropdownItem
170
221
  key="PatternFly 4"
171
- className="ws-patternfly-3"
222
+ className="ws-patternfly-versions"
172
223
  isExternalLink
173
224
  to="http://v4-archive.patternfly.org/v4/"
174
225
  itemId="patternfly-4"
@@ -177,7 +228,7 @@ const HeaderTools = ({
177
228
  </DropdownItem>
178
229
  <DropdownItem
179
230
  key="PatternFly 3"
180
- className="ws-patternfly-3"
231
+ className="ws-patternfly-versions"
181
232
  isExternalLink
182
233
  to="https://pf3.patternfly.org/"
183
234
  itemId="patternfly-3"
@@ -189,10 +240,11 @@ const HeaderTools = ({
189
240
  </Dropdown>
190
241
  </ToolbarItem>
191
242
  )}
192
- </ToolbarGroup></ToolbarContent>
243
+ </ToolbarGroup>
244
+ </ToolbarContent>
193
245
  </Toolbar>
194
246
  );
195
- }
247
+ };
196
248
 
197
249
  // https://github.com/algolia/autocomplete.js#global-options
198
250
  export function attachDocSearch(algolia, inputSelector, timeout) {
@@ -201,18 +253,21 @@ export function attachDocSearch(algolia, inputSelector, timeout) {
201
253
  inputSelector,
202
254
  autocompleteOptions: {
203
255
  hint: false,
204
- appendTo: `.ws-global-search .pf-v5-c-text-input-group`,
256
+ appendTo: `.ws-global-search .pf-v6-c-text-input-group`,
205
257
  },
206
258
  debug: process.env.NODE_ENV !== 'production',
207
- ...algolia
259
+ ...algolia,
208
260
  });
209
- }
210
- else {
261
+ } else {
211
262
  setTimeout(() => attachDocSearch(algolia, inputSelector, timeout), timeout);
212
263
  }
213
264
  }
214
265
 
215
- export const SideNavLayout = ({ children, groupedRoutes, navOpen: navOpenProp }) => {
266
+ export const SideNavLayout = ({
267
+ children,
268
+ groupedRoutes,
269
+ navOpen: navOpenProp,
270
+ }) => {
216
271
  const algolia = process.env.algolia;
217
272
  const hasGdprBanner = process.env.hasGdprBanner;
218
273
  const hasVersionSwitcher = process.env.hasVersionSwitcher;
@@ -225,69 +280,95 @@ export const SideNavLayout = ({ children, groupedRoutes, navOpen: navOpenProp })
225
280
 
226
281
  const [versions, setVersions] = useState({ ...staticVersions });
227
282
  const [isRTL, setIsRTL] = useState(false);
283
+ const [isDarkTheme, setIsDarkTheme] = React.useState(false);
228
284
 
229
285
  useEffect(() => {
230
286
  if (typeof window === 'undefined') {
231
287
  return;
232
288
  }
233
289
  if (hasVersionSwitcher && window.fetch) {
234
- fetch('/versions.json').then(res => {
290
+ fetch('/versions.json').then((res) => {
235
291
  if (res.ok) {
236
- res.json().then(json => setVersions(json));
292
+ res.json().then((json) => setVersions(json));
237
293
  }
238
294
  });
239
295
  }
240
296
  }, []);
241
297
 
242
298
  const SideBar = (
243
- <PageSidebar
244
- className="ws-page-sidebar"
245
- theme="light"
246
- >
299
+ <PageSidebar>
247
300
  <PageSidebarBody>
248
301
  <SideNav navItems={sideNavItems} groupedRoutes={groupedRoutes} />
249
302
  </PageSidebarBody>
250
303
  </PageSidebar>
251
304
  );
252
305
 
253
- const Header = (
254
- <Masthead className="ws-masthead">
255
- <MastheadToggle>
256
- <PageToggleButton variant="plain" aria-label="Global navigation">
257
- <BarsIcon />
258
- </PageToggleButton>
259
- </MastheadToggle>
306
+ const masthead = (
307
+ <Masthead>
260
308
  <MastheadMain>
261
- <MastheadBrand href={prurl || '/'}>
262
- {prnum ? `PR #${prnum}` : (
263
- <svg height="40px" viewBox="0 0 679 158">
264
- <title>PF-HorizontalLogo-Color</title>
265
- <defs>
266
- <linearGradient x1="68%" y1="2.25860997e-13%" x2="32%" y2="100%" id="linearGradient-website-masthead">
267
- <stop stopColor="#2B9AF3" offset="0%"></stop>
268
- <stop stopColor="#73BCF7" stopOpacity="0.502212631" offset="100%"></stop>
269
- </linearGradient>
270
- </defs>
271
- <g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
272
- <g transform="translate(206.000000, 45.750000)" fill="var(--pf-t--global--text--color--regular)" fillRule="nonzero">
273
- <path d="M0,65.25 L0,2.25 L33.21,2.25 C37.35,2.25 41.025,3.135 44.235,4.905 C47.445,6.675 49.98,9.09 51.84,12.15 C53.7,15.21 54.63,18.72 54.63,22.68 C54.63,26.46 53.7,29.865 51.84,32.895 C49.98,35.925 47.43,38.31 44.19,40.05 C40.95,41.79 37.29,42.66 33.21,42.66 L15.48,42.66 L15.48,65.25 L0,65.25 Z M15.48,29.88 L31.41,29.88 C33.69,29.88 35.52,29.22 36.9,27.9 C38.28,26.58 38.97,24.87 38.97,22.77 C38.97,20.61 38.28,18.855 36.9,17.505 C35.52,16.155 33.69,15.48 31.41,15.48 L15.48,15.48 L15.48,29.88 Z"></path>
274
- <path d="M77.04,66.06 C73.68,66.06 70.695,65.43 68.085,64.17 C65.475,62.91 63.435,61.17 61.965,58.95 C60.495,56.73 59.76,54.18 59.76,51.3 C59.76,46.74 61.485,43.215 64.935,40.725 C68.385,38.235 73.2,36.99 79.38,36.99 C83.1,36.99 86.7,37.44 90.18,38.34 L90.18,36 C90.18,31.26 87.15,28.89 81.09,28.89 C77.49,28.89 72.69,30.15 66.69,32.67 L61.47,21.96 C69.15,18.48 76.56,16.74 83.7,16.74 C90.3,16.74 95.43,18.315 99.09,21.465 C102.75,24.615 104.58,29.04 104.58,34.74 L104.58,65.25 L90.18,65.25 L90.18,62.37 C88.26,63.69 86.235,64.635 84.105,65.205 C81.975,65.775 79.62,66.06 77.04,66.06 Z M73.62,51.03 C73.62,52.53 74.28,53.7 75.6,54.54 C76.92,55.38 78.75,55.8 81.09,55.8 C84.69,55.8 87.72,55.05 90.18,53.55 L90.18,47.43 C87.42,46.71 84.54,46.35 81.54,46.35 C79.02,46.35 77.07,46.755 75.69,47.565 C74.31,48.375 73.62,49.53 73.62,51.03 Z"></path>
275
- <path d="M137.25,65.88 C125.73,65.88 119.97,60.84 119.97,50.76 L119.97,29.79 L110.34,29.79 L110.34,17.64 L119.97,17.64 L119.97,5.4 L134.55,2.25 L134.55,17.64 L147.87,17.64 L147.87,29.79 L134.55,29.79 L134.55,47.88 C134.55,49.98 135.015,51.465 135.945,52.335 C136.875,53.205 138.51,53.64 140.85,53.64 C143.01,53.64 145.2,53.31 147.42,52.65 L147.42,64.44 C146.1,64.86 144.42,65.205 142.38,65.475 C140.34,65.745 138.63,65.88 137.25,65.88 Z"></path>
276
- <path d="M177.57,65.88 C166.05,65.88 160.29,60.84 160.29,50.76 L160.29,29.79 L150.66,29.79 L150.66,17.64 L160.29,17.64 L160.29,5.4 L174.87,2.25 L174.87,17.64 L188.19,17.64 L188.19,29.79 L174.87,29.79 L174.87,47.88 C174.87,49.98 175.335,51.465 176.265,52.335 C177.195,53.205 178.83,53.64 181.17,53.64 C183.33,53.64 185.52,53.31 187.74,52.65 L187.74,64.44 C186.42,64.86 184.74,65.205 182.7,65.475 C180.66,65.745 178.95,65.88 177.57,65.88 Z"></path>
277
- <path d="M217.62,66.15 C212.76,66.15 208.365,65.055 204.435,62.865 C200.505,60.675 197.4,57.72 195.12,54 C192.84,50.28 191.7,46.11 191.7,41.49 C191.7,36.87 192.795,32.7 194.985,28.98 C197.175,25.26 200.16,22.305 203.94,20.115 C207.72,17.925 211.92,16.83 216.54,16.83 C221.22,16.83 225.36,17.955 228.96,20.205 C232.56,22.455 235.395,25.53 237.465,29.43 C239.535,33.33 240.57,37.8 240.57,42.84 L240.57,46.44 L206.64,46.44 C207.6,48.66 209.1,50.475 211.14,51.885 C213.18,53.295 215.58,54 218.34,54 C222.42,54 225.6,52.8 227.88,50.4 L237.51,58.95 C234.51,61.47 231.435,63.3 228.285,64.44 C225.135,65.58 221.58,66.15 217.62,66.15 Z M206.37,36.27 L226.26,36.27 C225.48,33.99 224.205,32.16 222.435,30.78 C220.665,29.4 218.61,28.71 216.27,28.71 C213.87,28.71 211.8,29.37 210.06,30.69 C208.32,32.01 207.09,33.87 206.37,36.27 Z"></path>
278
- <path d="M247.41,65.25 L247.41,17.64 L261.99,17.64 L261.99,22.41 C265.23,18.51 269.4,16.56 274.5,16.56 C277.08,16.62 278.91,17.01 279.99,17.73 L279.99,30.42 C277.95,29.46 275.64,28.98 273.06,28.98 C270.78,28.98 268.665,29.505 266.715,30.555 C264.765,31.605 263.19,33.09 261.99,35.01 L261.99,65.25 L247.41,65.25 Z"></path>
279
- <path d="M286.29,65.25 L286.29,17.64 L300.87,17.64 L300.87,20.88 C304.47,18.12 308.73,16.74 313.65,16.74 C317.37,16.74 320.655,17.55 323.505,19.17 C326.355,20.79 328.59,23.04 330.21,25.92 C331.83,28.8 332.64,32.13 332.64,35.91 L332.64,65.25 L318.06,65.25 L318.06,37.89 C318.06,35.25 317.28,33.15 315.72,31.59 C314.16,30.03 312.06,29.25 309.42,29.25 C305.76,29.25 302.91,30.51 300.87,33.03 L300.87,65.25 L286.29,65.25 Z"></path>
280
- <polygon points="342 65.25 342 2.25 392.04 2.25 392.04 15.66 357.48 15.66 357.48 27.45 380.52 27.45 380.52 40.41 357.48 40.41 357.48 65.25"></polygon>
281
- <polygon points="399.96 65.25 399.96 2.25 414.54 0 414.54 65.25"></polygon>
282
- <path d="M429.21,84.69 C428.07,84.69 426.96,84.645 425.88,84.555 C424.8,84.465 423.9,84.33 423.18,84.15 L423.18,71.73 C424.38,71.97 425.88,72.09 427.68,72.09 C432.36,72.09 435.51,70.05 437.13,65.97 L437.13,65.88 L418.86,17.64 L434.97,17.64 L445.5,47.61 L457.74,17.64 L473.49,17.64 L452.16,67.68 C450.42,71.82 448.5,75.135 446.4,77.625 C444.3,80.115 441.87,81.915 439.11,83.025 C436.35,84.135 433.05,84.69 429.21,84.69 Z"></path>
283
- </g>
284
- <g transform="translate(0.000000, 0.000000)">
285
- <path d="M61.826087,0 L158,0 L158,96.173913 L147.695652,96.173913 C100.271201,96.173913 61.826087,57.7287992 61.826087,10.3043478 L61.826087,0 L61.826087,0 Z" fill='var(--pf-t--color--blue--50)'></path>
286
- <path d="M158,3.43478261 L65.2608696,158 L138,158 C149.045695,158 158,149.045695 158,138 L158,3.43478261 L158,3.43478261 Z" fill="url(#linearGradient-website-masthead)"></path>
287
- <path d="M123.652174,-30.9130435 L30.9130435,123.652174 L103.652174,123.652174 C114.697869,123.652174 123.652174,114.697869 123.652174,103.652174 L123.652174,-30.9130435 L123.652174,-30.9130435 Z" fill="url(#linearGradient-website-masthead)" transform="translate(77.282609, 46.369565) scale(1, -1) rotate(90.000000) translate(-77.282609, -46.369565) "></path>
309
+ <MastheadToggle>
310
+ <PageToggleButton variant="plain" aria-label="Global navigation">
311
+ <BarsIcon />
312
+ </PageToggleButton>
313
+ </MastheadToggle>
314
+ <MastheadBrand>
315
+ {prnum ? (
316
+ `PR #${prnum}`
317
+ ) : (
318
+ <MastheadLogo href={prurl || '/'}>
319
+ <svg height="40px" viewBox="0 0 679 158">
320
+ <title>PF-HorizontalLogo-Color</title>
321
+ <defs>
322
+ <linearGradient
323
+ x1="68%"
324
+ y1="2.25860997e-13%"
325
+ x2="32%"
326
+ y2="100%"
327
+ id="linearGradient-website-masthead"
328
+ >
329
+ <stop stopColor="#2B9AF3" offset="0%"></stop>
330
+ <stop
331
+ stopColor="#73BCF7"
332
+ stopOpacity="0.502212631"
333
+ offset="100%"
334
+ ></stop>
335
+ </linearGradient>
336
+ </defs>
337
+ <g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
338
+ <g
339
+ transform="translate(206.000000, 45.750000)"
340
+ fill="var(--pf-t--global--text--color--regular)"
341
+ fillRule="nonzero"
342
+ >
343
+ <path d="M0,65.25 L0,2.25 L33.21,2.25 C37.35,2.25 41.025,3.135 44.235,4.905 C47.445,6.675 49.98,9.09 51.84,12.15 C53.7,15.21 54.63,18.72 54.63,22.68 C54.63,26.46 53.7,29.865 51.84,32.895 C49.98,35.925 47.43,38.31 44.19,40.05 C40.95,41.79 37.29,42.66 33.21,42.66 L15.48,42.66 L15.48,65.25 L0,65.25 Z M15.48,29.88 L31.41,29.88 C33.69,29.88 35.52,29.22 36.9,27.9 C38.28,26.58 38.97,24.87 38.97,22.77 C38.97,20.61 38.28,18.855 36.9,17.505 C35.52,16.155 33.69,15.48 31.41,15.48 L15.48,15.48 L15.48,29.88 Z"></path>
344
+ <path d="M77.04,66.06 C73.68,66.06 70.695,65.43 68.085,64.17 C65.475,62.91 63.435,61.17 61.965,58.95 C60.495,56.73 59.76,54.18 59.76,51.3 C59.76,46.74 61.485,43.215 64.935,40.725 C68.385,38.235 73.2,36.99 79.38,36.99 C83.1,36.99 86.7,37.44 90.18,38.34 L90.18,36 C90.18,31.26 87.15,28.89 81.09,28.89 C77.49,28.89 72.69,30.15 66.69,32.67 L61.47,21.96 C69.15,18.48 76.56,16.74 83.7,16.74 C90.3,16.74 95.43,18.315 99.09,21.465 C102.75,24.615 104.58,29.04 104.58,34.74 L104.58,65.25 L90.18,65.25 L90.18,62.37 C88.26,63.69 86.235,64.635 84.105,65.205 C81.975,65.775 79.62,66.06 77.04,66.06 Z M73.62,51.03 C73.62,52.53 74.28,53.7 75.6,54.54 C76.92,55.38 78.75,55.8 81.09,55.8 C84.69,55.8 87.72,55.05 90.18,53.55 L90.18,47.43 C87.42,46.71 84.54,46.35 81.54,46.35 C79.02,46.35 77.07,46.755 75.69,47.565 C74.31,48.375 73.62,49.53 73.62,51.03 Z"></path>
345
+ <path d="M137.25,65.88 C125.73,65.88 119.97,60.84 119.97,50.76 L119.97,29.79 L110.34,29.79 L110.34,17.64 L119.97,17.64 L119.97,5.4 L134.55,2.25 L134.55,17.64 L147.87,17.64 L147.87,29.79 L134.55,29.79 L134.55,47.88 C134.55,49.98 135.015,51.465 135.945,52.335 C136.875,53.205 138.51,53.64 140.85,53.64 C143.01,53.64 145.2,53.31 147.42,52.65 L147.42,64.44 C146.1,64.86 144.42,65.205 142.38,65.475 C140.34,65.745 138.63,65.88 137.25,65.88 Z"></path>
346
+ <path d="M177.57,65.88 C166.05,65.88 160.29,60.84 160.29,50.76 L160.29,29.79 L150.66,29.79 L150.66,17.64 L160.29,17.64 L160.29,5.4 L174.87,2.25 L174.87,17.64 L188.19,17.64 L188.19,29.79 L174.87,29.79 L174.87,47.88 C174.87,49.98 175.335,51.465 176.265,52.335 C177.195,53.205 178.83,53.64 181.17,53.64 C183.33,53.64 185.52,53.31 187.74,52.65 L187.74,64.44 C186.42,64.86 184.74,65.205 182.7,65.475 C180.66,65.745 178.95,65.88 177.57,65.88 Z"></path>
347
+ <path d="M217.62,66.15 C212.76,66.15 208.365,65.055 204.435,62.865 C200.505,60.675 197.4,57.72 195.12,54 C192.84,50.28 191.7,46.11 191.7,41.49 C191.7,36.87 192.795,32.7 194.985,28.98 C197.175,25.26 200.16,22.305 203.94,20.115 C207.72,17.925 211.92,16.83 216.54,16.83 C221.22,16.83 225.36,17.955 228.96,20.205 C232.56,22.455 235.395,25.53 237.465,29.43 C239.535,33.33 240.57,37.8 240.57,42.84 L240.57,46.44 L206.64,46.44 C207.6,48.66 209.1,50.475 211.14,51.885 C213.18,53.295 215.58,54 218.34,54 C222.42,54 225.6,52.8 227.88,50.4 L237.51,58.95 C234.51,61.47 231.435,63.3 228.285,64.44 C225.135,65.58 221.58,66.15 217.62,66.15 Z M206.37,36.27 L226.26,36.27 C225.48,33.99 224.205,32.16 222.435,30.78 C220.665,29.4 218.61,28.71 216.27,28.71 C213.87,28.71 211.8,29.37 210.06,30.69 C208.32,32.01 207.09,33.87 206.37,36.27 Z"></path>
348
+ <path d="M247.41,65.25 L247.41,17.64 L261.99,17.64 L261.99,22.41 C265.23,18.51 269.4,16.56 274.5,16.56 C277.08,16.62 278.91,17.01 279.99,17.73 L279.99,30.42 C277.95,29.46 275.64,28.98 273.06,28.98 C270.78,28.98 268.665,29.505 266.715,30.555 C264.765,31.605 263.19,33.09 261.99,35.01 L261.99,65.25 L247.41,65.25 Z"></path>
349
+ <path d="M286.29,65.25 L286.29,17.64 L300.87,17.64 L300.87,20.88 C304.47,18.12 308.73,16.74 313.65,16.74 C317.37,16.74 320.655,17.55 323.505,19.17 C326.355,20.79 328.59,23.04 330.21,25.92 C331.83,28.8 332.64,32.13 332.64,35.91 L332.64,65.25 L318.06,65.25 L318.06,37.89 C318.06,35.25 317.28,33.15 315.72,31.59 C314.16,30.03 312.06,29.25 309.42,29.25 C305.76,29.25 302.91,30.51 300.87,33.03 L300.87,65.25 L286.29,65.25 Z"></path>
350
+ <polygon points="342 65.25 342 2.25 392.04 2.25 392.04 15.66 357.48 15.66 357.48 27.45 380.52 27.45 380.52 40.41 357.48 40.41 357.48 65.25"></polygon>
351
+ <polygon points="399.96 65.25 399.96 2.25 414.54 0 414.54 65.25"></polygon>
352
+ <path d="M429.21,84.69 C428.07,84.69 426.96,84.645 425.88,84.555 C424.8,84.465 423.9,84.33 423.18,84.15 L423.18,71.73 C424.38,71.97 425.88,72.09 427.68,72.09 C432.36,72.09 435.51,70.05 437.13,65.97 L437.13,65.88 L418.86,17.64 L434.97,17.64 L445.5,47.61 L457.74,17.64 L473.49,17.64 L452.16,67.68 C450.42,71.82 448.5,75.135 446.4,77.625 C444.3,80.115 441.87,81.915 439.11,83.025 C436.35,84.135 433.05,84.69 429.21,84.69 Z"></path>
353
+ </g>
354
+ <g transform="translate(0.000000, 0.000000)">
355
+ <path
356
+ d="M61.826087,0 L158,0 L158,96.173913 L147.695652,96.173913 C100.271201,96.173913 61.826087,57.7287992 61.826087,10.3043478 L61.826087,0 L61.826087,0 Z"
357
+ fill="var(--pf-t--color--blue--50)"
358
+ ></path>
359
+ <path
360
+ d="M158,3.43478261 L65.2608696,158 L138,158 C149.045695,158 158,149.045695 158,138 L158,3.43478261 L158,3.43478261 Z"
361
+ fill="url(#linearGradient-website-masthead)"
362
+ ></path>
363
+ <path
364
+ d="M123.652174,-30.9130435 L30.9130435,123.652174 L103.652174,123.652174 C114.697869,123.652174 123.652174,114.697869 123.652174,103.652174 L123.652174,-30.9130435 L123.652174,-30.9130435 Z"
365
+ fill="url(#linearGradient-website-masthead)"
366
+ transform="translate(77.282609, 46.369565) scale(1, -1) rotate(90.000000) translate(-77.282609, -46.369565) "
367
+ ></path>
368
+ </g>
288
369
  </g>
289
- </g>
290
- </svg>
370
+ </svg>
371
+ </MastheadLogo>
291
372
  )}
292
373
  </MastheadBrand>
293
374
  </MastheadMain>
@@ -302,30 +383,34 @@ export const SideNavLayout = ({ children, groupedRoutes, navOpen: navOpenProp })
302
383
  topNavItems={topNavItems}
303
384
  isRTL={isRTL}
304
385
  setIsRTL={setIsRTL}
386
+ isDarkTheme={isDarkTheme}
387
+ setIsDarkTheme={setIsDarkTheme}
305
388
  />
306
389
  )}
307
390
  </MastheadContent>
308
391
  </Masthead>
309
- )
392
+ );
310
393
 
311
394
  return (
312
395
  <React.Fragment>
313
- <RtlContext.Provider value={ isRTL }>
396
+ <RtlContext.Provider value={isRTL}>
314
397
  <Page
315
398
  id="ws-page"
316
399
  mainContainerId="ws-page-main"
317
- header={Header}
400
+ mainComponent="div"
401
+ masthead={masthead}
318
402
  sidebar={SideBar}
319
- skipToContent={<SkipToContent href="#ws-page-main">Skip to content</SkipToContent>}
403
+ skipToContent={
404
+ <SkipToContent href="#ws-page-main">Skip to content</SkipToContent>
405
+ }
320
406
  isManagedSidebar
321
407
  defaultManagedSidebarIsOpen={navOpenProp}
322
408
  >
323
409
  {children}
410
+ {process.env.hasFooter && <Footer isDarkTheme={isDarkTheme} />}
324
411
  </Page>
325
- <div id="ws-page-banners">
326
- {hasGdprBanner && <GdprBanner />}
327
- </div>
412
+ <div id="ws-page-banners">{hasGdprBanner && <GdprBanner />}</div>
328
413
  </RtlContext.Provider>
329
414
  </React.Fragment>
330
415
  );
331
- }
416
+ };
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.12",
4
+ "version": "6.0.0-alpha.121",
5
5
  "author": "Red Hat",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -9,27 +9,23 @@
9
9
  "pf-docs-framework": "scripts/cli/cli.js"
10
10
  },
11
11
  "dependencies": {
12
- "@babel/core": "7.18.2",
13
- "@babel/plugin-proposal-class-properties": "7.17.12",
14
- "@babel/plugin-proposal-optional-chaining": "^7.18.9",
15
- "@babel/plugin-proposal-private-methods": "7.17.12",
16
- "@babel/plugin-proposal-private-property-in-object": "7.17.12",
17
- "@babel/plugin-transform-react-jsx": "7.17.12",
18
- "@babel/preset-env": "7.18.2",
12
+ "@babel/core": "^7.24.3",
13
+ "@babel/preset-env": "^7.24.3",
14
+ "@babel/preset-react": "^7.24.1",
19
15
  "@mdx-js/util": "1.6.16",
20
- "@patternfly/ast-helpers": "^1.4.0-alpha.1",
16
+ "@patternfly/ast-helpers": "^1.4.0-alpha.110",
21
17
  "@reach/router": "npm:@gatsbyjs/reach-router@1.3.9",
22
18
  "autoprefixer": "9.8.6",
23
- "babel-loader": "9.1.2",
19
+ "babel-loader": "^9.1.3",
24
20
  "camelcase-css": "2.0.1",
25
- "chokidar": "3.5.3",
21
+ "chokidar": "4.0.0",
26
22
  "clean-webpack-plugin": "4.0.0",
27
23
  "codesandbox": "2.2.0",
28
24
  "commander": "4.1.1",
29
25
  "copy-webpack-plugin": "11.0.0",
30
26
  "css-loader": "6.7.3",
31
27
  "detab": "2.0.3",
32
- "express": "4.18.1",
28
+ "express": "4.21.0",
33
29
  "file-loader": "6.2.0",
34
30
  "file-saver": "1.3.8",
35
31
  "fs-extra": "9.0.1",
@@ -43,8 +39,6 @@
43
39
  "mdast-util-to-hast": "9.1.1",
44
40
  "mdurl": "1.0.1",
45
41
  "mini-css-extract-plugin": "2.7.5",
46
- "monaco-editor": "0.34.1",
47
- "monaco-editor-webpack-plugin": "7.0.1",
48
42
  "null-loader": "4.0.1",
49
43
  "parse-entities": "2.0.0",
50
44
  "path-browserify": "1.0.1",
@@ -54,7 +48,6 @@
54
48
  "puppeteer": "19.11.1",
55
49
  "puppeteer-cluster": "0.23.0",
56
50
  "react-docgen": "5.3.1",
57
- "react-monaco-editor": "^0.51.0",
58
51
  "react-ssr-prepass": "1.5.0",
59
52
  "remark-footnotes": "1.0.0",
60
53
  "remark-frontmatter": "2.0.0",
@@ -67,7 +60,7 @@
67
60
  "style-to-object": "0.3.0",
68
61
  "to-vfile": "6.1.0",
69
62
  "typedoc": "0.23.0",
70
- "typescript": "4.3.5",
63
+ "typescript": "4.7.4",
71
64
  "unified": "9.1.0",
72
65
  "unist-util-remove": "2.0.0",
73
66
  "unist-util-visit": "2.0.3",
@@ -80,12 +73,12 @@
80
73
  "webpack-merge": "5.8.0"
81
74
  },
82
75
  "peerDependencies": {
83
- "@patternfly/patternfly": "6.0.0-alpha.91",
84
- "@patternfly/react-code-editor": "6.0.0-alpha.36",
85
- "@patternfly/react-core": "6.0.0-alpha.36",
86
- "@patternfly/react-table": "6.0.0-alpha.36",
76
+ "@patternfly/patternfly": "^6.0.0",
77
+ "@patternfly/react-code-editor": "^6.0.0",
78
+ "@patternfly/react-core": "^6.0.0",
79
+ "@patternfly/react-table": "^6.0.0",
87
80
  "react": "^17.0.0 || ^18.0.0",
88
81
  "react-dom": "^17.0.0 || ^18.0.0"
89
82
  },
90
- "gitHead": "25bff486fb56b1d13d79a23562854849559acb3f"
83
+ "gitHead": "da375ce3f013d56c776f428bfe2b5f21480e455f"
91
84
  }
package/pages/404/404.css CHANGED
@@ -5,12 +5,12 @@
5
5
  }
6
6
 
7
7
  .ws-404-card-header {
8
- padding: var(--pf-v6-global--spacer--lg);
8
+ padding: var(--pf-t--global--spacer--lg);
9
9
  }
10
10
 
11
11
  div.ws-404-button-wrapper {
12
12
  width: 100%;
13
13
  display: flex;
14
14
  justify-content: center;
15
- padding: var(--pf-v6-global--spacer--xl);
15
+ padding: var(--pf-t--global--spacer--xl);
16
16
  }