@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.
@@ -4,7 +4,7 @@ import {
4
4
  getHeadings,
5
5
  parseTitle,
6
6
  usePageContext
7
- } from "../chunk-JS5BGVDK.js";
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("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
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
- href: "/"
70
- }, pageContext.config.navHeader), /* @__PURE__ */ React.createElement(Links, null));
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("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));
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("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
- className: "decolorize-7"
114
- }, "v", projectInfo.projectVersion), /* @__PURE__ */ React.createElement("img", {
115
- className: "decolorize-6",
116
- src: changelog_default,
117
- height: 16,
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("a", {
123
- className: "colorize-on-hover " + className,
124
- href,
125
- style: { padding: 3, display: "inline-block", lineHeight: 0 }
126
- }, /* @__PURE__ */ React.createElement("img", {
127
- src: icon,
128
- height: "20",
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
- id: "navigation-fullscreen-button"
143
- }, /* @__PURE__ */ React2.createElement("div", {
144
- style: {
145
- position: "fixed",
146
- cursor: "pointer",
147
- height: "100vh",
148
- width: 20,
149
- overflow: "hidden"
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
- }, /* @__PURE__ */ React2.createElement("div", null)), /* @__PURE__ */ React2.createElement("div", {
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("a", {
159
- id: "navigation-fullscreen-close",
160
- style: { position: "fixed", top: 11, right: 15, zIndex: 10 },
161
- "aria-label": "Press <Esc>",
162
- "data-balloon-pos": "left"
163
- }, /* @__PURE__ */ React2.createElement("img", {
164
- src: close_default,
165
- height: 50,
166
- width: 50,
167
- style: { display: "block" }
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("a", {
212
- className: [
213
- "nav-item",
214
- "nav-item-h" + heading.level,
215
- heading.computed.isActive && " is-active",
216
- heading.computed.isActiveFirst && " is-active-first",
217
- heading.computed.isActiveLast && " is-active-last",
218
- heading.computed.isChildOfListHeading && "nav-item-parent-is-list-heading",
219
- heading.computed.isFirstOfItsKind && "nav-item-first-of-its-kind",
220
- heading.computed.isLastOfItsKind && "nav-item-last-of-its-kind"
221
- ].filter(Boolean).join(" "),
222
- href: heading.url || void 0
223
- }, heading.titleInNav);
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("div", {
278
- id: "detached-note",
279
- style: {
280
- backgroundColor: "var(--background-color)",
281
- textAlign: "left",
282
- marginLeft: 10,
283
- marginRight: 10,
284
- marginTop: 30,
285
- marginBottom: -8,
286
- borderRadius: 5,
287
- padding: 10
288
- }
289
- }, /* @__PURE__ */ React3.createElement(Emoji, {
290
- name: "info"
291
- }), " ", /* @__PURE__ */ React3.createElement("b", null, /* @__PURE__ */ React3.createElement("em", null, "Detached")), /* @__PURE__ */ React3.createElement("span", {
292
- style: {
293
- opacity: 0.8
294
- }
295
- }, " ", "\u2014 this page isn't listed in the navigation menu below."));
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("div", {
303
- id: "mobile-header",
304
- style: {
305
- height: "var(--mobile-header-height)",
306
- width: "100vw",
307
- position: "relative"
308
- }
309
- }, /* @__PURE__ */ React4.createElement("div", {
310
- style: {
311
- position: "fixed",
312
- display: "flex",
313
- alignItems: "center",
314
- background: "white",
315
- zIndex: 99,
316
- top: 0,
317
- left: 0,
318
- height: "var(--mobile-header-height)",
319
- width: "100%",
320
- borderBottom: "1px solid #ddd"
321
- }
322
- }, /* @__PURE__ */ React4.createElement(MenuToggle, null), /* @__PURE__ */ React4.createElement("a", {
323
- href: "/",
324
- style: {
325
- color: "inherit",
326
- display: "flex",
327
- alignItems: "center",
328
- justifyContent: "left",
329
- textDecoration: "none"
330
- }
331
- }, pageContext.config.navHeaderMobile), /* @__PURE__ */ React4.createElement("div", {
332
- id: "docsearch-mobile"
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
- style: { padding: 20, lineHeight: 0 },
338
- id: "menu-toggle"
339
- }, /* @__PURE__ */ React4.createElement("svg", {
340
- style: { width: 20 },
341
- className: "icon",
342
- xmlns: "http://www.w3.org/2000/svg",
343
- "aria-hidden": "true",
344
- role: "img",
345
- viewBox: "0 0 448 512"
346
- }, /* @__PURE__ */ React4.createElement("path", {
347
- fill: "currentColor",
348
- 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"
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
- name: "writing-hang"
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);