@patternfly/documentation-framework 6.0.0-alpha.54 → 6.0.0-alpha.55
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 +11 -0
- package/package.json +3 -3
- package/templates/mdx.css +3 -87
- package/templates/mdx.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.55 (2024-07-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* clean up mdx.css (after examples.css merges) ([#4084](https://github.com/patternfly/patternfly-org/issues/4084)) ([6e7f86f](https://github.com/patternfly/patternfly-org/commit/6e7f86ffb8346449a6ad26338df157a71e4730aa))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# 6.0.0-alpha.54 (2024-07-08)
|
|
7
18
|
|
|
8
19
|
|
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.
|
|
4
|
+
"version": "6.0.0-alpha.55",
|
|
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.
|
|
16
|
+
"@patternfly/ast-helpers": "^1.4.0-alpha.44",
|
|
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": "8ca7778e73cf01814c9ba6e410f00f9351cb8e50"
|
|
84
84
|
}
|
package/templates/mdx.css
CHANGED
|
@@ -1,99 +1,15 @@
|
|
|
1
|
-
#ws-page-content-router {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
flex-grow: 1;
|
|
5
|
-
flex-shrink: 0;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.ws-release-notes-toc {
|
|
9
|
-
margin-bottom: var(--pf-t--global--spacer--lg);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.ws-release-notes-toc .pf-v6-c-card {
|
|
13
|
-
height: 100%;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.ws-release-notes-toc .pf-v6-c-card__title {
|
|
17
|
-
padding-bottom: var(--pf-t--global--spacer--xs);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.ws-release-notes-toc .pf-v6-c-card__title .pf-v6-c-title {
|
|
21
|
-
display: inline;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.ws-release-notes-toc .pf-v6-c-card__title a {
|
|
25
|
-
margin-right: var(--pf-t--global--spacer--sm);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.ws-release-notes-toc .pf-v6-c-card__title .pf-v6-c-badge {
|
|
29
|
-
vertical-align: text-top;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.ws-release-notes-toc .pf-v6-c-card__body {
|
|
33
|
-
color: #72767B;
|
|
34
|
-
/* font-family: var(--pf-v6-global--FontFamily--text); */
|
|
35
|
-
/* font-size: var(--pf-v6-global--FontSize--md); */
|
|
36
|
-
font-weight: 400;
|
|
37
|
-
line-height: 1.5;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
1
|
.ws-code {
|
|
41
2
|
display: inline-block;
|
|
42
3
|
background-color: var(--pf-t--global--background--color--secondary--default);
|
|
43
4
|
padding: 1px var(--pf-t--global--spacer--sm);
|
|
44
|
-
|
|
5
|
+
border: var(--pf-t--global--border--width--regular) solid var(--pf-t--global--border--color--nonstatus--gray--default);
|
|
45
6
|
white-space: pre-wrap;
|
|
46
|
-
|
|
47
|
-
|
|
7
|
+
font-size: var(--pf-t--global--font--size--body--sm);
|
|
8
|
+
font-family: var(--pf-t--global--font--family--mono);
|
|
48
9
|
}
|
|
49
10
|
|
|
50
11
|
.ws-image {
|
|
51
12
|
text-align: center;
|
|
52
|
-
width: "600px";
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/* Table styles */
|
|
56
|
-
/* Undo patternfly reset to respect MD table styles */
|
|
57
|
-
.ws-table td[align="center"],
|
|
58
|
-
.ws-table th[align="center"] {
|
|
59
|
-
text-align: center;
|
|
60
|
-
}
|
|
61
|
-
.ws-table td[align="left"],
|
|
62
|
-
.ws-table th[align="left"] {
|
|
63
|
-
text-align: left;
|
|
64
|
-
}
|
|
65
|
-
.ws-table td[align="right"],
|
|
66
|
-
.ws-table th[align="right"] {
|
|
67
|
-
text-align: right;
|
|
68
|
-
}
|
|
69
|
-
.ws-content-table > .ws-table {
|
|
70
|
-
table-layout: fixed;
|
|
71
|
-
width: 100%;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.ws-image {
|
|
75
|
-
text-align: center;
|
|
76
|
-
width: "600px";
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.ws-table td > code,
|
|
80
|
-
.ws-table th > code,
|
|
81
|
-
.ws-table tr > code {
|
|
82
|
-
white-space: normal;
|
|
83
|
-
}
|
|
84
|
-
.ws-table tbody > tr > td {
|
|
85
|
-
vertical-align: top;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
@media screen and (max-width: 1450px) {
|
|
89
|
-
.ws-mdx-child-template {
|
|
90
|
-
flex-direction: column;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/* Design asked for this. A nice side effect is that the TOC doesn't "jump" between pages */
|
|
95
|
-
.ws-mdx-content-content {
|
|
96
|
-
max-width: 832px;
|
|
97
13
|
}
|
|
98
14
|
|
|
99
15
|
.ws-back-to-top {
|
package/templates/mdx.js
CHANGED
|
@@ -91,7 +91,7 @@ const MDXChildTemplate = ({
|
|
|
91
91
|
{toc.length > 1 && (
|
|
92
92
|
<TableOfContents items={toc} />
|
|
93
93
|
)}
|
|
94
|
-
<
|
|
94
|
+
<Stack hasGutter={isComponentCodeDocs} style={{...(source !== 'landing-pages' && {maxWidth: "825px"})}}>
|
|
95
95
|
{InlineAlerts}
|
|
96
96
|
<Component />
|
|
97
97
|
{functionDocumentation.length > 0 && (
|
|
@@ -134,7 +134,7 @@ const MDXChildTemplate = ({
|
|
|
134
134
|
<a href={sourceLink} target="_blank" onClick={() => trackEvent('view_source_click', 'click_event', source.toUpperCase())}>View source on GitHub</a>
|
|
135
135
|
</StackItem>
|
|
136
136
|
)}
|
|
137
|
-
</
|
|
137
|
+
</Stack>
|
|
138
138
|
</div>
|
|
139
139
|
);
|
|
140
140
|
ChildComponent.displayName = `MDXChildTemplate${Component.displayName}`;
|