@brillout/docpress 0.2.0 → 0.2.1
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/dist/chunk-C3OIVLKV.js +75 -0
- package/dist/{chunk-OEVBWUR6.js.map → chunk-C3OIVLKV.js.map} +1 -1
- package/dist/{chunk-JS5BGVDK.js → chunk-H5CO4N2X.js} +3 -7
- package/dist/{chunk-JS5BGVDK.js.map → chunk-H5CO4N2X.js.map} +1 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/components/features/FeatureList.d.ts +1 -1
- package/dist/components/features/FeatureList.js +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.js +121 -145
- package/dist/index.js.map +1 -1
- package/dist/renderer/_default.page.client.css +1 -0
- package/dist/renderer/_default.page.client.css.map +1 -1
- package/dist/renderer/_default.page.server.d.ts +4 -4
- package/dist/renderer/_default.page.server.js +216 -227
- package/dist/renderer/_default.page.server.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-OEVBWUR6.js +0 -92
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getHeadings,
|
|
5
5
|
parseTitle,
|
|
6
6
|
usePageContext
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-H5CO4N2X.js";
|
|
8
8
|
import {
|
|
9
9
|
Emoji,
|
|
10
10
|
jsxToTextContent,
|
|
@@ -47,87 +47,88 @@ var changelog_default = "/assets/changelog-IPI5F42D.svg";
|
|
|
47
47
|
// src/navigation/NavigationHeader.tsx
|
|
48
48
|
function NavigationHeader() {
|
|
49
49
|
const pageContext = usePageContext();
|
|
50
|
-
return /* @__PURE__ */ React.createElement(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
style: {
|
|
61
|
-
display: "flex",
|
|
62
|
-
alignItems: "center",
|
|
63
|
-
color: "inherit",
|
|
64
|
-
justifyContent: "left",
|
|
65
|
-
textDecoration: "none",
|
|
66
|
-
paddingTop: 12,
|
|
67
|
-
paddingBottom: 7
|
|
50
|
+
return /* @__PURE__ */ React.createElement(
|
|
51
|
+
"div",
|
|
52
|
+
{
|
|
53
|
+
id: "navigation-header",
|
|
54
|
+
style: {
|
|
55
|
+
display: "flex",
|
|
56
|
+
flexDirection: "column",
|
|
57
|
+
alignItems: "center",
|
|
58
|
+
marginBottom: -5
|
|
59
|
+
}
|
|
68
60
|
},
|
|
69
|
-
|
|
70
|
-
|
|
61
|
+
/* @__PURE__ */ React.createElement(
|
|
62
|
+
"a",
|
|
63
|
+
{
|
|
64
|
+
id: "navigation-header-logo",
|
|
65
|
+
style: {
|
|
66
|
+
display: "flex",
|
|
67
|
+
alignItems: "center",
|
|
68
|
+
color: "inherit",
|
|
69
|
+
justifyContent: "left",
|
|
70
|
+
textDecoration: "none",
|
|
71
|
+
paddingTop: 12,
|
|
72
|
+
paddingBottom: 7
|
|
73
|
+
},
|
|
74
|
+
href: "/"
|
|
75
|
+
},
|
|
76
|
+
pageContext.config.navHeader
|
|
77
|
+
),
|
|
78
|
+
/* @__PURE__ */ React.createElement(Links, null)
|
|
79
|
+
);
|
|
71
80
|
}
|
|
72
81
|
function Links() {
|
|
73
82
|
const pageContext = usePageContext();
|
|
74
83
|
const { projectInfo } = pageContext.config;
|
|
75
|
-
return /* @__PURE__ */ React.createElement(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
href: projectInfo.githubRepository
|
|
86
|
-
|
|
87
|
-
className: "decolorize-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
className: "decolorize-7",
|
|
92
|
-
icon: twitter_default,
|
|
93
|
-
href: projectInfo.twitterProfile
|
|
94
|
-
}), /* @__PURE__ */ React.createElement("div", {
|
|
95
|
-
id: "docsearch-desktop"
|
|
96
|
-
}), /* @__PURE__ */ React.createElement(ChangelogButton, null));
|
|
84
|
+
return /* @__PURE__ */ React.createElement(
|
|
85
|
+
"div",
|
|
86
|
+
{
|
|
87
|
+
style: {
|
|
88
|
+
display: "flex",
|
|
89
|
+
alignItems: "center",
|
|
90
|
+
paddingTop: 0,
|
|
91
|
+
justifyContent: "left"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
/* @__PURE__ */ React.createElement(SocialLink, { className: "decolorize-4", icon: github_default, href: projectInfo.githubRepository }),
|
|
95
|
+
/* @__PURE__ */ React.createElement(SocialLink, { className: "decolorize-6", icon: discord_default, href: projectInfo.discordInvite }),
|
|
96
|
+
/* @__PURE__ */ React.createElement(SocialLink, { className: "decolorize-7", icon: twitter_default, href: projectInfo.twitterProfile }),
|
|
97
|
+
/* @__PURE__ */ React.createElement("div", { id: "docsearch-desktop" }),
|
|
98
|
+
/* @__PURE__ */ React.createElement(ChangelogButton, null)
|
|
99
|
+
);
|
|
97
100
|
}
|
|
98
101
|
function ChangelogButton() {
|
|
99
102
|
const pageContext = usePageContext();
|
|
100
103
|
const { projectInfo } = pageContext.config;
|
|
101
|
-
return /* @__PURE__ */ React.createElement(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
className: "decolorize-
|
|
116
|
-
src: changelog_default,
|
|
117
|
-
|
|
118
|
-
style: { marginLeft: 5 }
|
|
119
|
-
}));
|
|
104
|
+
return /* @__PURE__ */ React.createElement(
|
|
105
|
+
"a",
|
|
106
|
+
{
|
|
107
|
+
href: `${projectInfo.githubRepository}/blob/main/CHANGELOG.md`,
|
|
108
|
+
className: "button colorize-on-hover",
|
|
109
|
+
style: {
|
|
110
|
+
display: "flex",
|
|
111
|
+
alignItems: "center",
|
|
112
|
+
padding: "1px 7px",
|
|
113
|
+
marginLeft: 2,
|
|
114
|
+
fontSize: "0.97em",
|
|
115
|
+
color: "inherit"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
/* @__PURE__ */ React.createElement("span", { className: "decolorize-7" }, "v", projectInfo.projectVersion),
|
|
119
|
+
/* @__PURE__ */ React.createElement("img", { className: "decolorize-6", src: changelog_default, height: 16, style: { marginLeft: 5 } })
|
|
120
|
+
);
|
|
120
121
|
}
|
|
121
122
|
function SocialLink({ className, icon, href }) {
|
|
122
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
style: {}
|
|
130
|
-
|
|
123
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
124
|
+
"a",
|
|
125
|
+
{
|
|
126
|
+
className: "colorize-on-hover " + className,
|
|
127
|
+
href,
|
|
128
|
+
style: { padding: 3, display: "inline-block", lineHeight: 0 }
|
|
129
|
+
},
|
|
130
|
+
/* @__PURE__ */ React.createElement("img", { src: icon, height: "20", style: {} })
|
|
131
|
+
));
|
|
131
132
|
}
|
|
132
133
|
|
|
133
134
|
// src/navigation/navigation-fullscreen/NavigationFullscreenButton.tsx
|
|
@@ -138,34 +139,38 @@ var close_default = "/assets/close-IQXTDOHV.svg";
|
|
|
138
139
|
|
|
139
140
|
// src/navigation/navigation-fullscreen/NavigationFullscreenButton.tsx
|
|
140
141
|
function NavigationFullscreenButton() {
|
|
141
|
-
return /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement("a", {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
142
|
+
return /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement("a", { id: "navigation-fullscreen-button" }, /* @__PURE__ */ React2.createElement(
|
|
143
|
+
"div",
|
|
144
|
+
{
|
|
145
|
+
style: {
|
|
146
|
+
position: "fixed",
|
|
147
|
+
cursor: "pointer",
|
|
148
|
+
height: "100vh",
|
|
149
|
+
width: 20,
|
|
150
|
+
overflow: "hidden"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
/* @__PURE__ */ React2.createElement("div", null)
|
|
154
|
+
), /* @__PURE__ */ React2.createElement(
|
|
155
|
+
"div",
|
|
156
|
+
{
|
|
157
|
+
style: { position: "fixed", height: "100vh", width: 20 },
|
|
158
|
+
"aria-label": "Press <Esc>",
|
|
159
|
+
"data-balloon-pos": "right"
|
|
150
160
|
}
|
|
151
|
-
|
|
152
|
-
style: { position: "fixed", height: "100vh", width: 20 },
|
|
153
|
-
"aria-label": "Press <Esc>",
|
|
154
|
-
"data-balloon-pos": "right"
|
|
155
|
-
})));
|
|
161
|
+
)));
|
|
156
162
|
}
|
|
157
163
|
function NavigationFullscreenClose() {
|
|
158
|
-
return /* @__PURE__ */ React2.createElement(
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
width: 50,
|
|
167
|
-
|
|
168
|
-
}));
|
|
164
|
+
return /* @__PURE__ */ React2.createElement(
|
|
165
|
+
"a",
|
|
166
|
+
{
|
|
167
|
+
id: "navigation-fullscreen-close",
|
|
168
|
+
style: { position: "fixed", top: 11, right: 15, zIndex: 10 },
|
|
169
|
+
"aria-label": "Press <Esc>",
|
|
170
|
+
"data-balloon-pos": "left"
|
|
171
|
+
},
|
|
172
|
+
/* @__PURE__ */ React2.createElement("img", { src: close_default, height: 50, width: 50, style: { display: "block" } })
|
|
173
|
+
);
|
|
169
174
|
}
|
|
170
175
|
|
|
171
176
|
// src/navigation/Navigation.tsx
|
|
@@ -173,54 +178,39 @@ function Navigation({
|
|
|
173
178
|
pageContext
|
|
174
179
|
}) {
|
|
175
180
|
const { isDetachedPage } = pageContext;
|
|
176
|
-
return /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement("div", {
|
|
177
|
-
id: "navigation-container"
|
|
178
|
-
}, /* @__PURE__ */ React3.createElement(NavigationHeader, null), isDetachedPage && /* @__PURE__ */ React3.createElement(DetachedPageNote, null), /* @__PURE__ */ React3.createElement(NavigationContent, {
|
|
179
|
-
pageContext
|
|
180
|
-
}), /* @__PURE__ */ React3.createElement(NavigationFullscreenClose, null)));
|
|
181
|
+
return /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement("div", { id: "navigation-container" }, /* @__PURE__ */ React3.createElement(NavigationHeader, null), isDetachedPage && /* @__PURE__ */ React3.createElement(DetachedPageNote, null), /* @__PURE__ */ React3.createElement(NavigationContent, { pageContext }), /* @__PURE__ */ React3.createElement(NavigationFullscreenClose, null)));
|
|
181
182
|
}
|
|
182
183
|
function NavigationMask() {
|
|
183
|
-
return /* @__PURE__ */ React3.createElement("div", {
|
|
184
|
-
id: "navigation-mask"
|
|
185
|
-
});
|
|
184
|
+
return /* @__PURE__ */ React3.createElement("div", { id: "navigation-mask" });
|
|
186
185
|
}
|
|
187
186
|
function NavigationContent({
|
|
188
187
|
pageContext
|
|
189
188
|
}) {
|
|
190
189
|
const headings = getHeadingsWithComputedProps(pageContext);
|
|
191
190
|
const headingsGrouped = groupHeadings(headings);
|
|
192
|
-
return /* @__PURE__ */ React3.createElement("div", {
|
|
193
|
-
id: "navigation-content"
|
|
194
|
-
}, /* @__PURE__ */ React3.createElement("div", {
|
|
195
|
-
className: "nav-column",
|
|
196
|
-
style: { position: "relative" }
|
|
197
|
-
}, headingsGrouped.map((headingsH1, i) => /* @__PURE__ */ React3.createElement("div", {
|
|
198
|
-
className: "nav-h1-group",
|
|
199
|
-
key: i
|
|
200
|
-
}, /* @__PURE__ */ React3.createElement(Heading, {
|
|
201
|
-
heading: headingsH1
|
|
202
|
-
}), headingsH1.headings.map((heading, j) => /* @__PURE__ */ React3.createElement(Heading, {
|
|
203
|
-
heading,
|
|
204
|
-
key: j
|
|
205
|
-
}))))));
|
|
191
|
+
return /* @__PURE__ */ React3.createElement("div", { id: "navigation-content" }, /* @__PURE__ */ React3.createElement("div", { className: "nav-column", style: { position: "relative" } }, headingsGrouped.map((headingsH1, i) => /* @__PURE__ */ React3.createElement("div", { className: "nav-h1-group", key: i }, /* @__PURE__ */ React3.createElement(Heading, { heading: headingsH1 }), headingsH1.headings.map((heading, j) => /* @__PURE__ */ React3.createElement(Heading, { heading, key: j }))))));
|
|
206
192
|
}
|
|
207
193
|
function Heading({
|
|
208
194
|
heading
|
|
209
195
|
}) {
|
|
210
196
|
assert([1, 2, 3, 4].includes(heading.level), heading);
|
|
211
|
-
return /* @__PURE__ */ React3.createElement(
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
197
|
+
return /* @__PURE__ */ React3.createElement(
|
|
198
|
+
"a",
|
|
199
|
+
{
|
|
200
|
+
className: [
|
|
201
|
+
"nav-item",
|
|
202
|
+
"nav-item-h" + heading.level,
|
|
203
|
+
heading.computed.isActive && " is-active",
|
|
204
|
+
heading.computed.isActiveFirst && " is-active-first",
|
|
205
|
+
heading.computed.isActiveLast && " is-active-last",
|
|
206
|
+
heading.computed.isChildOfListHeading && "nav-item-parent-is-list-heading",
|
|
207
|
+
heading.computed.isFirstOfItsKind && "nav-item-first-of-its-kind",
|
|
208
|
+
heading.computed.isLastOfItsKind && "nav-item-last-of-its-kind"
|
|
209
|
+
].filter(Boolean).join(" "),
|
|
210
|
+
href: heading.url || void 0
|
|
211
|
+
},
|
|
212
|
+
heading.titleInNav
|
|
213
|
+
);
|
|
224
214
|
}
|
|
225
215
|
function groupHeadings(headings) {
|
|
226
216
|
const headingsGrouped = [];
|
|
@@ -274,117 +264,118 @@ function getHeadingsWithComputedProps(pageContext) {
|
|
|
274
264
|
});
|
|
275
265
|
}
|
|
276
266
|
function DetachedPageNote() {
|
|
277
|
-
return /* @__PURE__ */ React3.createElement(
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
267
|
+
return /* @__PURE__ */ React3.createElement(
|
|
268
|
+
"div",
|
|
269
|
+
{
|
|
270
|
+
id: "detached-note",
|
|
271
|
+
style: {
|
|
272
|
+
backgroundColor: "var(--background-color)",
|
|
273
|
+
textAlign: "left",
|
|
274
|
+
marginLeft: 10,
|
|
275
|
+
marginRight: 10,
|
|
276
|
+
marginTop: 30,
|
|
277
|
+
marginBottom: -8,
|
|
278
|
+
borderRadius: 5,
|
|
279
|
+
padding: 10
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
/* @__PURE__ */ React3.createElement(Emoji, { name: "info" }),
|
|
283
|
+
" ",
|
|
284
|
+
/* @__PURE__ */ React3.createElement("b", null, /* @__PURE__ */ React3.createElement("em", null, "Detached")),
|
|
285
|
+
/* @__PURE__ */ React3.createElement(
|
|
286
|
+
"span",
|
|
287
|
+
{
|
|
288
|
+
style: {
|
|
289
|
+
opacity: 0.8
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
" ",
|
|
293
|
+
"\u2014 this page isn't listed in the navigation menu below."
|
|
294
|
+
)
|
|
295
|
+
);
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
// src/MobileHeader.tsx
|
|
299
299
|
import React4 from "react";
|
|
300
300
|
function MobileHeader() {
|
|
301
301
|
const pageContext = usePageContext();
|
|
302
|
-
return /* @__PURE__ */ React4.createElement(
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
302
|
+
return /* @__PURE__ */ React4.createElement(
|
|
303
|
+
"div",
|
|
304
|
+
{
|
|
305
|
+
id: "mobile-header",
|
|
306
|
+
style: {
|
|
307
|
+
height: "var(--mobile-header-height)",
|
|
308
|
+
width: "100vw",
|
|
309
|
+
position: "relative"
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
/* @__PURE__ */ React4.createElement(
|
|
313
|
+
"div",
|
|
314
|
+
{
|
|
315
|
+
style: {
|
|
316
|
+
position: "fixed",
|
|
317
|
+
display: "flex",
|
|
318
|
+
alignItems: "center",
|
|
319
|
+
background: "white",
|
|
320
|
+
zIndex: 99,
|
|
321
|
+
top: 0,
|
|
322
|
+
left: 0,
|
|
323
|
+
height: "var(--mobile-header-height)",
|
|
324
|
+
width: "100%",
|
|
325
|
+
borderBottom: "1px solid #ddd"
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
/* @__PURE__ */ React4.createElement(MenuToggle, null),
|
|
329
|
+
/* @__PURE__ */ React4.createElement(
|
|
330
|
+
"a",
|
|
331
|
+
{
|
|
332
|
+
href: "/",
|
|
333
|
+
style: {
|
|
334
|
+
color: "inherit",
|
|
335
|
+
display: "flex",
|
|
336
|
+
alignItems: "center",
|
|
337
|
+
justifyContent: "left",
|
|
338
|
+
textDecoration: "none"
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
pageContext.config.navHeaderMobile
|
|
342
|
+
),
|
|
343
|
+
/* @__PURE__ */ React4.createElement("div", { id: "docsearch-mobile" })
|
|
344
|
+
)
|
|
345
|
+
);
|
|
334
346
|
}
|
|
335
347
|
function MenuToggle() {
|
|
336
|
-
return /* @__PURE__ */ React4.createElement("div", {
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
348
|
+
return /* @__PURE__ */ React4.createElement("div", { style: { padding: 20, lineHeight: 0 }, id: "menu-toggle" }, /* @__PURE__ */ React4.createElement(
|
|
349
|
+
"svg",
|
|
350
|
+
{
|
|
351
|
+
style: { width: 20 },
|
|
352
|
+
className: "icon",
|
|
353
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
354
|
+
"aria-hidden": "true",
|
|
355
|
+
role: "img",
|
|
356
|
+
viewBox: "0 0 448 512"
|
|
357
|
+
},
|
|
358
|
+
/* @__PURE__ */ React4.createElement(
|
|
359
|
+
"path",
|
|
360
|
+
{
|
|
361
|
+
fill: "currentColor",
|
|
362
|
+
d: "M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"
|
|
363
|
+
}
|
|
364
|
+
)
|
|
365
|
+
));
|
|
350
366
|
}
|
|
351
367
|
|
|
352
368
|
// src/components/EditPageNote.tsx
|
|
353
369
|
import React5 from "react";
|
|
354
370
|
function EditPageNote({ pageContext }) {
|
|
355
|
-
const text = /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(Emoji, {
|
|
356
|
-
|
|
357
|
-
}), " Edit this page");
|
|
358
|
-
return /* @__PURE__ */ React5.createElement("div", {
|
|
359
|
-
style: { marginTop: 50 }
|
|
360
|
-
}, /* @__PURE__ */ React5.createElement(RepoLink, {
|
|
361
|
-
path: "/docs/pages" + pageContext.urlPathname + ".page.server.mdx",
|
|
362
|
-
text,
|
|
363
|
-
editMode: true
|
|
364
|
-
}));
|
|
371
|
+
const text = /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(Emoji, { name: "writing-hang" }), " Edit this page");
|
|
372
|
+
return /* @__PURE__ */ React5.createElement("div", { style: { marginTop: 50 } }, /* @__PURE__ */ React5.createElement(RepoLink, { path: "/docs/pages" + pageContext.urlPathname + ".page.server.mdx", text, editMode: true }));
|
|
365
373
|
}
|
|
366
374
|
|
|
367
375
|
// src/PageLayout.tsx
|
|
368
376
|
function PageLayout({ pageContext, children }) {
|
|
369
377
|
const { isLandingPage, pageTitle } = pageContext;
|
|
370
|
-
return /* @__PURE__ */ React6.createElement(React6.StrictMode, null, /* @__PURE__ */ React6.createElement(PageContextProvider, {
|
|
371
|
-
pageContext
|
|
372
|
-
}, /* @__PURE__ */ React6.createElement("div", {
|
|
373
|
-
id: "page-layout",
|
|
374
|
-
className: isLandingPage ? "landing-page" : "doc-page"
|
|
375
|
-
}, /* @__PURE__ */ React6.createElement("div", {
|
|
376
|
-
id: "navigation-wrapper"
|
|
377
|
-
}, /* @__PURE__ */ React6.createElement(Navigation, {
|
|
378
|
-
pageContext
|
|
379
|
-
})), /* @__PURE__ */ React6.createElement(NavigationFullscreenButton, null), /* @__PURE__ */ React6.createElement("div", {
|
|
380
|
-
id: "page-wrapper"
|
|
381
|
-
}, /* @__PURE__ */ React6.createElement("div", {
|
|
382
|
-
id: "page-container"
|
|
383
|
-
}, /* @__PURE__ */ React6.createElement(MobileHeader, null), /* @__PURE__ */ React6.createElement("div", {
|
|
384
|
-
id: "page-content"
|
|
385
|
-
}, pageTitle && /* @__PURE__ */ React6.createElement("h1", null, pageTitle), children, !isLandingPage && /* @__PURE__ */ React6.createElement(EditPageNote, {
|
|
386
|
-
pageContext
|
|
387
|
-
}))), /* @__PURE__ */ React6.createElement(NavigationMask, null)))));
|
|
378
|
+
return /* @__PURE__ */ React6.createElement(React6.StrictMode, null, /* @__PURE__ */ React6.createElement(PageContextProvider, { pageContext }, /* @__PURE__ */ React6.createElement("div", { id: "page-layout", className: isLandingPage ? "landing-page" : "doc-page" }, /* @__PURE__ */ React6.createElement("div", { id: "navigation-wrapper" }, /* @__PURE__ */ React6.createElement(Navigation, { pageContext })), /* @__PURE__ */ React6.createElement(NavigationFullscreenButton, null), /* @__PURE__ */ React6.createElement("div", { id: "page-wrapper" }, /* @__PURE__ */ React6.createElement("div", { id: "page-container" }, /* @__PURE__ */ React6.createElement(MobileHeader, null), /* @__PURE__ */ React6.createElement("div", { id: "page-content" }, pageTitle && /* @__PURE__ */ React6.createElement("h1", null, pageTitle), children, !isLandingPage && /* @__PURE__ */ React6.createElement(EditPageNote, { pageContext }))), /* @__PURE__ */ React6.createElement(NavigationMask, null)))));
|
|
388
379
|
}
|
|
389
380
|
|
|
390
381
|
// src/config/getConfig.ts
|
|
@@ -556,9 +547,7 @@ function parseEmojis(html) {
|
|
|
556
547
|
async function render(pageContextOriginal) {
|
|
557
548
|
const { Page } = pageContextOriginal;
|
|
558
549
|
const pageContextResolved = resolvePageContext(pageContextOriginal);
|
|
559
|
-
const page = /* @__PURE__ */ React7.createElement(PageLayout, {
|
|
560
|
-
pageContext: pageContextResolved
|
|
561
|
-
}, /* @__PURE__ */ React7.createElement(Page, null));
|
|
550
|
+
const page = /* @__PURE__ */ React7.createElement(PageLayout, { pageContext: pageContextResolved }, /* @__PURE__ */ React7.createElement(Page, null));
|
|
562
551
|
const descriptionTag = pageContextResolved.isLandingPage ? dangerouslySkipEscape(`<meta name="description" content="${pageContextResolved.meta.tagline}" />`) : "";
|
|
563
552
|
const docSearchJS = getDocSearchJS(pageContextResolved);
|
|
564
553
|
const docSearchCSS = getDocSearchCSS(pageContextResolved);
|