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

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 CHANGED
@@ -3,6 +3,22 @@
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.14 (2024-03-22)
7
+
8
+ **Note:** Version bump only for package @patternfly/documentation-framework
9
+
10
+
11
+
12
+
13
+
14
+ # 6.0.0-alpha.13 (2024-03-21)
15
+
16
+ **Note:** Version bump only for package @patternfly/documentation-framework
17
+
18
+
19
+
20
+
21
+
6
22
  # 6.0.0-alpha.12 (2024-02-27)
7
23
 
8
24
  **Note:** Version bump only for package @patternfly/documentation-framework
@@ -4,7 +4,7 @@
4
4
  --pf-v6-c-nav--m-light__link--focus--BackgroundColor: var(--pf-v6-global--BackgroundColor--light-200);
5
5
  --pf-v6-c-nav--m-light__link--m-current--BackgroundColor: var(--pf-v6-global--BackgroundColor--light-200);
6
6
  --pf-v6-c-nav--m-light__link--active--BackgroundColor: var(--pf-v6-global--BackgroundColor--light-200);
7
- --pf-v6-c-nav__link--m-current--BackgroundColor: var(--pf-v6-global--BackgroundColor--200);
7
+ --pf-v6-c-nav__link--m-current--BackgroundColor: var(--pf-t--global--background--color--action--plain--alt--clicked);
8
8
  }
9
9
 
10
10
  .ws-side-nav-list .pf-v6-c-nav__item.pf-m-expandable::before {
@@ -2,7 +2,7 @@
2
2
  align-self: flex-start;
3
3
  position: sticky;
4
4
  width: calc(100% + var(--pf-v6-c-page__main-section--PaddingLeft) + var(--pf-v6-c-page__main-section--PaddingRight));
5
- background-color: var(--pf-v6-global--BackgroundColor--200);
5
+ background-color: var(--pf-t--global--background--color--primary--default);
6
6
  z-index: 501;
7
7
  margin-block-start: calc(var(--pf-v6-c-page__main-section--PaddingTop) * -1);
8
8
  margin-block-end: var(--pf-v6-global--spacer--md);
@@ -29,7 +29,7 @@
29
29
  .ws-toc .pf-v6-c-jump-links__header {
30
30
  position: sticky;
31
31
  top: 0;
32
- background-color: var(--pf-v6-global--BackgroundColor--200);
32
+ background-color: var(--pf-t--global--background--color--primary--default);
33
33
  z-index: 2;
34
34
  }
35
35
  }
@@ -24,7 +24,7 @@ import {
24
24
  ToolbarItem,
25
25
  SkipToContent,
26
26
  Switch,
27
- SearchInput,
27
+ // SearchInput,
28
28
  ToggleGroup,
29
29
  ToggleGroupItem
30
30
  } from '@patternfly/react-core';
@@ -51,10 +51,10 @@ const HeaderTools = ({
51
51
  const initialVersion = staticVersions.Releases.find(release => release.latest);
52
52
  const latestVersion = versions.Releases.find(version => version.latest);
53
53
  const previousReleases = Object.values(versions.Releases).filter(version => !version.hidden && !version.latest);
54
- const hasSearch = algolia;
54
+ // const hasSearch = algolia;
55
55
  const [isDropdownOpen, setDropdownOpen] = useState(false);
56
- const [searchValue, setSearchValue] = React.useState('');
57
- const [isSearchExpanded, setIsSearchExpanded] = React.useState(false);
56
+ // const [searchValue, setSearchValue] = React.useState('');
57
+ // const [isSearchExpanded, setIsSearchExpanded] = React.useState(false);
58
58
  const [isDarkTheme, setIsDarkTheme] = React.useState(false);
59
59
 
60
60
  const getDropdownItem = (version, isLatest = false) => (
@@ -63,13 +63,13 @@ const HeaderTools = ({
63
63
  </DropdownItem>
64
64
  );
65
65
 
66
- const onChange = (_evt, value) => {
67
- setSearchValue(value);
68
- };
66
+ // const onChange = (_evt, value) => {
67
+ // setSearchValue(value);
68
+ // };
69
69
 
70
- const onToggleExpand = (_evt, isSearchExpanded) => {
71
- setIsSearchExpanded(!isSearchExpanded);
72
- };
70
+ // const onToggleExpand = (_evt, isSearchExpanded) => {
71
+ // setIsSearchExpanded(!isSearchExpanded);
72
+ // };
73
73
 
74
74
  const toggleDarkTheme = (_evt, selected) => {
75
75
  const darkThemeToggleClicked = !selected === isDarkTheme
@@ -77,12 +77,12 @@ const HeaderTools = ({
77
77
  setIsDarkTheme(darkThemeToggleClicked);
78
78
  };
79
79
 
80
- useEffect(() => {
81
- // reattach algolia to input each time search is expanded
82
- if (hasSearch && isSearchExpanded) {
83
- attachDocSearch(algolia, '.ws-global-search .pf-v5-c-text-input-group__text-input', 1000);
84
- }
85
- }, [isSearchExpanded])
80
+ // useEffect(() => {
81
+ // // reattach algolia to input each time search is expanded
82
+ // if (hasSearch && isSearchExpanded) {
83
+ // attachDocSearch(algolia, '.ws-global-search .pf-v5-c-text-input-group__text-input', 1000);
84
+ // }
85
+ // }, [isSearchExpanded])
86
86
 
87
87
  return (
88
88
  <Toolbar isFullHeight>
@@ -109,7 +109,7 @@ const HeaderTools = ({
109
109
  <Switch id="ws-rtl-switch" label={'RTL'} defaultChecked={isRTL} onChange={() => setIsRTL(isRTL => !isRTL)} />
110
110
  </ToolbarItem>
111
111
  )}
112
- {hasSearch && (
112
+ {/* {hasSearch && (
113
113
  <ToolbarItem>
114
114
  <SearchInput
115
115
  className="ws-global-search"
@@ -120,7 +120,7 @@ const HeaderTools = ({
120
120
  expandableInput={{ isExpanded: isSearchExpanded, onToggleExpand, toggleAriaLabel: 'Expandable search input toggle' }}
121
121
  />
122
122
  </ToolbarItem>
123
- )}
123
+ )} */}
124
124
  <ToolbarItem>
125
125
  <Button
126
126
  component="a"
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.14",
5
5
  "author": "Red Hat",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -17,7 +17,7 @@
17
17
  "@babel/plugin-transform-react-jsx": "7.17.12",
18
18
  "@babel/preset-env": "7.18.2",
19
19
  "@mdx-js/util": "1.6.16",
20
- "@patternfly/ast-helpers": "^1.4.0-alpha.1",
20
+ "@patternfly/ast-helpers": "^1.4.0-alpha.3",
21
21
  "@reach/router": "npm:@gatsbyjs/reach-router@1.3.9",
22
22
  "autoprefixer": "9.8.6",
23
23
  "babel-loader": "9.1.2",
@@ -87,5 +87,5 @@
87
87
  "react": "^17.0.0 || ^18.0.0",
88
88
  "react-dom": "^17.0.0 || ^18.0.0"
89
89
  },
90
- "gitHead": "25bff486fb56b1d13d79a23562854849559acb3f"
90
+ "gitHead": "87424635c8ba6f0ef74e498cb1b5bdbbfdbe3f91"
91
91
  }
@@ -47,6 +47,7 @@ module.exports = (_env, argv) => {
47
47
  /react-[\w-]+\\src\\.*\\examples/, // fix for Windows
48
48
  /react-[\w-]+\/patternfly-docs\/.*\/examples/, //fixes for extensions
49
49
  /react-[\w-]+\\patternfly-docs\\.*\\examples/,
50
+ path.resolve(__dirname, '../../../../node_modules/@patternfly/design-tokens/patternfly-docs/content')
50
51
  ].concat(includePaths.map(path => new RegExp(path))),
51
52
  exclude: [
52
53
  path.resolve(__dirname, '../../node_modules'), // Temporarily compile theme using webpack for development
package/templates/mdx.css CHANGED
@@ -38,7 +38,7 @@
38
38
 
39
39
  .ws-code {
40
40
  display: inline-block;
41
- background-color: var(--pf-v6-global--BackgroundColor--100);
41
+ background-color: var(--pf-t--global--background--color--secondary--default);
42
42
  padding: 1px var(--pf-v6-global--spacer--sm);
43
43
  border: var(--pf-v6-global--BorderWidth--sm) solid var(--pf-v6-global--BorderColor--300);
44
44
  white-space: pre-wrap;
@@ -50,6 +50,11 @@
50
50
  margin-bottom: var(--pf-v6-c-content--MarginBottom);
51
51
  }
52
52
 
53
+ .ws-image {
54
+ text-align: center;
55
+ width: "600px";
56
+ }
57
+
53
58
  /* Table styles */
54
59
  /* Undo patternfly reset to respect MD table styles */
55
60
  .ws-table td[align="center"],
@@ -68,6 +73,7 @@
68
73
  table-layout: fixed;
69
74
  width: 100%;
70
75
  }
76
+
71
77
  .ws-table td > code,
72
78
  .ws-table th > code,
73
79
  .ws-table tr > code {