@patternfly/documentation-framework 5.8.2 → 5.8.3
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 +8 -0
- package/app.js +1 -3
- package/layouts/sideNavLayout/sideNavLayout.js +3 -0
- package/package.json +3 -3
- package/templates/mdx.css +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
## 5.8.3 (2024-03-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## 5.8.2 (2024-03-25)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @patternfly/documentation-framework
|
package/app.js
CHANGED
|
@@ -3,7 +3,6 @@ import { createRoot, hydrateRoot } from 'react-dom/client';
|
|
|
3
3
|
import { Router, useLocation } from '@reach/router';
|
|
4
4
|
import 'client-styles'; // Webpack replaces this import: patternfly-docs.css.js
|
|
5
5
|
import { SideNavLayout } from '@patternfly/documentation-framework/layouts';
|
|
6
|
-
import { Footer } from '@patternfly/documentation-framework/components';
|
|
7
6
|
import { MDXTemplate } from '@patternfly/documentation-framework/templates/mdx';
|
|
8
7
|
import { routes, groupedRoutes, fullscreenRoutes, getAsyncComponent } from './routes';
|
|
9
8
|
import { trackEvent } from './helpers';
|
|
@@ -37,7 +36,6 @@ const AppRoute = ({ child, title, path }) => {
|
|
|
37
36
|
return (
|
|
38
37
|
<React.Fragment>
|
|
39
38
|
{child}
|
|
40
|
-
{process.env.hasFooter && <Footer />}
|
|
41
39
|
</React.Fragment>
|
|
42
40
|
);
|
|
43
41
|
}
|
|
@@ -46,7 +44,7 @@ const SideNavRouter = () => {
|
|
|
46
44
|
const componentsData = process?.env?.componentsData;
|
|
47
45
|
return (
|
|
48
46
|
<SideNavLayout groupedRoutes={groupedRoutes} navOpen={true} >
|
|
49
|
-
<Router id="ws-page-content-router">
|
|
47
|
+
<Router id="ws-page-content-router" component="main">
|
|
50
48
|
{Object.entries(routes)
|
|
51
49
|
.map(([path, { Component, title, sources, id }]) => Component
|
|
52
50
|
? <AppRoute
|
|
@@ -35,6 +35,7 @@ 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
37
|
import v5Logo from '../PF-HorizontalLogo-Reverse.svg';
|
|
38
|
+
import { Footer } from '@patternfly/documentation-framework/components';
|
|
38
39
|
|
|
39
40
|
export const RtlContext = createContext(false);
|
|
40
41
|
|
|
@@ -301,6 +302,7 @@ export const SideNavLayout = ({ children, groupedRoutes, navOpen: navOpenProp })
|
|
|
301
302
|
<Page
|
|
302
303
|
id="ws-page"
|
|
303
304
|
mainContainerId="ws-page-main"
|
|
305
|
+
mainComponent="div"
|
|
304
306
|
header={Header}
|
|
305
307
|
sidebar={SideBar}
|
|
306
308
|
skipToContent={<SkipToContent href="#ws-page-main">Skip to content</SkipToContent>}
|
|
@@ -308,6 +310,7 @@ export const SideNavLayout = ({ children, groupedRoutes, navOpen: navOpenProp })
|
|
|
308
310
|
defaultManagedSidebarIsOpen={navOpenProp}
|
|
309
311
|
>
|
|
310
312
|
{children}
|
|
313
|
+
{process.env.hasFooter && <Footer />}
|
|
311
314
|
</Page>
|
|
312
315
|
<div id="ws-page-banners">
|
|
313
316
|
{hasGdprBanner && <GdprBanner />}
|
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": "5.8.
|
|
4
|
+
"version": "5.8.3",
|
|
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.8.
|
|
16
|
+
"@patternfly/ast-helpers": "^1.8.3",
|
|
17
17
|
"@reach/router": "npm:@gatsbyjs/reach-router@1.3.9",
|
|
18
18
|
"autoprefixer": "9.8.6",
|
|
19
19
|
"babel-loader": "^9.1.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": "3132cc6c219c8d5d046a0d0376ef9a4875faafc0"
|
|
84
84
|
}
|