@patternfly/documentation-framework 6.0.0-alpha.23 → 6.0.0-alpha.25

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,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.0.0-alpha.25 (2024-05-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **build:** bump ts version and fix docs build for v6 ([#4004](https://github.com/patternfly/patternfly-org/issues/4004)) ([55db3db](https://github.com/patternfly/patternfly-org/commit/55db3db9d8f0b47b323ce921ac42f06d8515c9b6))
12
+
13
+
14
+
15
+
16
+
17
+ # 6.0.0-alpha.24 (2024-05-06)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **styles:** Remove and replace global styles ([#3996](https://github.com/patternfly/patternfly-org/issues/3996)) ([41fe3eb](https://github.com/patternfly/patternfly-org/commit/41fe3eba104cc7ef49898fc1b614777bdbd04b22))
23
+
24
+
25
+
26
+
27
+
6
28
  # 6.0.0-alpha.23 (2024-05-02)
7
29
 
8
30
 
@@ -3,8 +3,8 @@
3
3
  }
4
4
 
5
5
  .ws-heading-anchor {
6
- color: var(--pf-v6-global--Color--100);
7
- transform: translate(calc(-100% - var(--pf-v6-global--spacer--xs)), -50%);
6
+ /* color: var(--pf-v6-global--Color--100); */
7
+ transform: translate(calc(-100% - var(--pf-t--global--spacer--xs)), -50%);
8
8
  opacity: 0;
9
9
  position: absolute;
10
10
  left: 0;
@@ -2,14 +2,14 @@
2
2
  display: inline-block;
3
3
  height: 18px;
4
4
  width: 18px;
5
- border: var(--pf-v6-global--BorderWidth--sm) solid var(--pf-v6-global--BorderColor--200);
6
- border-radius: var(--pf-v6-global--BorderRadius--lg);
5
+ /* border: var(--pf-v6-global--BorderWidth--sm) solid var(--pf-v6-global--BorderColor--200); */
6
+ /* border-radius: var(--pf-v6-global--BorderRadius--lg); */
7
7
  }
8
8
 
9
9
  .ws-td-text {
10
- font-size: var(--pf-v6-global--FontSize--sm) !important;
10
+ /* font-size: var(--pf-v6-global--FontSize--sm) !important; */
11
11
  }
12
12
 
13
13
  .ws-css-property {
14
- padding: var(--pf-v6-global--spacer--xs) var(--pf-v6-global--spacer--md);
14
+ padding: var(--pf-t--global--spacer--xs) var(--pf-t--global--spacer--md);
15
15
  }
@@ -3,16 +3,16 @@
3
3
  }
4
4
 
5
5
  .ws-example {
6
- margin-top: var(--pf-v6-global--spacer--lg);
7
- margin-bottom: var(--pf-v6-global--spacer--lg);
6
+ margin-top: var(--pf-t--global--spacer--lg);
7
+ margin-bottom: var(--pf-t--global--spacer--lg);
8
8
  }
9
9
 
10
10
  .ws-example > .ws-example-header {
11
- padding: var(--pf-v6-global--spacer--md);
11
+ padding: var(--pf-t--global--spacer--md);
12
12
  }
13
13
 
14
14
  .ws-example-header > .ws-example-heading:not(:last-child) {
15
- margin-bottom: var(--pf-v6-global--spacer--md);
15
+ margin-bottom: var(--pf-t--global--spacer--md);
16
16
  }
17
17
 
18
18
  .ws-code-editor:not(.ws-example-code-expanded) > .pf-v6-c-code-editor__header::before {
@@ -31,9 +31,9 @@
31
31
  }
32
32
 
33
33
  .ws-preview {
34
- padding: var(--pf-v6-global--spacer--md);
35
- background-color: var(--pf-v6-global--BackgroundColor--100);
36
- border-bottom: var(--pf-v6-global--BorderWidth--sm) solid var(--pf-v6-global--BorderColor--300);
34
+ padding: var(--pf-t--global--spacer--md);
35
+ /* background-color: var(--pf-v6-global--BackgroundColor--100); */
36
+ /* border-bottom: var(--pf-v6-global--BorderWidth--sm) solid var(--pf-v6-global--BorderColor--300); */
37
37
  transition: width .2s ease-in-out;
38
38
  }
39
39
 
@@ -43,12 +43,12 @@
43
43
  }
44
44
 
45
45
  .ws-editor {
46
- font-size: var(--pf-v6-global--FontSize--md);
46
+ /* font-size: var(--pf-v6-global--FontSize--md); */
47
47
  }
48
48
 
49
49
  .ws-editor .token.punctuation,
50
50
  .ws-editor .token.operator {
51
- color: var(--pf-v6-global--danger-color--100);
51
+ /* color: var(--pf-v6-global--danger-color--100); */
52
52
  }
53
53
 
54
54
  .ws-preview__thumbnail-link {
@@ -101,32 +101,32 @@
101
101
  }
102
102
 
103
103
  .pf-v6-c-badge.ws-beta-badge {
104
- --pf-v6-c-badge--m-unread--BackgroundColor: var(--pf-v6-global--BackgroundColor--100);
105
- --pf-v6-c-badge--m-unread--Color: var(--pf-v6-global--primary-color--100);
106
- border: var(--pf-v6-global--BorderWidth--sm) solid var(--pf-v6-global--primary-color--100);
104
+ /* --pf-v6-c-badge--m-unread--BackgroundColor: var(--pf-v6-global--BackgroundColor--100); */
105
+ /* --pf-v6-c-badge--m-unread--Color: var(--pf-v6-global--primary-color--100); */
106
+ /* border: var(--pf-v6-global--BorderWidth--sm) solid var(--pf-v6-global--primary-color--100); */
107
107
  }
108
108
 
109
109
  .ws-prop-required {
110
- color: var(--pf-v6-global--danger-color--100);
110
+ /* color: var(--pf-v6-global--danger-color--100); */
111
111
  }
112
112
 
113
113
  .ws-full-page-utils {
114
114
  position: fixed;
115
115
  right: 0;
116
116
  bottom: 0;
117
- padding: var(--pf-v6-global--spacer--lg);
118
- z-index: var(--pf-v6-global--ZIndex--2xl);
117
+ padding: var(--pf-t--global--spacer--lg);
118
+ /* z-index: var(--pf-v6-global--ZIndex--2xl); */
119
119
  }
120
120
 
121
121
  .ws-full-page-utils::before {
122
122
  position: absolute;
123
123
  inset: 0;
124
124
  content: "";
125
- background-color: var(--pf-v6-global--BackgroundColor--100);
125
+ /* background-color: var(--pf-v6-global--BackgroundColor--100); */
126
126
  opacity: 0.8;
127
- box-shadow: var(--pf-v6-global--BoxShadow--sm);
127
+ /* box-shadow: var(--pf-v6-global--BoxShadow--sm); */
128
128
  }
129
129
 
130
130
  .pf-v6-theme-dark .ws-theme-switch-full-page::before {
131
- background-color: var(--pf-v6-global--BackgroundColor--300);
131
+ /* background-color: var(--pf-v6-global--BackgroundColor--300); */
132
132
  }
@@ -1,11 +1,11 @@
1
1
  .ws-org-pfsite-l-footer.pf-v6-c-page__main-section {
2
- font-family: var(--pf-v6-global--FontFamily--text);
2
+ /* font-family: var(--pf-v6-global--FontFamily--text); */
3
3
  font-weight: 300;
4
4
  background-color: #1a1a1a !important;
5
- --pf-v6-c-page__main-section--PaddingTop: var(--pf-v6-global--spacer--xl);
6
- --pf-v6-c-page__main-section--PaddingRight: var(--pf-v6-global--spacer--2xl);
7
- --pf-v6-c-page__main-section--PaddingBottom: var(--pf-v6-global--spacer--2xl);
8
- --pf-v6-c-page__main-section--PaddingLeft: var(--pf-v6-global--spacer--2xl);
5
+ --pf-v6-c-page__main-section--PaddingTop: var(--pf-t--global--spacer--xl);
6
+ --pf-v6-c-page__main-section--PaddingRight: var(--pf-t--global--spacer--2xl);
7
+ --pf-v6-c-page__main-section--PaddingBottom: var(--pf-t--global--spacer--2xl);
8
+ --pf-v6-c-page__main-section--PaddingLeft: var(--pf-t--global--spacer--2xl);
9
9
  /* Hide long overflowing tocs */
10
10
  z-index: 1;
11
11
  }
@@ -34,8 +34,8 @@
34
34
  }
35
35
  }
36
36
  .ws-org-pfsite-l-footer-column .ws-org-pfsite-footer-menu-social-links a {
37
- margin-right: var(--pf-v6-global--spacer--md);
38
- color: var(--pf-v6-global--Color--light-100) !important;
37
+ margin-right: var(--pf-t--global--spacer--md);
38
+ /* color: var(--pf-v6-global--Color--light-100) !important; */
39
39
  }
40
40
  .ws-org-pfsite-l-footer-column
41
41
  .ws-org-pfsite-footer-menu-social-links
@@ -43,8 +43,8 @@
43
43
  margin-right: 0;
44
44
  }
45
45
  .ws-org-pfsite-l-footer-column .ws-org-pfsite-footer-menu-social-links {
46
- margin-top: var(--pf-v6-global--spacer--md);
47
- margin-bottom: var(--pf-v6-global--spacer--md);
46
+ margin-top: var(--pf-t--global--spacer--md);
47
+ margin-bottom: var(--pf-t--global--spacer--md);
48
48
  }
49
49
  @media (max-width: 768px) {
50
50
  .ws-org-pfsite-l-footer-column .ws-org-pfsite-footer-menu-social-links {
@@ -71,7 +71,7 @@
71
71
  padding-right: 10px;
72
72
  }
73
73
  .ws-org-pfsite-l-footer .ws-org-pfsite-footer-menu-link {
74
- color: var(--pf-v6-global--Color--light-100);
74
+ /* color: var(--pf-v6-global--Color--light-100); */
75
75
  font-size: 14px !important;
76
76
  }
77
77
  .ws-org-pfsite-l-footer .ws-org-pfsite-footer-menu-link:hover {
@@ -96,9 +96,9 @@
96
96
  color: #d2d2d2;
97
97
  }
98
98
  .ws-org-pfsite-l-footer-dark a {
99
- padding-right: var(--pf-v6-global--spacer--sm);
100
- padding-left: var(--pf-v6-global--spacer--sm);
101
- border-right: var(--pf-v6-global--BorderWidth--sm) solid #d2d2d2;
99
+ padding-right: var(--pf-t--global--spacer--sm);
100
+ padding-left: var(--pf-t--global--spacer--sm);
101
+ /* border-right: var(--pf-v6-global--BorderWidth--sm) solid #d2d2d2; */
102
102
  font-weight: 300;
103
103
  color: #d2d2d2;
104
104
  text-decoration: underline;
@@ -9,6 +9,6 @@
9
9
  #ws-gdpr-banner {
10
10
  max-width: 95vw;
11
11
  flex-wrap: nowrap;
12
- background: var(--pf-v6-global--BackgroundColor--100);
13
- border: var(--pf-v6-global--BorderWidth--sm) solid var(--pf-v6-global--Color--100);
12
+ /* background: var(--pf-v6-global--BackgroundColor--100); */
13
+ /* border: var(--pf-v6-global--BorderWidth--sm) solid var(--pf-v6-global--Color--100); */
14
14
  }
@@ -20,10 +20,10 @@
20
20
  .ws-section-gallery .pf-v6-c-toolbar {
21
21
  margin-left: calc(var(--pf-v6-c-page__main-section--PaddingLeft) * -1);
22
22
  border-bottom: var(--pf-v6-c-page__sidebar--m-light--BorderRightWidth) solid var(--pf-v6-c-page__sidebar--m-light--BorderRightColor);
23
- margin-bottom: var(--pf-v6-global--spacer--md);
23
+ margin-bottom: var(--pf-t--global--spacer--md);
24
24
  width: calc(100% + var(--pf-v6-c-page__main-section--PaddingLeft) + var(--pf-v6-c-page__main-section--PaddingRight));
25
25
  /* avoid hoverable data list items overlapping toolbar */
26
- z-index: calc(var(--pf-v6-global--ZIndex--xs) + 2);
26
+ /* z-index: calc(var(--pf-v6-global--ZIndex--xs) + 2); */
27
27
  }
28
28
 
29
29
  /* Match toolbar left-padding to gallery left-padding */
@@ -1,9 +1,9 @@
1
1
  .ws-page-sidebar .pf-v6-c-nav {
2
2
  --pf-v6-c-nav__link--before--BorderBottomWidth: 0;
3
- --pf-v6-c-nav--m-light__link--hover--BackgroundColor: var(--pf-v6-global--BackgroundColor--light-200);
4
- --pf-v6-c-nav--m-light__link--focus--BackgroundColor: var(--pf-v6-global--BackgroundColor--light-200);
5
- --pf-v6-c-nav--m-light__link--m-current--BackgroundColor: var(--pf-v6-global--BackgroundColor--light-200);
6
- --pf-v6-c-nav--m-light__link--active--BackgroundColor: var(--pf-v6-global--BackgroundColor--light-200);
3
+ /* --pf-v6-c-nav--m-light__link--hover--BackgroundColor: var(--pf-v6-global--BackgroundColor--light-200); */
4
+ /* --pf-v6-c-nav--m-light__link--focus--BackgroundColor: var(--pf-v6-global--BackgroundColor--light-200); */
5
+ /* --pf-v6-c-nav--m-light__link--m-current--BackgroundColor: var(--pf-v6-global--BackgroundColor--light-200); */
6
+ /* --pf-v6-c-nav--m-light__link--active--BackgroundColor: var(--pf-v6-global--BackgroundColor--light-200); */
7
7
  --pf-v6-c-nav__link--m-current--BackgroundColor: var(--pf-t--global--background--color--action--plain--alt--clicked);
8
8
  }
9
9
 
@@ -12,6 +12,6 @@
12
12
  }
13
13
 
14
14
  .pf-v6-c-nav__subsection-title {
15
- color: var(--ws-toc-link--Color, var(--pf-v6-global--Color--300));
16
- font-size: var(--pf-v6-global--FontSize--sm);
15
+ /* color: var(--ws-toc-link--Color, var(--pf-v6-global--Color--300)); */
16
+ /* font-size: var(--pf-v6-global--FontSize--sm); */
17
17
  }
@@ -5,18 +5,18 @@
5
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
- margin-block-end: var(--pf-v6-global--spacer--md);
8
+ margin-block-end: var(--pf-t--global--spacer--md);
9
9
  margin-inline-start: calc(var(--pf-v6-c-page__main-section--PaddingLeft) * -1);
10
10
  margin-inline-end: calc(var(--pf-v6-c-page__main-section--PaddingRight) * -2);
11
- padding-block-start: var(--pf-v6-global--spacer--md);
12
- padding-block-end: var(--pf-v6-global--spacer--md);
13
- padding-inline-start: var(--pf-v6-global--spacer--md);
11
+ padding-block-start: var(--pf-t--global--spacer--md);
12
+ padding-block-end: var(--pf-t--global--spacer--md);
13
+ padding-inline-start: var(--pf-t--global--spacer--md);
14
14
  padding-inline-end: 0;
15
- box-shadow: var(--pf-v6-global--BoxShadow--lg-bottom);
15
+ /* box-shadow: var(--pf-v6-global--BoxShadow--lg-bottom); */
16
16
  }
17
17
 
18
18
  .ws-toc.pf-m-expanded {
19
- box-shadow: var(--pf-v6-global--BoxShadow--sm-bottom)
19
+ /* box-shadow: var(--pf-v6-global--BoxShadow--sm-bottom) */
20
20
  }
21
21
 
22
22
  /* Mobile jumplinks */
@@ -51,7 +51,7 @@
51
51
  -ms-overflow-style: none;
52
52
  scrollbar-width: none;
53
53
  order: 1;
54
- padding: 0 var(--pf-v6-global--spacer--lg) var(--pf-v6-global--spacer--lg) var(--pf-v6-global--spacer--2xl);
54
+ padding: 0 var(--pf-t--global--spacer--lg) var(--pf-t--global--spacer--lg) var(--pf-t--global--spacer--2xl);
55
55
  flex-grow: 1;
56
56
  background: none;
57
57
  margin: 0;
@@ -67,8 +67,8 @@
67
67
  .ws-toc-item .pf-v6-c-jump-links__link {
68
68
  position: relative;
69
69
  display: block;
70
- color: var(--ws-toc-link--Color, var(--pf-v6-global--Color--300));
71
- font-size: var(--pf-v6-global--FontSize--sm);
70
+ /* color: var(--ws-toc-link--Color, var(--pf-v6-global--Color--300)); */
71
+ /* font-size: var(--pf-v6-global--FontSize--sm); */
72
72
  margin: -4px 0;
73
73
  }
74
74
 
@@ -9,7 +9,7 @@
9
9
  }
10
10
 
11
11
  .ws-switcher-divider {
12
- padding: 0 var(--pf-v6-global--spacer--md);
12
+ padding: 0 var(--pf-t--global--spacer--md);
13
13
  }
14
14
 
15
15
  @media (min-width: 1200px) {
@@ -19,7 +19,7 @@
19
19
  }
20
20
 
21
21
  .ws-page-sidebar > .pf-v6-c-page__sidebar-body {
22
- padding-top: var(--pf-v6-global--spacer--md);
22
+ padding-top: var(--pf-t--global--spacer--md);
23
23
  }
24
24
 
25
25
  /* Search */
@@ -39,12 +39,12 @@
39
39
 
40
40
  .ws-masthead .pf-v6-c-switch {
41
41
  align-items: center;
42
- --pf-v6-c-switch__input--not-checked__label--Color: var(--pf-v6-global--Color--100);
43
- --pf-v6-c-switch__input--checked__label--Color: var(--pf-v6-global--Color--100);
42
+ /* --pf-v6-c-switch__input--not-checked__label--Color: var(--pf-v6-global--Color--100); */
43
+ /* --pf-v6-c-switch__input--checked__label--Color: var(--pf-v6-global--Color--100); */
44
44
  }
45
45
 
46
46
  .ws-masthead .pf-v6-c-toggle-group {
47
- --pf-v6-c-toggle-group__button--m-selected--BackgroundColor: var(--pf-v6-global--palette--blue-400);
47
+ /* --pf-v6-c-toggle-group__button--m-selected--BackgroundColor: var(--pf-v6-global--palette--blue-400); */
48
48
  --pf-v6-c-toggle-group__button--focus--BackgroundColor: transparent;
49
49
  --pf-v6-c-toggle-group__button--hover--BackgroundColor: transparent;
50
50
  }
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.23",
4
+ "version": "6.0.0-alpha.25",
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.4.0-alpha.12",
16
+ "@patternfly/ast-helpers": "^1.4.0-alpha.14",
17
17
  "@reach/router": "npm:@gatsbyjs/reach-router@1.3.9",
18
18
  "autoprefixer": "9.8.6",
19
19
  "babel-loader": "^9.1.3",
@@ -60,7 +60,7 @@
60
60
  "style-to-object": "0.3.0",
61
61
  "to-vfile": "6.1.0",
62
62
  "typedoc": "0.23.0",
63
- "typescript": "4.3.5",
63
+ "typescript": "4.7.4",
64
64
  "unified": "9.1.0",
65
65
  "unist-util-remove": "2.0.0",
66
66
  "unist-util-visit": "2.0.3",
@@ -73,12 +73,12 @@
73
73
  "webpack-merge": "5.8.0"
74
74
  },
75
75
  "peerDependencies": {
76
- "@patternfly/patternfly": "6.0.0-alpha.117",
76
+ "@patternfly/patternfly": "6.0.0-alpha.118",
77
77
  "@patternfly/react-code-editor": "6.0.0-alpha.50",
78
78
  "@patternfly/react-core": "6.0.0-alpha.50",
79
79
  "@patternfly/react-table": "6.0.0-alpha.50",
80
80
  "react": "^17.0.0 || ^18.0.0",
81
81
  "react-dom": "^17.0.0 || ^18.0.0"
82
82
  },
83
- "gitHead": "a4613e41c9b629d393571e3fd449758ce6bd9178"
83
+ "gitHead": "f125eeab9c4e7df4315c40e95ba00f6d0ac7ce70"
84
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
  }
@@ -73,7 +73,9 @@ const Page404 = () => {
73
73
  <Title headingLevel="h1" size="2xl">
74
74
  404: That page no longer exists
75
75
  </Title>
76
- <p style={{ marginTop: 'var(--pf-v6-global--spacer--sm)' }}>
76
+ <p
77
+ // style={{ marginTop: 'var(--pf-v6-global--spacer--sm)' }}
78
+ >
77
79
  Another page might have the information you need, so try searching PatternFly.
78
80
  </p>
79
81
  <EmptyStateBody>
@@ -8,7 +8,7 @@ const vfileReport = require('vfile-reporter');
8
8
  const yaml = require('js-yaml'); // https://github.com/nodeca/js-yaml
9
9
  const chokidar = require('chokidar');
10
10
  const { globSync } = require('glob');
11
- const { typecheck } = require('./typecheck');
11
+ // const { typecheck } = require('./typecheck');
12
12
  const { makeSlug } = require('../../helpers/slugger');
13
13
  const { liveCodeTypes } = require('../../helpers/liveCodeTypes');
14
14
  const { tsDocgen } = require('../tsDocgen');
@@ -204,35 +204,36 @@ function toReactComponent(mdFilePath, source, buildMode) {
204
204
  && node.tagName === 'Example'
205
205
  && liveCodeTypes.includes(node.properties.lang)
206
206
  && !node.properties.noLive;
207
- visit(tree, isExample, node => {
208
- if (node.properties.isFullscreen) {
209
- pageData.fullscreenExamples = pageData.fullscreenExamples || [];
210
- pageData.fullscreenExamples.push(node.title);
211
- }
212
- else {
213
- pageData.examples = pageData.examples || [];
214
- pageData.examples.push(node.title);
215
- }
216
- // Typecheck TS examples
217
- if (node.properties.lang === 'ts') {
218
- const typerrors = typecheck(
219
- path.join(pageData.id, node.title + '.tsx'), // Needs to be unique per-example
220
- node.properties.code
221
- );
222
- typerrors.forEach(({ line, character, message }) => {
223
- line = node.position.start.line + line + 1;
224
- const column = character;
225
- if (buildMode === 'start') {
226
- // Don't fail to start over types
227
- file.message(`\u001b[31m THIS WILL FAIL THE BUILD\u001b[0m\n ${message}`, { line, column });
228
- } else {
229
- console.log('\u001b[31m');
230
- file.fail(`\n ${message}\n`, { line, column });
231
- console.log('\u001b[0m');
232
- }
233
- });
234
- }
235
- });
207
+ // TODO: revert when CommonJS is upgraded to ESM or when unist-util packages are updated to a tool that is compatible with ESM
208
+ // visit(tree, isExample, node => {
209
+ // if (node.properties.isFullscreen) {
210
+ // pageData.fullscreenExamples = pageData.fullscreenExamples || [];
211
+ // pageData.fullscreenExamples.push(node.title);
212
+ // }
213
+ // else {
214
+ // pageData.examples = pageData.examples || [];
215
+ // pageData.examples.push(node.title);
216
+ // }
217
+ // // Typecheck TS examples
218
+ // if (node.properties.lang === 'ts') {
219
+ // const typerrors = typecheck(
220
+ // path.join(pageData.id, node.title + '.tsx'), // Needs to be unique per-example
221
+ // node.properties.code
222
+ // );
223
+ // typerrors.forEach(({ line, character, message }) => {
224
+ // line = node.position.start.line + line + 1;
225
+ // const column = character;
226
+ // if (buildMode === 'start') {
227
+ // // Don't fail to start over types
228
+ // file.message(`\u001b[31m THIS WILL FAIL THE BUILD\u001b[0m\n ${message}`, { line, column });
229
+ // } else {
230
+ // console.log('\u001b[31m');
231
+ // file.fail(`\n ${message}\n`, { line, column });
232
+ // console.log('\u001b[0m');
233
+ // }
234
+ // });
235
+ // }
236
+ // });
236
237
  })
237
238
  // Add custom PatternFly doc design things
238
239
  .use(require('./anchor-header'), toc => {
package/templates/mdx.css CHANGED
@@ -6,7 +6,7 @@
6
6
  }
7
7
 
8
8
  .ws-release-notes-toc {
9
- margin-bottom: var(--pf-v6-global--spacer--lg);
9
+ margin-bottom: var(--pf-t--global--spacer--lg);
10
10
  }
11
11
 
12
12
  .ws-release-notes-toc .pf-v6-c-card {
@@ -14,7 +14,7 @@
14
14
  }
15
15
 
16
16
  .ws-release-notes-toc .pf-v6-c-card__title {
17
- padding-bottom: var(--pf-v6-global--spacer--xs);
17
+ padding-bottom: var(--pf-t--global--spacer--xs);
18
18
  }
19
19
 
20
20
  .ws-release-notes-toc .pf-v6-c-card__title .pf-v6-c-title {
@@ -22,7 +22,7 @@
22
22
  }
23
23
 
24
24
  .ws-release-notes-toc .pf-v6-c-card__title a {
25
- margin-right: var(--pf-v6-global--spacer--sm);
25
+ margin-right: var(--pf-t--global--spacer--sm);
26
26
  }
27
27
 
28
28
  .ws-release-notes-toc .pf-v6-c-card__title .pf-v6-c-badge {
@@ -31,8 +31,8 @@
31
31
 
32
32
  .ws-release-notes-toc .pf-v6-c-card__body {
33
33
  color: #72767B;
34
- font-family: var(--pf-v6-global--FontFamily--text);
35
- font-size: var(--pf-v6-global--FontSize--md);
34
+ /* font-family: var(--pf-v6-global--FontFamily--text); */
35
+ /* font-size: var(--pf-v6-global--FontSize--md); */
36
36
  font-weight: 400;
37
37
  line-height: 1.5;
38
38
  }
@@ -40,11 +40,11 @@
40
40
  .ws-code {
41
41
  display: inline-block;
42
42
  background-color: var(--pf-t--global--background--color--secondary--default);
43
- padding: 1px var(--pf-v6-global--spacer--sm);
44
- border: var(--pf-v6-global--BorderWidth--sm) solid var(--pf-v6-global--BorderColor--300);
43
+ padding: 1px var(--pf-t--global--spacer--sm);
44
+ /* border: var(--pf-v6-global--BorderWidth--sm) solid var(--pf-v6-global--BorderColor--300); */
45
45
  white-space: pre-wrap;
46
- font-size: var(--pf-v6-global--FontSize--sm);
47
- font-family: var(--pf-v6-global--FontFamily--monospace);
46
+ /* font-size: var(--pf-v6-global--FontSize--sm); */
47
+ /* font-family: var(--pf-v6-global--FontFamily--monospace); */
48
48
  }
49
49
 
50
50
  .ws-p + .ws-code {
@@ -93,78 +93,78 @@
93
93
  * Copied from pf-v6-c-content.
94
94
  */
95
95
  :root {
96
- --pf-v6-c-content--MarginBottom: var(--pf-v6-global--spacer--md);
97
- --pf-v6-c-content--LineHeight: var(--pf-v6-global--LineHeight--md);
98
- --pf-v6-c-content--FontSize: var(--pf-v6-global--FontSize--md);
99
- --pf-v6-c-content--FontWeight: var(--pf-v6-global--FontWeight--normal);
100
- --pf-v6-c-content--Color: var(--pf-v6-global--Color--100);
101
- --pf-v6-c-content--heading--FontFamily: var(--pf-v6-global--FontFamily--heading);
102
- --pf-v6-c-content--h1--MarginTop: var(--pf-v6-global--spacer--lg);
103
- --pf-v6-c-content--h1--MarginBottom: var(--pf-v6-global--spacer--sm);
104
- --pf-v6-c-content--h1--LineHeight: var(--pf-v6-global--LineHeight--sm);
105
- --pf-v6-c-content--h1--FontSize: var(--pf-v6-global--FontSize--2xl);
106
- --pf-v6-c-content--h1--FontWeight: var(--pf-v6-global--FontWeight--normal);
107
- --pf-v6-c-content--h2--MarginTop: var(--pf-v6-global--spacer--lg);
108
- --pf-v6-c-content--h2--MarginBottom: var(--pf-v6-global--spacer--sm);
109
- --pf-v6-c-content--h2--LineHeight: var(--pf-v6-global--LineHeight--sm);
110
- --pf-v6-c-content--h2--FontSize: var(--pf-v6-global--FontSize--xl);
111
- --pf-v6-c-content--h2--FontWeight: var(--pf-v6-global--FontWeight--normal);
112
- --pf-v6-c-content--h3--MarginTop: var(--pf-v6-global--spacer--lg);
113
- --pf-v6-c-content--h3--MarginBottom: var(--pf-v6-global--spacer--sm);
114
- --pf-v6-c-content--h3--LineHeight: var(--pf-v6-global--LineHeight--md);
115
- --pf-v6-c-content--h3--FontSize: var(--pf-v6-global--FontSize--lg);
116
- --pf-v6-c-content--h3--FontWeight: var(--pf-v6-global--FontWeight--normal);
117
- --pf-v6-c-content--h4--MarginTop: var(--pf-v6-global--spacer--lg);
118
- --pf-v6-c-content--h4--MarginBottom: var(--pf-v6-global--spacer--sm);
119
- --pf-v6-c-content--h4--LineHeight: var(--pf-v6-global--LineHeight--md);
120
- --pf-v6-c-content--h4--FontSize: var(--pf-v6-global--FontSize--md);
121
- --pf-v6-c-content--h4--FontWeight: var(--pf-v6-global--FontWeight--semi-bold);
122
- --pf-v6-c-content--h5--MarginTop: var(--pf-v6-global--spacer--lg);
123
- --pf-v6-c-content--h5--MarginBottom: var(--pf-v6-global--spacer--sm);
124
- --pf-v6-c-content--h5--LineHeight: var(--pf-v6-global--LineHeight--md);
125
- --pf-v6-c-content--h5--FontSize: var(--pf-v6-global--FontSize--md);
126
- --pf-v6-c-content--h5--FontWeight: var(--pf-v6-global--FontWeight--semi-bold);
127
- --pf-v6-c-content--h6--MarginTop: var(--pf-v6-global--spacer--lg);
128
- --pf-v6-c-content--h6--MarginBottom: var(--pf-v6-global--spacer--sm);
129
- --pf-v6-c-content--h6--LineHeight: var(--pf-v6-global--LineHeight--md);
130
- --pf-v6-c-content--h6--FontSize: var(--pf-v6-global--FontSize--md);
131
- --pf-v6-c-content--h6--FontWeight: var(--pf-v6-global--FontWeight--semi-bold);
132
- --pf-v6-c-content--small--MarginBottom: var(--pf-v6-global--spacer--md);
133
- --pf-v6-c-content--small--LineHeight: var(--pf-v6-global--LineHeight--md);
134
- --pf-v6-c-content--small--FontSize: var(--pf-v6-global--FontSize--sm);
135
- --pf-v6-c-content--small--Color: var(--pf-v6-global--Color--200);
136
- --pf-v6-c-content--small--FontWeight: var(--pf-v6-global--FontWeight--semi-bold);
137
- --pf-v6-c-content--a--Color: var(--pf-v6-global--link--Color);
138
- --pf-v6-c-content--a--TextDecoration: var(--pf-v6-global--link--TextDecoration);
139
- --pf-v6-c-content--a--hover--Color: var(--pf-v6-global--link--Color--hover);
140
- --pf-v6-c-content--a--hover--TextDecoration: var(--pf-v6-global--link--TextDecoration--hover);
141
- --pf-v6-c-content--blockquote--PaddingTop: var(--pf-v6-global--spacer--md);
142
- --pf-v6-c-content--blockquote--PaddingRight: var(--pf-v6-global--spacer--md);
143
- --pf-v6-c-content--blockquote--PaddingBottom: var(--pf-v6-global--spacer--md);
144
- --pf-v6-c-content--blockquote--PaddingLeft: var(--pf-v6-global--spacer--md);
145
- --pf-v6-c-content--blockquote--FontWeight: var(--pf-v6-global--FontWeight--light);
146
- --pf-v6-c-content--blockquote--Color: var(--pf-v6-global--Color--200);
147
- --pf-v6-c-content--blockquote--BorderLeftColor: var(--pf-v6-global--BorderColor--100);
148
- --pf-v6-c-content--blockquote--BorderLeftWidth: var(--pf-v6-global--BorderWidth--lg);
149
- --pf-v6-c-content--ol--PaddingLeft: var(--pf-v6-global--spacer--lg);
150
- --pf-v6-c-content--ol--MarginTop: var(--pf-v6-global--spacer--md);
151
- --pf-v6-c-content--ol--MarginLeft: var(--pf-v6-global--spacer--lg);
152
- --pf-v6-c-content--ol--nested--MarginTop: var(--pf-v6-global--spacer--sm);
153
- --pf-v6-c-content--ol--nested--MarginLeft: var(--pf-v6-global--spacer--sm);
154
- --pf-v6-c-content--ul--PaddingLeft: var(--pf-v6-global--spacer--lg);
155
- --pf-v6-c-content--ul--MarginTop: var(--pf-v6-global--spacer--md);
156
- --pf-v6-c-content--ul--MarginLeft: var(--pf-v6-global--spacer--lg);
157
- --pf-v6-c-content--ul--nested--MarginTop: var(--pf-v6-global--spacer--sm);
158
- --pf-v6-c-content--ul--nested--MarginLeft: var(--pf-v6-global--spacer--sm);
159
- --pf-v6-c-content--ul--ListStyle: var(--pf-v6-global--ListStyle);
160
- --pf-v6-c-content--li--MarginTop: var(--pf-v6-global--spacer--sm);
161
- --pf-v6-c-content--dl--ColumnGap: var(--pf-v6-global--spacer--2xl);
162
- --pf-v6-c-content--dl--RowGap: var(--pf-v6-global--spacer--md);
163
- --pf-v6-c-content--dt--FontWeight: var(--pf-v6-global--FontWeight--semi-bold);
164
- --pf-v6-c-content--dt--MarginTop: var(--pf-v6-global--spacer--md);
96
+ --pf-v6-c-content--MarginBottom: var(--pf-t--global--spacer--md);
97
+ /* --pf-v6-c-content--LineHeight: var(--pf-v6-global--LineHeight--md); */
98
+ /* --pf-v6-c-content--FontSize: var(--pf-v6-global--FontSize--md); */
99
+ /* --pf-v6-c-content--FontWeight: var(--pf-v6-global--FontWeight--normal); */
100
+ /* --pf-v6-c-content--Color: var(--pf-v6-global--Color--100); */
101
+ /* --pf-v6-c-content--heading--FontFamily: var(--pf-v6-global--FontFamily--heading); */
102
+ --pf-v6-c-content--h1--MarginTop: var(--pf-t--global--spacer--lg);
103
+ --pf-v6-c-content--h1--MarginBottom: var(--pf-t--global--spacer--sm);
104
+ /* --pf-v6-c-content--h1--LineHeight: var(--pf-v6-global--LineHeight--sm); */
105
+ /* --pf-v6-c-content--h1--FontSize: var(--pf-v6-global--FontSize--2xl); */
106
+ /* --pf-v6-c-content--h1--FontWeight: var(--pf-v6-global--FontWeight--normal); */
107
+ --pf-v6-c-content--h2--MarginTop: var(--pf-t--global--spacer--lg);
108
+ --pf-v6-c-content--h2--MarginBottom: var(--pf-t--global--spacer--sm);
109
+ /* --pf-v6-c-content--h2--LineHeight: var(--pf-v6-global--LineHeight--sm); */
110
+ /* --pf-v6-c-content--h2--FontSize: var(--pf-v6-global--FontSize--xl); */
111
+ /* --pf-v6-c-content--h2--FontWeight: var(--pf-v6-global--FontWeight--normal); */
112
+ --pf-v6-c-content--h3--MarginTop: var(--pf-t--global--spacer--lg);
113
+ --pf-v6-c-content--h3--MarginBottom: var(--pf-t--global--spacer--sm);
114
+ /* --pf-v6-c-content--h3--LineHeight: var(--pf-v6-global--LineHeight--md); */
115
+ /* --pf-v6-c-content--h3--FontSize: var(--pf-v6-global--FontSize--lg); */
116
+ /* --pf-v6-c-content--h3--FontWeight: var(--pf-v6-global--FontWeight--normal); */
117
+ --pf-v6-c-content--h4--MarginTop: var(--pf-t--global--spacer--lg);
118
+ --pf-v6-c-content--h4--MarginBottom: var(--pf-t--global--spacer--sm);
119
+ /* --pf-v6-c-content--h4--LineHeight: var(--pf-v6-global--LineHeight--md); */
120
+ /* --pf-v6-c-content--h4--FontSize: var(--pf-v6-global--FontSize--md); */
121
+ /* --pf-v6-c-content--h4--FontWeight: var(--pf-v6-global--FontWeight--semi-bold); */
122
+ --pf-v6-c-content--h5--MarginTop: var(--pf-t--global--spacer--lg);
123
+ --pf-v6-c-content--h5--MarginBottom: var(--pf-t--global--spacer--sm);
124
+ /* --pf-v6-c-content--h5--LineHeight: var(--pf-v6-global--LineHeight--md); */
125
+ /* --pf-v6-c-content--h5--FontSize: var(--pf-v6-global--FontSize--md); */
126
+ /* --pf-v6-c-content--h5--FontWeight: var(--pf-v6-global--FontWeight--semi-bold); */
127
+ --pf-v6-c-content--h6--MarginTop: var(--pf-t--global--spacer--lg);
128
+ --pf-v6-c-content--h6--MarginBottom: var(--pf-t--global--spacer--sm);
129
+ /* --pf-v6-c-content--h6--LineHeight: var(--pf-v6-global--LineHeight--md); */
130
+ /* --pf-v6-c-content--h6--FontSize: var(--pf-v6-global--FontSize--md); */
131
+ /* --pf-v6-c-content--h6--FontWeight: var(--pf-v6-global--FontWeight--semi-bold); */
132
+ --pf-v6-c-content--small--MarginBottom: var(--pf-t--global--spacer--md);
133
+ /* --pf-v6-c-content--small--LineHeight: var(--pf-v6-global--LineHeight--md); */
134
+ /* --pf-v6-c-content--small--FontSize: var(--pf-v6-global--FontSize--sm); */
135
+ /* --pf-v6-c-content--small--Color: var(--pf-v6-global--Color--200); */
136
+ /* --pf-v6-c-content--small--FontWeight: var(--pf-v6-global--FontWeight--semi-bold); */
137
+ /* --pf-v6-c-content--a--Color: var(--pf-v6-global--link--Color); */
138
+ /* --pf-v6-c-content--a--TextDecoration: var(--pf-v6-global--link--TextDecoration); */
139
+ /* --pf-v6-c-content--a--hover--Color: var(--pf-v6-global--link--Color--hover); */
140
+ /* --pf-v6-c-content--a--hover--TextDecoration: var(--pf-v6-global--link--TextDecoration--hover); */
141
+ --pf-v6-c-content--blockquote--PaddingTop: var(--pf-t--global--spacer--md);
142
+ --pf-v6-c-content--blockquote--PaddingRight: var(--pf-t--global--spacer--md);
143
+ --pf-v6-c-content--blockquote--PaddingBottom: var(--pf-t--global--spacer--md);
144
+ --pf-v6-c-content--blockquote--PaddingLeft: var(--pf-t--global--spacer--md);
145
+ /* --pf-v6-c-content--blockquote--FontWeight: var(--pf-v6-global--FontWeight--light); */
146
+ /* --pf-v6-c-content--blockquote--Color: var(--pf-v6-global--Color--200); */
147
+ /* --pf-v6-c-content--blockquote--BorderLeftColor: var(--pf-v6-global--BorderColor--100); */
148
+ /* --pf-v6-c-content--blockquote--BorderLeftWidth: var(--pf-v6-global--BorderWidth--lg); */
149
+ --pf-v6-c-content--ol--PaddingLeft: var(--pf-t--global--spacer--lg);
150
+ --pf-v6-c-content--ol--MarginTop: var(--pf-t--global--spacer--md);
151
+ --pf-v6-c-content--ol--MarginLeft: var(--pf-t--global--spacer--lg);
152
+ --pf-v6-c-content--ol--nested--MarginTop: var(--pf-t--global--spacer--sm);
153
+ --pf-v6-c-content--ol--nested--MarginLeft: var(--pf-t--global--spacer--sm);
154
+ --pf-v6-c-content--ul--PaddingLeft: var(--pf-t--global--spacer--lg);
155
+ --pf-v6-c-content--ul--MarginTop: var(--pf-t--global--spacer--md);
156
+ --pf-v6-c-content--ul--MarginLeft: var(--pf-t--global--spacer--lg);
157
+ --pf-v6-c-content--ul--nested--MarginTop: var(--pf-t--global--spacer--sm);
158
+ --pf-v6-c-content--ul--nested--MarginLeft: var(--pf-t--global--spacer--sm);
159
+ /* --pf-v6-c-content--ul--ListStyle: var(--pf-v6-global--ListStyle); */
160
+ --pf-v6-c-content--li--MarginTop: var(--pf-t--global--spacer--sm);
161
+ --pf-v6-c-content--dl--ColumnGap: var(--pf-t--global--spacer--2xl);
162
+ --pf-v6-c-content--dl--RowGap: var(--pf-t--global--spacer--md);
163
+ /* --pf-v6-c-content--dt--FontWeight: var(--pf-v6-global--FontWeight--semi-bold); */
164
+ --pf-v6-c-content--dt--MarginTop: var(--pf-t--global--spacer--md);
165
165
  --pf-v6-c-content--dt--sm--MarginTop: 0;
166
- --pf-v6-c-content--hr--Height: var(--pf-v6-global--BorderWidth--sm);
167
- --pf-v6-c-content--hr--BackgroundColor: var(--pf-v6-global--BorderColor--100);
166
+ /* --pf-v6-c-content--hr--Height: var(--pf-v6-global--BorderWidth--sm); */
167
+ /* --pf-v6-c-content--hr--BackgroundColor: var(--pf-v6-global--BorderColor--100); */
168
168
  font-size: var(--pf-v6-c-content--FontSize);
169
169
  line-height: var(--pf-v6-c-content--LineHeight);
170
170
  color: var(--pf-v6-c-content--Color); }