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