@brillout/docpress 0.4.7 → 0.4.8
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/index.d.ts +9 -3
- package/dist/index.js +23 -2
- package/dist/renderer/_default.page.server.js +2 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -110,9 +110,15 @@ declare function ReadingRecommendation({ tour, links }: {
|
|
|
110
110
|
links: string[];
|
|
111
111
|
}): JSX.Element;
|
|
112
112
|
|
|
113
|
+
declare function Warning({ children }: {
|
|
114
|
+
children: JSX.Element;
|
|
115
|
+
}): JSX.Element;
|
|
116
|
+
declare function Construction({ children }: {
|
|
117
|
+
children: JSX.Element;
|
|
118
|
+
}): JSX.Element;
|
|
113
119
|
declare function Note({ type, icon, children }: {
|
|
114
|
-
icon
|
|
115
|
-
type?: 'error' | 'warning';
|
|
120
|
+
icon?: JSX.Element | string;
|
|
121
|
+
type?: 'error' | 'warning' | 'construction';
|
|
116
122
|
children: JSX.Element;
|
|
117
123
|
}): JSX.Element;
|
|
118
124
|
|
|
@@ -148,4 +154,4 @@ declare function CodeBlock({ children, lineBreak }: {
|
|
|
148
154
|
lineBreak?: true;
|
|
149
155
|
}): JSX.Element;
|
|
150
156
|
|
|
151
|
-
export { CodeBlock, Config, Emoji, EmojiName, HeadingDefinition, HeadingDetachedDefinition, HorizontalLine, ImportMeta, Info, Link, Note, P, ReadingRecommendation, RepoLink, Sponsor, Sponsors, assert, assertUsage, assertWarning, crawlAllFiles, determineSectionTitle, determineSectionUrlHash, filter, isBrowser, isRepoLink, jsxToTextContent, objectAssign };
|
|
157
|
+
export { CodeBlock, Config, Construction, Emoji, EmojiName, HeadingDefinition, HeadingDetachedDefinition, HorizontalLine, ImportMeta, Info, Link, Note, P, ReadingRecommendation, RepoLink, Sponsor, Sponsors, Warning, assert, assertUsage, assertWarning, crawlAllFiles, determineSectionTitle, determineSectionUrlHash, filter, isBrowser, isRepoLink, jsxToTextContent, objectAssign };
|
package/dist/index.js
CHANGED
|
@@ -180,22 +180,38 @@ function TourLink() {
|
|
|
180
180
|
|
|
181
181
|
// src/components/Note.tsx
|
|
182
182
|
import React5 from "react";
|
|
183
|
+
function Warning({ children }) {
|
|
184
|
+
return /* @__PURE__ */ React5.createElement(Note, {
|
|
185
|
+
type: "warning"
|
|
186
|
+
}, children);
|
|
187
|
+
}
|
|
188
|
+
function Construction({ children }) {
|
|
189
|
+
return /* @__PURE__ */ React5.createElement(Note, {
|
|
190
|
+
type: "construction"
|
|
191
|
+
}, children);
|
|
192
|
+
}
|
|
183
193
|
function Note({
|
|
184
194
|
type,
|
|
185
195
|
icon,
|
|
186
196
|
children
|
|
187
197
|
}) {
|
|
188
|
-
|
|
198
|
+
let className;
|
|
189
199
|
if (!icon) {
|
|
190
200
|
if (type === "error") {
|
|
191
201
|
icon = ":no_entry:";
|
|
202
|
+
className = "error";
|
|
192
203
|
}
|
|
193
204
|
if (type === "warning") {
|
|
194
205
|
icon = ":warning:";
|
|
206
|
+
className = "warning";
|
|
207
|
+
}
|
|
208
|
+
if (type === "construction") {
|
|
209
|
+
icon = ":construction:";
|
|
210
|
+
className = "warning";
|
|
195
211
|
}
|
|
196
212
|
}
|
|
197
213
|
return /* @__PURE__ */ React5.createElement("blockquote", {
|
|
198
|
-
className
|
|
214
|
+
className
|
|
199
215
|
}, /* @__PURE__ */ React5.createElement("div", {
|
|
200
216
|
style: { marginBottom: 20 }
|
|
201
217
|
}), icon, " ", children, /* @__PURE__ */ React5.createElement("div", {
|
|
@@ -271,6 +287,9 @@ var inlang_default = "/assets/inlang-GFRWND6X.png";
|
|
|
271
287
|
|
|
272
288
|
// src/components/Sponsors/sponsorsList.ts
|
|
273
289
|
var individuals = [
|
|
290
|
+
{
|
|
291
|
+
username: "harrytran998"
|
|
292
|
+
},
|
|
274
293
|
{
|
|
275
294
|
username: "royalswe"
|
|
276
295
|
},
|
|
@@ -644,6 +663,7 @@ function CodeBlock({ children, lineBreak }) {
|
|
|
644
663
|
}
|
|
645
664
|
export {
|
|
646
665
|
CodeBlock,
|
|
666
|
+
Construction,
|
|
647
667
|
Emoji,
|
|
648
668
|
FeatureList,
|
|
649
669
|
HorizontalLine,
|
|
@@ -655,6 +675,7 @@ export {
|
|
|
655
675
|
ReadingRecommendation,
|
|
656
676
|
RepoLink,
|
|
657
677
|
Sponsors,
|
|
678
|
+
Warning,
|
|
658
679
|
assert,
|
|
659
680
|
assertUsage,
|
|
660
681
|
assertWarning,
|
|
@@ -533,11 +533,6 @@ function getPageHeadings(pageContext, currentHeading) {
|
|
|
533
533
|
markdownHeadings.forEach((markdownHeading) => {
|
|
534
534
|
const title = parseTitle(markdownHeading.title);
|
|
535
535
|
const url = markdownHeading.headingId && "#" + markdownHeading.headingId;
|
|
536
|
-
if (markdownHeading.headingLevel === 3) {
|
|
537
|
-
console.warn(
|
|
538
|
-
"Wrong page heading level `" + markdownHeading.headingLevel + "` (it should be `<h2>`) for sub-heading `" + markdownHeading.title + "` of page `" + pageContext.urlOriginal + "`."
|
|
539
|
-
);
|
|
540
|
-
}
|
|
541
536
|
if (markdownHeading.headingLevel === 2) {
|
|
542
537
|
const heading = {
|
|
543
538
|
url,
|
|
@@ -591,7 +586,8 @@ import twemoji from "twemoji";
|
|
|
591
586
|
var emojiList = {
|
|
592
587
|
":no_entry:": 9940,
|
|
593
588
|
":warning:": 9888,
|
|
594
|
-
":trophy:": 127942
|
|
589
|
+
":trophy:": 127942,
|
|
590
|
+
":construction:": 128679
|
|
595
591
|
};
|
|
596
592
|
function parseEmojis(html) {
|
|
597
593
|
Object.entries(emojiList).forEach(([shortcode, codepoint]) => {
|