livemark 0.2.0 → 0.7.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/LICENSE.md +9 -0
- package/README.md +5 -1
- package/build/actions/changelog/build.d.ts +14 -0
- package/build/actions/changelog/build.js +158 -0
- package/build/actions/changelog/build.unit.js +66 -0
- package/build/actions/config/define.d.ts +6 -0
- package/build/actions/config/define.js +8 -0
- package/build/actions/config/define.unit.js +29 -0
- package/build/actions/config/load.d.ts +5 -0
- package/build/actions/config/load.js +25 -0
- package/build/actions/config/load.unit.js +23 -0
- package/build/commands/build.d.ts +5 -0
- package/build/commands/build.js +14 -0
- package/build/commands/escape.d.ts +9 -0
- package/build/commands/escape.js +56 -0
- package/build/commands/preview.d.ts +5 -0
- package/build/commands/preview.js +18 -0
- package/build/commands/start.d.ts +5 -0
- package/build/commands/start.js +19 -0
- package/build/docs/markdown/includes/example.d.ts +58 -0
- package/build/docs/markdown/includes/example.js +5 -0
- package/build/entrypoints/main.d.ts +2 -0
- package/build/entrypoints/main.js +12 -0
- package/build/helpers/program.d.ts +2 -0
- package/build/helpers/program.js +5 -0
- package/build/index.d.ts +1 -4
- package/build/index.js +2 -5
- package/build/livemark.config.d.ts +58 -0
- package/build/livemark.config.js +25 -0
- package/build/models/config.d.ts +340 -0
- package/build/models/config.js +34 -0
- package/build/models/link.d.ts +13 -0
- package/build/models/link.js +9 -0
- package/build/models/patch.d.ts +21 -0
- package/build/models/patch.js +7 -0
- package/build/models/section.d.ts +75 -0
- package/build/models/section.js +26 -0
- package/build/models/theme.d.ts +72 -0
- package/build/models/theme.js +73 -0
- package/build/program.d.ts +2 -0
- package/build/program.js +16 -0
- package/build/vite.config.d.ts +2 -0
- package/build/vite.config.js +48 -0
- package/build/website/assets/logo.svg +117 -0
- package/build/website/client.tsx +10 -0
- package/build/website/components/Abbr.tsx +17 -0
- package/build/website/components/AnsiCode.tsx +15 -0
- package/build/website/components/Article.tsx +172 -0
- package/build/website/components/BackToTop.tsx +32 -0
- package/build/website/components/Banner.tsx +32 -0
- package/build/website/components/BlogIndex.tsx +121 -0
- package/build/website/components/BlogSidebar.tsx +162 -0
- package/build/website/components/Breadcrumbs.tsx +22 -0
- package/build/website/components/Callout.tsx +72 -0
- package/build/website/components/Card.tsx +48 -0
- package/build/website/components/Cards.tsx +8 -0
- package/build/website/components/ChangelogIndex.tsx +111 -0
- package/build/website/components/ChangelogSidebar.tsx +120 -0
- package/build/website/components/CodeBlock.tsx +135 -0
- package/build/website/components/CodeTabs.tsx +83 -0
- package/build/website/components/Column.tsx +4 -0
- package/build/website/components/Columns.tsx +12 -0
- package/build/website/components/Content.tsx +7 -0
- package/build/website/components/ContentTab.tsx +7 -0
- package/build/website/components/ContentTabs.tsx +82 -0
- package/build/website/components/DefaultCatchBoundary.tsx +54 -0
- package/build/website/components/DefinitionList.tsx +21 -0
- package/build/website/components/Details.tsx +30 -0
- package/build/website/components/FileTree.tsx +52 -0
- package/build/website/components/Footer.tsx +16 -0
- package/build/website/components/FootnoteRef.tsx +52 -0
- package/build/website/components/Heading.tsx +20 -0
- package/build/website/components/InlineBadge.tsx +9 -0
- package/build/website/components/InlineIcon.tsx +10 -0
- package/build/website/components/InlineToc.tsx +31 -0
- package/build/website/components/Layout.tsx +190 -0
- package/build/website/components/LinkButton.tsx +31 -0
- package/build/website/components/Mermaid.tsx +18 -0
- package/build/website/components/MermaidRenderer.tsx +37 -0
- package/build/website/components/MiniSidebar.tsx +49 -0
- package/build/website/components/NotFound.tsx +27 -0
- package/build/website/components/PackageTabs.tsx +74 -0
- package/build/website/components/PageToolbar.tsx +75 -0
- package/build/website/components/PrevNext.tsx +60 -0
- package/build/website/components/Search.tsx +28 -0
- package/build/website/components/SearchDialog.tsx +245 -0
- package/build/website/components/Section.tsx +24 -0
- package/build/website/components/SectionHeader.tsx +35 -0
- package/build/website/components/Sidebar.tsx +160 -0
- package/build/website/components/SidebarLinks.tsx +70 -0
- package/build/website/components/SidebarSections.tsx +71 -0
- package/build/website/components/SiteTitle.tsx +21 -0
- package/build/website/components/SortableTable.tsx +81 -0
- package/build/website/components/SoundCloud.tsx +16 -0
- package/build/website/components/TagIndex.tsx +120 -0
- package/build/website/components/Theme.tsx +39 -0
- package/build/website/components/Toc.tsx +226 -0
- package/build/website/components/YouTube.tsx +16 -0
- package/build/website/components/ZoomImage.tsx +25 -0
- package/build/website/content/article.ts +78 -0
- package/build/website/content/tag.ts +29 -0
- package/build/website/content-collections.ts +208 -0
- package/build/website/elements/accordion.tsx +78 -0
- package/build/website/elements/alert-dialog.tsx +185 -0
- package/build/website/elements/alert.tsx +74 -0
- package/build/website/elements/aspect-ratio.tsx +22 -0
- package/build/website/elements/avatar.tsx +107 -0
- package/build/website/elements/badge.tsx +51 -0
- package/build/website/elements/breadcrumb.tsx +120 -0
- package/build/website/elements/button-group.tsx +87 -0
- package/build/website/elements/button.tsx +57 -0
- package/build/website/elements/calendar.tsx +229 -0
- package/build/website/elements/card.tsx +102 -0
- package/build/website/elements/carousel.tsx +240 -0
- package/build/website/elements/chart.tsx +372 -0
- package/build/website/elements/checkbox.tsx +26 -0
- package/build/website/elements/collapsible.tsx +19 -0
- package/build/website/elements/command.tsx +210 -0
- package/build/website/elements/context-menu.tsx +270 -0
- package/build/website/elements/dialog.tsx +152 -0
- package/build/website/elements/direction.tsx +4 -0
- package/build/website/elements/drawer.tsx +127 -0
- package/build/website/elements/dropdown-menu.tsx +260 -0
- package/build/website/elements/empty.tsx +104 -0
- package/build/website/elements/field.tsx +235 -0
- package/build/website/elements/hover-card.tsx +49 -0
- package/build/website/elements/input-group.tsx +171 -0
- package/build/website/elements/input-otp.tsx +84 -0
- package/build/website/elements/input.tsx +18 -0
- package/build/website/elements/item.tsx +199 -0
- package/build/website/elements/kbd.tsx +26 -0
- package/build/website/elements/label.tsx +17 -0
- package/build/website/elements/menubar.tsx +282 -0
- package/build/website/elements/native-select.tsx +56 -0
- package/build/website/elements/navigation-menu.tsx +171 -0
- package/build/website/elements/pagination.tsx +133 -0
- package/build/website/elements/popover.tsx +88 -0
- package/build/website/elements/progress.tsx +81 -0
- package/build/website/elements/radio-group.tsx +36 -0
- package/build/website/elements/resizable.tsx +48 -0
- package/build/website/elements/scroll-area.tsx +51 -0
- package/build/website/elements/select.tsx +200 -0
- package/build/website/elements/separator.tsx +22 -0
- package/build/website/elements/sheet.tsx +130 -0
- package/build/website/elements/sidebar.tsx +717 -0
- package/build/website/elements/skeleton.tsx +13 -0
- package/build/website/elements/slider.tsx +57 -0
- package/build/website/elements/sonner.tsx +40 -0
- package/build/website/elements/spinner.tsx +16 -0
- package/build/website/elements/switch.tsx +30 -0
- package/build/website/elements/table.tsx +112 -0
- package/build/website/elements/tabs.tsx +79 -0
- package/build/website/elements/textarea.tsx +16 -0
- package/build/website/elements/toggle-group.tsx +87 -0
- package/build/website/elements/toggle.tsx +43 -0
- package/build/website/elements/tooltip.tsx +67 -0
- package/build/website/env.d.ts +14 -0
- package/build/website/helpers/article-icon.ts +61 -0
- package/build/website/helpers/article.ts +90 -0
- package/build/website/helpers/changelog-source.ts +16 -0
- package/build/website/helpers/changelog-source.unit.ts +38 -0
- package/build/website/helpers/dynamic-icon-resolver.tsx +19 -0
- package/build/website/helpers/dynamic-icon.tsx +12 -0
- package/build/website/helpers/favicon.ts +7 -0
- package/build/website/helpers/model.ts +4 -0
- package/build/website/helpers/resolve-asset-path.ts +9 -0
- package/build/website/helpers/resolve-includes.ts +131 -0
- package/build/website/helpers/resolve-includes.unit.ts +126 -0
- package/build/website/helpers/search-text.ts +15 -0
- package/build/website/helpers/section.ts +50 -0
- package/build/website/helpers/section.unit.ts +71 -0
- package/build/website/helpers/style.ts +6 -0
- package/build/website/helpers/theme.ts +27 -0
- package/build/website/helpers/toc-context.ts +10 -0
- package/build/website/helpers/toc.ts +46 -0
- package/build/website/helpers/toc.unit.ts +74 -0
- package/build/website/hooks/in-view.ts +30 -0
- package/build/website/hooks/media.ts +19 -0
- package/build/website/models/article.ts +55 -0
- package/build/website/models/toc.ts +5 -0
- package/build/website/plugins/rehype-inline-code.ts +107 -0
- package/build/website/plugins/rehype-task-list-a11y.ts +33 -0
- package/build/website/plugins/remark-abbr.ts +46 -0
- package/build/website/plugins/remark-abbr.unit.ts +99 -0
- package/build/website/plugins/remark-ansi.ts +248 -0
- package/build/website/plugins/remark-ansi.unit.ts +197 -0
- package/build/website/plugins/remark-badge.ts +50 -0
- package/build/website/plugins/remark-badge.unit.ts +96 -0
- package/build/website/plugins/remark-button.ts +60 -0
- package/build/website/plugins/remark-button.unit.ts +147 -0
- package/build/website/plugins/remark-callout.ts +57 -0
- package/build/website/plugins/remark-card.ts +80 -0
- package/build/website/plugins/remark-code-tabs.ts +87 -0
- package/build/website/plugins/remark-columns.ts +66 -0
- package/build/website/plugins/remark-custom-heading-id.ts +70 -0
- package/build/website/plugins/remark-custom-heading-id.unit.ts +131 -0
- package/build/website/plugins/remark-deflist.ts +36 -0
- package/build/website/plugins/remark-details.ts +49 -0
- package/build/website/plugins/remark-filetree.ts +89 -0
- package/build/website/plugins/remark-filetree.unit.ts +137 -0
- package/build/website/plugins/remark-github-callout.ts +71 -0
- package/build/website/plugins/remark-icon.ts +42 -0
- package/build/website/plugins/remark-image.ts +34 -0
- package/build/website/plugins/remark-media.ts +62 -0
- package/build/website/plugins/remark-media.unit.ts +74 -0
- package/build/website/plugins/remark-mermaid.ts +23 -0
- package/build/website/plugins/remark-npm.ts +52 -0
- package/build/website/plugins/remark-steps.ts +36 -0
- package/build/website/plugins/remark-steps.unit.ts +97 -0
- package/build/website/plugins/remark-tab.ts +100 -0
- package/build/website/plugins/remark-tab.unit.ts +181 -0
- package/build/website/plugins/remark-toc.ts +39 -0
- package/build/website/plugins/remark-toc.unit.ts +82 -0
- package/build/website/plugins/shiki-icon.ts +82 -0
- package/build/website/plugins/shiki-line-highlight.ts +174 -0
- package/build/website/plugins/vite-livemark.ts +91 -0
- package/build/website/routeTree.gen.ts +86 -0
- package/build/website/router.tsx +34 -0
- package/build/website/routes/$.tsx +92 -0
- package/build/website/routes/__root.tsx +97 -0
- package/build/website/server.ts +7 -0
- package/build/website/styles/general.css +163 -0
- package/build/website/styles/markdown.css +214 -0
- package/build/website/vite.config.ts +71 -0
- package/package.json +120 -12
- package/skills/authoring/SKILL.md +97 -0
- package/skills/configuration/SKILL.md +120 -0
- package/skills/customization/SKILL.md +118 -0
- package/build/descriptor/index.d.ts +0 -3
- package/build/descriptor/index.js +0 -4
- package/build/descriptor/load.d.ts +0 -8
- package/build/descriptor/load.js +0 -40
- package/build/descriptor/node.d.ts +0 -125
- package/build/descriptor/node.js +0 -9
- package/build/descriptor/save.d.ts +0 -8
- package/build/descriptor/save.js +0 -17
- package/build/descriptor/save.spec.js +0 -80
- package/build/descriptor/validate.d.ts +0 -9
- package/build/descriptor/validate.js +0 -14
- package/build/descriptor/validate.spec.js +0 -124
- package/build/dialect/Dialect.d.ts +0 -88
- package/build/dialect/Dialect.js +0 -2
- package/build/dialect/index.d.ts +0 -3
- package/build/dialect/index.js +0 -3
- package/build/dialect/load.d.ts +0 -4
- package/build/dialect/load.js +0 -7
- package/build/dialect/save.d.ts +0 -9
- package/build/dialect/save.js +0 -13
- package/build/dialect/validate.d.ts +0 -1
- package/build/dialect/validate.js +0 -4
- package/build/metadata/index.d.ts +0 -3
- package/build/metadata/index.js +0 -4
- package/build/metadata/load.d.ts +0 -10
- package/build/metadata/load.js +0 -55
- package/build/metadata/node.d.ts +0 -125
- package/build/metadata/node.js +0 -9
- package/build/metadata/save.d.ts +0 -8
- package/build/metadata/save.js +0 -17
- package/build/metadata/save.spec.js +0 -80
- package/build/metadata/validate.d.ts +0 -9
- package/build/metadata/validate.js +0 -14
- package/build/metadata/validate.spec.d.ts +0 -1
- package/build/metadata/validate.spec.js +0 -124
- package/build/package/Contributor.d.ts +0 -21
- package/build/package/Contributor.js +0 -2
- package/build/package/Package.d.ts +0 -65
- package/build/package/Package.js +0 -2
- package/build/package/index.d.ts +0 -4
- package/build/package/index.js +0 -3
- package/build/package/load.d.ts +0 -4
- package/build/package/load.js +0 -7
- package/build/package/save.d.ts +0 -9
- package/build/package/save.js +0 -13
- package/build/package/validate.d.ts +0 -1
- package/build/package/validate.js +0 -4
- package/build/resource/License.d.ts +0 -18
- package/build/resource/License.js +0 -2
- package/build/resource/Resource.d.ts +0 -67
- package/build/resource/Resource.js +0 -2
- package/build/resource/Source.d.ts +0 -17
- package/build/resource/Source.js +0 -2
- package/build/resource/index.d.ts +0 -5
- package/build/resource/index.js +0 -2
- package/build/resource/load.d.ts +0 -1
- package/build/resource/load.js +0 -2
- package/build/resource/save.d.ts +0 -9
- package/build/resource/save.js +0 -13
- package/build/resource/types/index.d.ts +0 -1
- package/build/resource/types/index.js +0 -2
- package/build/resource/types/table.d.ts +0 -29
- package/build/resource/types/table.js +0 -2
- package/build/resource/validate.d.ts +0 -1
- package/build/resource/validate.js +0 -4
- package/build/schema/Field.d.ts +0 -5
- package/build/schema/Field.js +0 -2
- package/build/schema/Schema.d.ts +0 -55
- package/build/schema/Schema.js +0 -2
- package/build/schema/fields/any.d.ts +0 -20
- package/build/schema/fields/any.js +0 -2
- package/build/schema/fields/array.d.ts +0 -32
- package/build/schema/fields/array.js +0 -2
- package/build/schema/fields/base.d.ts +0 -42
- package/build/schema/fields/base.js +0 -2
- package/build/schema/fields/boolean.d.ts +0 -28
- package/build/schema/fields/boolean.js +0 -2
- package/build/schema/fields/date.d.ts +0 -35
- package/build/schema/fields/date.js +0 -2
- package/build/schema/fields/datetime.d.ts +0 -35
- package/build/schema/fields/datetime.js +0 -2
- package/build/schema/fields/duration.d.ts +0 -28
- package/build/schema/fields/duration.js +0 -2
- package/build/schema/fields/geojson.d.ts +0 -26
- package/build/schema/fields/geojson.js +0 -2
- package/build/schema/fields/geopoint.d.ts +0 -27
- package/build/schema/fields/geopoint.js +0 -2
- package/build/schema/fields/index.d.ts +0 -16
- package/build/schema/fields/index.js +0 -17
- package/build/schema/fields/integer.d.ts +0 -37
- package/build/schema/fields/integer.js +0 -2
- package/build/schema/fields/list.d.ts +0 -36
- package/build/schema/fields/list.js +0 -2
- package/build/schema/fields/number.d.ts +0 -40
- package/build/schema/fields/number.js +0 -2
- package/build/schema/fields/object.d.ts +0 -32
- package/build/schema/fields/object.js +0 -2
- package/build/schema/fields/string.d.ts +0 -40
- package/build/schema/fields/string.js +0 -2
- package/build/schema/fields/time.d.ts +0 -35
- package/build/schema/fields/time.js +0 -2
- package/build/schema/fields/year.d.ts +0 -28
- package/build/schema/fields/year.js +0 -2
- package/build/schema/fields/yearmonth.d.ts +0 -28
- package/build/schema/fields/yearmonth.js +0 -2
- package/build/schema/index.d.ts +0 -4
- package/build/schema/index.js +0 -2
- package/build/schema/load.d.ts +0 -1
- package/build/schema/load.js +0 -2
- package/build/schema/save.d.ts +0 -9
- package/build/schema/save.js +0 -13
- package/build/schema/validate.d.ts +0 -1
- package/build/schema/validate.js +0 -4
- package/build/tsconfig.tsbuildinfo +0 -1
- package/index.ts +0 -0
- package/tsconfig.json +0 -10
- package/typedoc.json +0 -4
- /package/build/{descriptor/save.spec.d.ts → actions/changelog/build.unit.d.ts} +0 -0
- /package/build/{descriptor/validate.spec.d.ts → actions/config/define.unit.d.ts} +0 -0
- /package/build/{metadata/save.spec.d.ts → actions/config/load.unit.d.ts} +0 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
site?: string | undefined;
|
|
3
|
+
favicon?: string | undefined;
|
|
4
|
+
logo?: string | undefined;
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
include: string | string[];
|
|
8
|
+
exclude?: string | string[] | undefined;
|
|
9
|
+
codeThemeLight: "ayu-light" | "catppuccin-latte" | "everforest-light" | "github-light" | "github-light-default" | "github-light-high-contrast" | "gruvbox-light-hard" | "gruvbox-light-medium" | "gruvbox-light-soft" | "horizon-bright" | "kanagawa-lotus" | "light-plus" | "material-theme-lighter" | "min-light" | "night-owl-light" | "one-light" | "rose-pine-dawn" | "slack-ochin" | "snazzy-light" | "solarized-light" | "vitesse-light";
|
|
10
|
+
codeThemeDark: "andromeeda" | "aurora-x" | "ayu-dark" | "ayu-mirage" | "catppuccin-frappe" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "everforest-dark" | "github-dark" | "github-dark-default" | "github-dark-dimmed" | "github-dark-high-contrast" | "gruvbox-dark-hard" | "gruvbox-dark-medium" | "gruvbox-dark-soft" | "horizon" | "houston" | "kanagawa-dragon" | "kanagawa-wave" | "laserwave" | "material-theme" | "material-theme-darker" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "monokai" | "night-owl" | "nord" | "one-dark-pro" | "plastic" | "poimandres" | "red" | "rose-pine" | "rose-pine-moon" | "slack-dark" | "solarized-dark" | "synthwave-84" | "tokyo-night" | "vesper" | "vitesse-black" | "vitesse-dark";
|
|
11
|
+
links?: {
|
|
12
|
+
url: string;
|
|
13
|
+
title: string;
|
|
14
|
+
icon?: string | undefined;
|
|
15
|
+
prefix?: string | undefined;
|
|
16
|
+
position: "header" | "sidebar";
|
|
17
|
+
}[] | undefined;
|
|
18
|
+
sections?: ({
|
|
19
|
+
icon?: string | undefined;
|
|
20
|
+
title: string;
|
|
21
|
+
prefix: string;
|
|
22
|
+
position: "header" | "sidebar";
|
|
23
|
+
type: "article";
|
|
24
|
+
} | {
|
|
25
|
+
icon?: string | undefined;
|
|
26
|
+
title: string;
|
|
27
|
+
prefix: string;
|
|
28
|
+
position: "header" | "sidebar";
|
|
29
|
+
type: "blog";
|
|
30
|
+
} | {
|
|
31
|
+
icon?: string | undefined;
|
|
32
|
+
title: string;
|
|
33
|
+
prefix: string;
|
|
34
|
+
position: "header" | "sidebar";
|
|
35
|
+
type: "changelog";
|
|
36
|
+
source: string;
|
|
37
|
+
version?: boolean | undefined;
|
|
38
|
+
})[] | undefined;
|
|
39
|
+
patches?: {
|
|
40
|
+
file: string;
|
|
41
|
+
article: {
|
|
42
|
+
title?: string | undefined;
|
|
43
|
+
label?: string | undefined;
|
|
44
|
+
description?: string | undefined;
|
|
45
|
+
icon?: string | undefined;
|
|
46
|
+
order?: number | undefined;
|
|
47
|
+
path?: string | undefined;
|
|
48
|
+
group?: string | undefined;
|
|
49
|
+
sidebar?: boolean | undefined;
|
|
50
|
+
toc?: boolean | undefined;
|
|
51
|
+
image?: string | undefined;
|
|
52
|
+
author?: string | string[] | undefined;
|
|
53
|
+
date?: string | undefined;
|
|
54
|
+
tags?: string[] | undefined;
|
|
55
|
+
};
|
|
56
|
+
}[] | undefined;
|
|
57
|
+
};
|
|
58
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { defineConfig } from "livemark";
|
|
2
|
+
export default defineConfig({
|
|
3
|
+
include: "docs/*.md",
|
|
4
|
+
});
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhhbXBsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2RvY3MvbWFya2Rvd24vaW5jbHVkZXMvZXhhbXBsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sVUFBVSxDQUFBO0FBRXZDLGVBQWUsWUFBWSxDQUFDO0lBQzFCLE9BQU8sRUFBRSxXQUFXO0NBQ3JCLENBQUMsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGRlZmluZUNvbmZpZyB9IGZyb20gXCJsaXZlbWFya1wiXG5cbmV4cG9ydCBkZWZhdWx0IGRlZmluZUNvbmZpZyh7XG4gIGluY2x1ZGU6IFwiZG9jcy8qLm1kXCIsXG59KVxuIl19
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
process.removeAllListeners("warning");
|
|
3
|
+
process.on("warning", warning => {
|
|
4
|
+
if (warning.name === "ExperimentalWarning") {
|
|
5
|
+
return;
|
|
6
|
+
}
|
|
7
|
+
console.warn(warning);
|
|
8
|
+
});
|
|
9
|
+
const { program } = await import("../program.js");
|
|
10
|
+
program.parse();
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2VudHJ5cG9pbnRzL21haW4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUVBLE9BQU8sQ0FBQyxrQkFBa0IsQ0FBQyxTQUFTLENBQUMsQ0FBQTtBQUNyQyxPQUFPLENBQUMsRUFBRSxDQUFDLFNBQVMsRUFBRSxPQUFPLENBQUMsRUFBRTtJQUM5QixJQUFJLE9BQU8sQ0FBQyxJQUFJLEtBQUsscUJBQXFCLEVBQUUsQ0FBQztRQUMzQyxPQUFNO0lBQ1IsQ0FBQztJQUNELE9BQU8sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLENBQUE7QUFDdkIsQ0FBQyxDQUFDLENBQUE7QUFFRixNQUFNLEVBQUUsT0FBTyxFQUFFLEdBQUcsTUFBTSxNQUFNLENBQUMsZUFBZSxDQUFDLENBQUE7QUFDakQsT0FBTyxDQUFDLEtBQUssRUFBRSxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiIyEvdXNyL2Jpbi9lbnYgbm9kZVxuXG5wcm9jZXNzLnJlbW92ZUFsbExpc3RlbmVycyhcIndhcm5pbmdcIilcbnByb2Nlc3Mub24oXCJ3YXJuaW5nXCIsIHdhcm5pbmcgPT4ge1xuICBpZiAod2FybmluZy5uYW1lID09PSBcIkV4cGVyaW1lbnRhbFdhcm5pbmdcIikge1xuICAgIHJldHVyblxuICB9XG4gIGNvbnNvbGUud2Fybih3YXJuaW5nKVxufSlcblxuY29uc3QgeyBwcm9ncmFtIH0gPSBhd2FpdCBpbXBvcnQoXCIuLi9wcm9ncmFtLnRzXCIpXG5wcm9ncmFtLnBhcnNlKClcbiJdfQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import pc from "picocolors";
|
|
2
|
+
export const helpConfiguration = {
|
|
3
|
+
styleTitle: str => pc.bold(str.toUpperCase().replace(":", "")),
|
|
4
|
+
};
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZ3JhbS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2hlbHBlcnMvcHJvZ3JhbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsTUFBTSxZQUFZLENBQUE7QUFFM0IsTUFBTSxDQUFDLE1BQU0saUJBQWlCLEdBQXNCO0lBQ2xELFVBQVUsRUFBRSxHQUFHLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLFdBQVcsRUFBRSxDQUFDLE9BQU8sQ0FBQyxHQUFHLEVBQUUsRUFBRSxDQUFDLENBQUM7Q0FDL0QsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgSGVscENvbmZpZ3VyYXRpb24gfSBmcm9tIFwiY29tbWFuZGVyXCJcbmltcG9ydCBwYyBmcm9tIFwicGljb2NvbG9yc1wiXG5cbmV4cG9ydCBjb25zdCBoZWxwQ29uZmlndXJhdGlvbjogSGVscENvbmZpZ3VyYXRpb24gPSB7XG4gIHN0eWxlVGl0bGU6IHN0ciA9PiBwYy5ib2xkKHN0ci50b1VwcGVyQ2FzZSgpLnJlcGxhY2UoXCI6XCIsIFwiXCIpKSxcbn1cbiJdfQ==
|
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
export * from "./resource/index.js";
|
|
4
|
-
export * from "./schema/index.js";
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG9CQUFvQixDQUFBO0FBQ2xDLGNBQWMsb0JBQW9CLENBQUE7QUFDbEMsY0FBYyxxQkFBcUIsQ0FBQTtBQUNuQyxjQUFjLG1CQUFtQixDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vZGlhbGVjdC9pbmRleC5qc1wiXG5leHBvcnQgKiBmcm9tIFwiLi9wYWNrYWdlL2luZGV4LmpzXCJcbmV4cG9ydCAqIGZyb20gXCIuL3Jlc291cmNlL2luZGV4LmpzXCJcbmV4cG9ydCAqIGZyb20gXCIuL3NjaGVtYS9pbmRleC5qc1wiXG4iXX0=
|
|
1
|
+
export { defineConfig } from "./actions/config/define.js";
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sNEJBQTRCLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBkZWZpbmVDb25maWcgfSBmcm9tIFwiLi9hY3Rpb25zL2NvbmZpZy9kZWZpbmUudHNcIlxuIl19
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
site?: string | undefined;
|
|
3
|
+
favicon?: string | undefined;
|
|
4
|
+
logo?: string | undefined;
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
include: string | string[];
|
|
8
|
+
exclude?: string | string[] | undefined;
|
|
9
|
+
codeThemeLight: "ayu-light" | "catppuccin-latte" | "everforest-light" | "github-light" | "github-light-default" | "github-light-high-contrast" | "gruvbox-light-hard" | "gruvbox-light-medium" | "gruvbox-light-soft" | "horizon-bright" | "kanagawa-lotus" | "light-plus" | "material-theme-lighter" | "min-light" | "night-owl-light" | "one-light" | "rose-pine-dawn" | "slack-ochin" | "snazzy-light" | "solarized-light" | "vitesse-light";
|
|
10
|
+
codeThemeDark: "andromeeda" | "aurora-x" | "ayu-dark" | "ayu-mirage" | "catppuccin-frappe" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "everforest-dark" | "github-dark" | "github-dark-default" | "github-dark-dimmed" | "github-dark-high-contrast" | "gruvbox-dark-hard" | "gruvbox-dark-medium" | "gruvbox-dark-soft" | "horizon" | "houston" | "kanagawa-dragon" | "kanagawa-wave" | "laserwave" | "material-theme" | "material-theme-darker" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "monokai" | "night-owl" | "nord" | "one-dark-pro" | "plastic" | "poimandres" | "red" | "rose-pine" | "rose-pine-moon" | "slack-dark" | "solarized-dark" | "synthwave-84" | "tokyo-night" | "vesper" | "vitesse-black" | "vitesse-dark";
|
|
11
|
+
links?: {
|
|
12
|
+
url: string;
|
|
13
|
+
title: string;
|
|
14
|
+
icon?: string | undefined;
|
|
15
|
+
prefix?: string | undefined;
|
|
16
|
+
position: "header" | "sidebar";
|
|
17
|
+
}[] | undefined;
|
|
18
|
+
sections?: ({
|
|
19
|
+
icon?: string | undefined;
|
|
20
|
+
title: string;
|
|
21
|
+
prefix: string;
|
|
22
|
+
position: "header" | "sidebar";
|
|
23
|
+
type: "article";
|
|
24
|
+
} | {
|
|
25
|
+
icon?: string | undefined;
|
|
26
|
+
title: string;
|
|
27
|
+
prefix: string;
|
|
28
|
+
position: "header" | "sidebar";
|
|
29
|
+
type: "blog";
|
|
30
|
+
} | {
|
|
31
|
+
icon?: string | undefined;
|
|
32
|
+
title: string;
|
|
33
|
+
prefix: string;
|
|
34
|
+
position: "header" | "sidebar";
|
|
35
|
+
type: "changelog";
|
|
36
|
+
source: string;
|
|
37
|
+
version?: boolean | undefined;
|
|
38
|
+
})[] | undefined;
|
|
39
|
+
patches?: {
|
|
40
|
+
file: string;
|
|
41
|
+
article: {
|
|
42
|
+
title?: string | undefined;
|
|
43
|
+
label?: string | undefined;
|
|
44
|
+
description?: string | undefined;
|
|
45
|
+
icon?: string | undefined;
|
|
46
|
+
order?: number | undefined;
|
|
47
|
+
path?: string | undefined;
|
|
48
|
+
group?: string | undefined;
|
|
49
|
+
sidebar?: boolean | undefined;
|
|
50
|
+
toc?: boolean | undefined;
|
|
51
|
+
image?: string | undefined;
|
|
52
|
+
author?: string | string[] | undefined;
|
|
53
|
+
date?: string | undefined;
|
|
54
|
+
tags?: string[] | undefined;
|
|
55
|
+
};
|
|
56
|
+
}[] | undefined;
|
|
57
|
+
};
|
|
58
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineConfig } from "./index.js";
|
|
2
|
+
export default defineConfig({
|
|
3
|
+
site: "https://livemark.dev",
|
|
4
|
+
include: ["docs/**/*.md", "blog/**/*.md"],
|
|
5
|
+
exclude: "docs/**/includes/**",
|
|
6
|
+
sections: [
|
|
7
|
+
{ title: "Docs", prefix: "/" },
|
|
8
|
+
{ title: "Blog", prefix: "/blog/", type: "blog" },
|
|
9
|
+
{
|
|
10
|
+
title: "Changelog",
|
|
11
|
+
prefix: "/changelog/",
|
|
12
|
+
type: "changelog",
|
|
13
|
+
source: "CHANGELOG.md",
|
|
14
|
+
version: true,
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
links: [
|
|
18
|
+
{
|
|
19
|
+
url: "https://github.com/datisthq/livemark",
|
|
20
|
+
title: "GitHub",
|
|
21
|
+
icon: "github",
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2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RcIiwgXCJibG9nLyoqLyoubWRcIl0sXG4gIGV4Y2x1ZGU6IFwiZG9jcy8qKi9pbmNsdWRlcy8qKlwiLFxuICBzZWN0aW9uczogW1xuICAgIHsgdGl0bGU6IFwiRG9jc1wiLCBwcmVmaXg6IFwiL1wiIH0sXG4gICAgeyB0aXRsZTogXCJCbG9nXCIsIHByZWZpeDogXCIvYmxvZy9cIiwgdHlwZTogXCJibG9nXCIgfSxcbiAgICB7XG4gICAgICB0aXRsZTogXCJDaGFuZ2Vsb2dcIixcbiAgICAgIHByZWZpeDogXCIvY2hhbmdlbG9nL1wiLFxuICAgICAgdHlwZTogXCJjaGFuZ2Vsb2dcIixcbiAgICAgIHNvdXJjZTogXCJDSEFOR0VMT0cubWRcIixcbiAgICAgIHZlcnNpb246IHRydWUsXG4gICAgfSxcbiAgXSxcbiAgbGlua3M6IFtcbiAgICB7XG4gICAgICB1cmw6IFwiaHR0cHM6Ly9naXRodWIuY29tL2RhdGlzdGhxL2xpdmVtYXJrXCIsXG4gICAgICB0aXRsZTogXCJHaXRIdWJcIixcbiAgICAgIGljb246IFwiZ2l0aHViXCIsXG4gICAgfSxcbiAgXSxcbn0pXG4iXX0=
|
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* User-provided configuration for Livemark.
|
|
4
|
+
*/
|
|
5
|
+
export type UserConfig = z.infer<typeof UserConfig>;
|
|
6
|
+
export declare const UserConfig: z.ZodObject<{
|
|
7
|
+
site: z.ZodOptional<z.ZodString>;
|
|
8
|
+
favicon: z.ZodOptional<z.ZodString>;
|
|
9
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
10
|
+
title: z.ZodDefault<z.ZodString>;
|
|
11
|
+
description: z.ZodDefault<z.ZodString>;
|
|
12
|
+
include: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
13
|
+
exclude: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
14
|
+
codeThemeLight: z.ZodDefault<z.ZodEnum<{
|
|
15
|
+
"ayu-light": "ayu-light";
|
|
16
|
+
"catppuccin-latte": "catppuccin-latte";
|
|
17
|
+
"everforest-light": "everforest-light";
|
|
18
|
+
"github-light": "github-light";
|
|
19
|
+
"github-light-default": "github-light-default";
|
|
20
|
+
"github-light-high-contrast": "github-light-high-contrast";
|
|
21
|
+
"gruvbox-light-hard": "gruvbox-light-hard";
|
|
22
|
+
"gruvbox-light-medium": "gruvbox-light-medium";
|
|
23
|
+
"gruvbox-light-soft": "gruvbox-light-soft";
|
|
24
|
+
"horizon-bright": "horizon-bright";
|
|
25
|
+
"kanagawa-lotus": "kanagawa-lotus";
|
|
26
|
+
"light-plus": "light-plus";
|
|
27
|
+
"material-theme-lighter": "material-theme-lighter";
|
|
28
|
+
"min-light": "min-light";
|
|
29
|
+
"night-owl-light": "night-owl-light";
|
|
30
|
+
"one-light": "one-light";
|
|
31
|
+
"rose-pine-dawn": "rose-pine-dawn";
|
|
32
|
+
"slack-ochin": "slack-ochin";
|
|
33
|
+
"snazzy-light": "snazzy-light";
|
|
34
|
+
"solarized-light": "solarized-light";
|
|
35
|
+
"vitesse-light": "vitesse-light";
|
|
36
|
+
}>>;
|
|
37
|
+
codeThemeDark: z.ZodDefault<z.ZodEnum<{
|
|
38
|
+
andromeeda: "andromeeda";
|
|
39
|
+
"aurora-x": "aurora-x";
|
|
40
|
+
"ayu-dark": "ayu-dark";
|
|
41
|
+
"ayu-mirage": "ayu-mirage";
|
|
42
|
+
"catppuccin-frappe": "catppuccin-frappe";
|
|
43
|
+
"catppuccin-macchiato": "catppuccin-macchiato";
|
|
44
|
+
"catppuccin-mocha": "catppuccin-mocha";
|
|
45
|
+
"dark-plus": "dark-plus";
|
|
46
|
+
dracula: "dracula";
|
|
47
|
+
"dracula-soft": "dracula-soft";
|
|
48
|
+
"everforest-dark": "everforest-dark";
|
|
49
|
+
"github-dark": "github-dark";
|
|
50
|
+
"github-dark-default": "github-dark-default";
|
|
51
|
+
"github-dark-dimmed": "github-dark-dimmed";
|
|
52
|
+
"github-dark-high-contrast": "github-dark-high-contrast";
|
|
53
|
+
"gruvbox-dark-hard": "gruvbox-dark-hard";
|
|
54
|
+
"gruvbox-dark-medium": "gruvbox-dark-medium";
|
|
55
|
+
"gruvbox-dark-soft": "gruvbox-dark-soft";
|
|
56
|
+
horizon: "horizon";
|
|
57
|
+
houston: "houston";
|
|
58
|
+
"kanagawa-dragon": "kanagawa-dragon";
|
|
59
|
+
"kanagawa-wave": "kanagawa-wave";
|
|
60
|
+
laserwave: "laserwave";
|
|
61
|
+
"material-theme": "material-theme";
|
|
62
|
+
"material-theme-darker": "material-theme-darker";
|
|
63
|
+
"material-theme-ocean": "material-theme-ocean";
|
|
64
|
+
"material-theme-palenight": "material-theme-palenight";
|
|
65
|
+
"min-dark": "min-dark";
|
|
66
|
+
monokai: "monokai";
|
|
67
|
+
"night-owl": "night-owl";
|
|
68
|
+
nord: "nord";
|
|
69
|
+
"one-dark-pro": "one-dark-pro";
|
|
70
|
+
plastic: "plastic";
|
|
71
|
+
poimandres: "poimandres";
|
|
72
|
+
red: "red";
|
|
73
|
+
"rose-pine": "rose-pine";
|
|
74
|
+
"rose-pine-moon": "rose-pine-moon";
|
|
75
|
+
"slack-dark": "slack-dark";
|
|
76
|
+
"solarized-dark": "solarized-dark";
|
|
77
|
+
"synthwave-84": "synthwave-84";
|
|
78
|
+
"tokyo-night": "tokyo-night";
|
|
79
|
+
vesper: "vesper";
|
|
80
|
+
"vitesse-black": "vitesse-black";
|
|
81
|
+
"vitesse-dark": "vitesse-dark";
|
|
82
|
+
}>>;
|
|
83
|
+
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
84
|
+
url: z.ZodString;
|
|
85
|
+
title: z.ZodString;
|
|
86
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
87
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
88
|
+
position: z.ZodDefault<z.ZodEnum<{
|
|
89
|
+
header: "header";
|
|
90
|
+
sidebar: "sidebar";
|
|
91
|
+
}>>;
|
|
92
|
+
}, z.core.$strip>>>;
|
|
93
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
94
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
95
|
+
title: z.ZodString;
|
|
96
|
+
prefix: z.ZodString;
|
|
97
|
+
position: z.ZodDefault<z.ZodEnum<{
|
|
98
|
+
header: "header";
|
|
99
|
+
sidebar: "sidebar";
|
|
100
|
+
}>>;
|
|
101
|
+
type: z.ZodLiteral<"article">;
|
|
102
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
103
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
104
|
+
title: z.ZodString;
|
|
105
|
+
prefix: z.ZodString;
|
|
106
|
+
position: z.ZodDefault<z.ZodEnum<{
|
|
107
|
+
header: "header";
|
|
108
|
+
sidebar: "sidebar";
|
|
109
|
+
}>>;
|
|
110
|
+
type: z.ZodLiteral<"blog">;
|
|
111
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
112
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
113
|
+
title: z.ZodString;
|
|
114
|
+
prefix: z.ZodString;
|
|
115
|
+
position: z.ZodDefault<z.ZodEnum<{
|
|
116
|
+
header: "header";
|
|
117
|
+
sidebar: "sidebar";
|
|
118
|
+
}>>;
|
|
119
|
+
type: z.ZodLiteral<"changelog">;
|
|
120
|
+
source: z.ZodString;
|
|
121
|
+
version: z.ZodOptional<z.ZodBoolean>;
|
|
122
|
+
}, z.core.$strip>], "type">>>>;
|
|
123
|
+
patches: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
124
|
+
file: z.ZodString;
|
|
125
|
+
article: z.ZodObject<{
|
|
126
|
+
title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
127
|
+
label: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
128
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
129
|
+
icon: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
130
|
+
order: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
131
|
+
path: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
132
|
+
group: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
133
|
+
sidebar: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
134
|
+
toc: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
135
|
+
image: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
136
|
+
author: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
|
|
137
|
+
date: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
138
|
+
tags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
139
|
+
}, z.core.$strict>;
|
|
140
|
+
}, z.core.$strip>>>;
|
|
141
|
+
}, z.core.$strip>;
|
|
142
|
+
/** Website configuration injected at build time via Vite define */
|
|
143
|
+
export type WebsiteConfig = z.infer<typeof WebsiteConfig>;
|
|
144
|
+
export declare const WebsiteConfig: z.ZodObject<{
|
|
145
|
+
site: z.ZodOptional<z.ZodString>;
|
|
146
|
+
favicon: z.ZodOptional<z.ZodString>;
|
|
147
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
148
|
+
title: z.ZodDefault<z.ZodString>;
|
|
149
|
+
description: z.ZodDefault<z.ZodString>;
|
|
150
|
+
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
151
|
+
url: z.ZodString;
|
|
152
|
+
title: z.ZodString;
|
|
153
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
154
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
155
|
+
position: z.ZodDefault<z.ZodEnum<{
|
|
156
|
+
header: "header";
|
|
157
|
+
sidebar: "sidebar";
|
|
158
|
+
}>>;
|
|
159
|
+
}, z.core.$strip>>>;
|
|
160
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
161
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
162
|
+
title: z.ZodString;
|
|
163
|
+
prefix: z.ZodString;
|
|
164
|
+
position: z.ZodDefault<z.ZodEnum<{
|
|
165
|
+
header: "header";
|
|
166
|
+
sidebar: "sidebar";
|
|
167
|
+
}>>;
|
|
168
|
+
type: z.ZodLiteral<"article">;
|
|
169
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
170
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
171
|
+
title: z.ZodString;
|
|
172
|
+
prefix: z.ZodString;
|
|
173
|
+
position: z.ZodDefault<z.ZodEnum<{
|
|
174
|
+
header: "header";
|
|
175
|
+
sidebar: "sidebar";
|
|
176
|
+
}>>;
|
|
177
|
+
type: z.ZodLiteral<"blog">;
|
|
178
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
179
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
180
|
+
title: z.ZodString;
|
|
181
|
+
prefix: z.ZodString;
|
|
182
|
+
position: z.ZodDefault<z.ZodEnum<{
|
|
183
|
+
header: "header";
|
|
184
|
+
sidebar: "sidebar";
|
|
185
|
+
}>>;
|
|
186
|
+
type: z.ZodLiteral<"changelog">;
|
|
187
|
+
source: z.ZodString;
|
|
188
|
+
version: z.ZodOptional<z.ZodBoolean>;
|
|
189
|
+
}, z.core.$strip>], "type">>>>;
|
|
190
|
+
}, z.core.$strip>;
|
|
191
|
+
/**
|
|
192
|
+
* System-computed configuration derived from the config file location.
|
|
193
|
+
*/
|
|
194
|
+
export type SystemConfig = z.infer<typeof SystemConfig>;
|
|
195
|
+
export declare const SystemConfig: z.ZodObject<{
|
|
196
|
+
root: z.ZodString;
|
|
197
|
+
configPath: z.ZodString;
|
|
198
|
+
}, z.core.$strip>;
|
|
199
|
+
/**
|
|
200
|
+
* Fully resolved Livemark configuration.
|
|
201
|
+
*/
|
|
202
|
+
export type Config = z.infer<typeof Config>;
|
|
203
|
+
export declare const Config: z.ZodObject<{
|
|
204
|
+
site: z.ZodOptional<z.ZodString>;
|
|
205
|
+
favicon: z.ZodOptional<z.ZodString>;
|
|
206
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
207
|
+
title: z.ZodDefault<z.ZodString>;
|
|
208
|
+
description: z.ZodDefault<z.ZodString>;
|
|
209
|
+
include: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
210
|
+
exclude: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
211
|
+
codeThemeLight: z.ZodDefault<z.ZodEnum<{
|
|
212
|
+
"ayu-light": "ayu-light";
|
|
213
|
+
"catppuccin-latte": "catppuccin-latte";
|
|
214
|
+
"everforest-light": "everforest-light";
|
|
215
|
+
"github-light": "github-light";
|
|
216
|
+
"github-light-default": "github-light-default";
|
|
217
|
+
"github-light-high-contrast": "github-light-high-contrast";
|
|
218
|
+
"gruvbox-light-hard": "gruvbox-light-hard";
|
|
219
|
+
"gruvbox-light-medium": "gruvbox-light-medium";
|
|
220
|
+
"gruvbox-light-soft": "gruvbox-light-soft";
|
|
221
|
+
"horizon-bright": "horizon-bright";
|
|
222
|
+
"kanagawa-lotus": "kanagawa-lotus";
|
|
223
|
+
"light-plus": "light-plus";
|
|
224
|
+
"material-theme-lighter": "material-theme-lighter";
|
|
225
|
+
"min-light": "min-light";
|
|
226
|
+
"night-owl-light": "night-owl-light";
|
|
227
|
+
"one-light": "one-light";
|
|
228
|
+
"rose-pine-dawn": "rose-pine-dawn";
|
|
229
|
+
"slack-ochin": "slack-ochin";
|
|
230
|
+
"snazzy-light": "snazzy-light";
|
|
231
|
+
"solarized-light": "solarized-light";
|
|
232
|
+
"vitesse-light": "vitesse-light";
|
|
233
|
+
}>>;
|
|
234
|
+
codeThemeDark: z.ZodDefault<z.ZodEnum<{
|
|
235
|
+
andromeeda: "andromeeda";
|
|
236
|
+
"aurora-x": "aurora-x";
|
|
237
|
+
"ayu-dark": "ayu-dark";
|
|
238
|
+
"ayu-mirage": "ayu-mirage";
|
|
239
|
+
"catppuccin-frappe": "catppuccin-frappe";
|
|
240
|
+
"catppuccin-macchiato": "catppuccin-macchiato";
|
|
241
|
+
"catppuccin-mocha": "catppuccin-mocha";
|
|
242
|
+
"dark-plus": "dark-plus";
|
|
243
|
+
dracula: "dracula";
|
|
244
|
+
"dracula-soft": "dracula-soft";
|
|
245
|
+
"everforest-dark": "everforest-dark";
|
|
246
|
+
"github-dark": "github-dark";
|
|
247
|
+
"github-dark-default": "github-dark-default";
|
|
248
|
+
"github-dark-dimmed": "github-dark-dimmed";
|
|
249
|
+
"github-dark-high-contrast": "github-dark-high-contrast";
|
|
250
|
+
"gruvbox-dark-hard": "gruvbox-dark-hard";
|
|
251
|
+
"gruvbox-dark-medium": "gruvbox-dark-medium";
|
|
252
|
+
"gruvbox-dark-soft": "gruvbox-dark-soft";
|
|
253
|
+
horizon: "horizon";
|
|
254
|
+
houston: "houston";
|
|
255
|
+
"kanagawa-dragon": "kanagawa-dragon";
|
|
256
|
+
"kanagawa-wave": "kanagawa-wave";
|
|
257
|
+
laserwave: "laserwave";
|
|
258
|
+
"material-theme": "material-theme";
|
|
259
|
+
"material-theme-darker": "material-theme-darker";
|
|
260
|
+
"material-theme-ocean": "material-theme-ocean";
|
|
261
|
+
"material-theme-palenight": "material-theme-palenight";
|
|
262
|
+
"min-dark": "min-dark";
|
|
263
|
+
monokai: "monokai";
|
|
264
|
+
"night-owl": "night-owl";
|
|
265
|
+
nord: "nord";
|
|
266
|
+
"one-dark-pro": "one-dark-pro";
|
|
267
|
+
plastic: "plastic";
|
|
268
|
+
poimandres: "poimandres";
|
|
269
|
+
red: "red";
|
|
270
|
+
"rose-pine": "rose-pine";
|
|
271
|
+
"rose-pine-moon": "rose-pine-moon";
|
|
272
|
+
"slack-dark": "slack-dark";
|
|
273
|
+
"solarized-dark": "solarized-dark";
|
|
274
|
+
"synthwave-84": "synthwave-84";
|
|
275
|
+
"tokyo-night": "tokyo-night";
|
|
276
|
+
vesper: "vesper";
|
|
277
|
+
"vitesse-black": "vitesse-black";
|
|
278
|
+
"vitesse-dark": "vitesse-dark";
|
|
279
|
+
}>>;
|
|
280
|
+
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
281
|
+
url: z.ZodString;
|
|
282
|
+
title: z.ZodString;
|
|
283
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
284
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
285
|
+
position: z.ZodDefault<z.ZodEnum<{
|
|
286
|
+
header: "header";
|
|
287
|
+
sidebar: "sidebar";
|
|
288
|
+
}>>;
|
|
289
|
+
}, z.core.$strip>>>;
|
|
290
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
291
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
292
|
+
title: z.ZodString;
|
|
293
|
+
prefix: z.ZodString;
|
|
294
|
+
position: z.ZodDefault<z.ZodEnum<{
|
|
295
|
+
header: "header";
|
|
296
|
+
sidebar: "sidebar";
|
|
297
|
+
}>>;
|
|
298
|
+
type: z.ZodLiteral<"article">;
|
|
299
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
300
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
301
|
+
title: z.ZodString;
|
|
302
|
+
prefix: z.ZodString;
|
|
303
|
+
position: z.ZodDefault<z.ZodEnum<{
|
|
304
|
+
header: "header";
|
|
305
|
+
sidebar: "sidebar";
|
|
306
|
+
}>>;
|
|
307
|
+
type: z.ZodLiteral<"blog">;
|
|
308
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
309
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
310
|
+
title: z.ZodString;
|
|
311
|
+
prefix: z.ZodString;
|
|
312
|
+
position: z.ZodDefault<z.ZodEnum<{
|
|
313
|
+
header: "header";
|
|
314
|
+
sidebar: "sidebar";
|
|
315
|
+
}>>;
|
|
316
|
+
type: z.ZodLiteral<"changelog">;
|
|
317
|
+
source: z.ZodString;
|
|
318
|
+
version: z.ZodOptional<z.ZodBoolean>;
|
|
319
|
+
}, z.core.$strip>], "type">>>>;
|
|
320
|
+
patches: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
321
|
+
file: z.ZodString;
|
|
322
|
+
article: z.ZodObject<{
|
|
323
|
+
title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
324
|
+
label: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
325
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
326
|
+
icon: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
327
|
+
order: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
328
|
+
path: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
329
|
+
group: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
330
|
+
sidebar: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
331
|
+
toc: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
332
|
+
image: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
333
|
+
author: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
|
|
334
|
+
date: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
335
|
+
tags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
336
|
+
}, z.core.$strict>;
|
|
337
|
+
}, z.core.$strip>>>;
|
|
338
|
+
root: z.ZodString;
|
|
339
|
+
configPath: z.ZodString;
|
|
340
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { Link } from "./link.js";
|
|
3
|
+
import { Patch } from "./patch.js";
|
|
4
|
+
import { Section } from "./section.js";
|
|
5
|
+
import { CodeThemeDark, CodeThemeLight } from "./theme.js";
|
|
6
|
+
export const UserConfig = z.object({
|
|
7
|
+
site: z.string().optional(),
|
|
8
|
+
favicon: z.string().optional(),
|
|
9
|
+
logo: z.string().optional(),
|
|
10
|
+
title: z.string().default("Livemark"),
|
|
11
|
+
description: z.string().default("Markdown site generator"),
|
|
12
|
+
include: z.union([z.string(), z.array(z.string())]),
|
|
13
|
+
exclude: z.union([z.string(), z.array(z.string())]).optional(),
|
|
14
|
+
codeThemeLight: CodeThemeLight.default("catppuccin-latte"),
|
|
15
|
+
codeThemeDark: CodeThemeDark.default("catppuccin-mocha"),
|
|
16
|
+
links: z.array(Link).optional(),
|
|
17
|
+
sections: z.array(Section).optional(),
|
|
18
|
+
patches: z.array(Patch).optional(),
|
|
19
|
+
});
|
|
20
|
+
export const WebsiteConfig = UserConfig.pick({
|
|
21
|
+
title: true,
|
|
22
|
+
description: true,
|
|
23
|
+
site: true,
|
|
24
|
+
favicon: true,
|
|
25
|
+
logo: true,
|
|
26
|
+
links: true,
|
|
27
|
+
sections: true,
|
|
28
|
+
});
|
|
29
|
+
export const SystemConfig = z.object({
|
|
30
|
+
root: z.string(),
|
|
31
|
+
configPath: z.string(),
|
|
32
|
+
});
|
|
33
|
+
export const Config = UserConfig.merge(SystemConfig);
|
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vbW9kZWxzL2NvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsQ0FBQyxFQUFFLE1BQU0sS0FBSyxDQUFBO0FBQ3ZCLE9BQU8sRUFBRSxJQUFJLE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CgpLFxufSlcblxuLyoqIFdlYnNpdGUgY29uZmlndXJhdGlvbiBpbmplY3RlZCBhdCBidWlsZCB0aW1lIHZpYSBWaXRlIGRlZmluZSAqL1xuZXhwb3J0IHR5cGUgV2Vic2l0ZUNvbmZpZyA9IHouaW5mZXI8dHlwZW9mIFdlYnNpdGVDb25maWc+XG5leHBvcnQgY29uc3QgV2Vic2l0ZUNvbmZpZyA9IFVzZXJDb25maWcucGljayh7XG4gIHRpdGxlOiB0cnVlLFxuICBkZXNjcmlwdGlvbjogdHJ1ZSxcbiAgc2l0ZTogdHJ1ZSxcbiAgZmF2aWNvbjogdHJ1ZSxcbiAgbG9nbzogdHJ1ZSxcbiAgbGlua3M6IHRydWUsXG4gIHNlY3Rpb25zOiB0cnVlLFxufSlcblxuLyoqXG4gKiBTeXN0ZW0tY29tcHV0ZWQgY29uZmlndXJhdGlvbiBkZXJpdmVkIGZyb20gdGhlIGNvbmZpZyBmaWxlIGxvY2F0aW9uLlxuICovXG5leHBvcnQgdHlwZSBTeXN0ZW1Db25maWcgPSB6LmluZmVyPHR5cGVvZiBTeXN0ZW1Db25maWc+XG5leHBvcnQgY29uc3QgU3lzdGVtQ29uZmlnID0gei5vYmplY3Qoe1xuICByb290OiB6LnN0cmluZygpLFxuICBjb25maWdQYXRoOiB6LnN0cmluZygpLFxufSlcblxuLyoqXG4gKiBGdWxseSByZXNvbHZlZCBMaXZlbWFyayBjb25maWd1cmF0aW9uLlxuICovXG5leHBvcnQgdHlwZSBDb25maWcgPSB6LmluZmVyPHR5cGVvZiBDb25maWc+XG5leHBvcnQgY29uc3QgQ29uZmlnID0gVXNlckNvbmZpZy5tZXJnZShTeXN0ZW1Db25maWcpXG4iXX0=
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Header or sidebar link to an external URL. */
|
|
3
|
+
export type Link = z.infer<typeof Link>;
|
|
4
|
+
export declare const Link: z.ZodObject<{
|
|
5
|
+
url: z.ZodString;
|
|
6
|
+
title: z.ZodString;
|
|
7
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
8
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
9
|
+
position: z.ZodDefault<z.ZodEnum<{
|
|
10
|
+
header: "header";
|
|
11
|
+
sidebar: "sidebar";
|
|
12
|
+
}>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const Link = z.object({
|
|
3
|
+
url: z.string(),
|
|
4
|
+
title: z.string(),
|
|
5
|
+
icon: z.string().optional(),
|
|
6
|
+
prefix: z.string().optional(),
|
|
7
|
+
position: z.enum(["header", "sidebar"]).default("header"),
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGluay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL21vZGVscy9saW5rLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxDQUFDLEVBQUUsTUFBTSxLQUFLLENBQUE7QUFJdkIsTUFBTSxDQUFDLE1BQU0sSUFBSSxHQUFHLENBQUMsQ0FBQyxNQUFNLENBQUM7SUFDM0IsR0FBRyxFQUFFLENBQUMsQ0FBQyxNQUFNLEVBQUU7SUFDZixLQUFLLEVBQUUsQ0FBQyxDQUFDLE1BQU0sRUFBRTtJQUNqQixJQUFJLEVBQUUsQ0FBQyxDQUFDLE1BQU0sRUFBRSxDQUFDLFFBQVEsRUFBRTtJQUMzQixNQUFNLEVBQUUsQ0FBQyxDQUFDLE1BQU0sRUFBRSxDQUFDLFFBQVEsRUFBRTtJQUM3QixRQUFRLEVBQUUsQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFDLFFBQVEsRUFBRSxTQUFTLENBQUMsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxRQUFRLENBQUM7Q0FDMUQsQ0FBQyxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgeiB9IGZyb20gXCJ6b2RcIlxuXG4vKiogSGVhZGVyIG9yIHNpZGViYXIgbGluayB0byBhbiBleHRlcm5hbCBVUkwuICovXG5leHBvcnQgdHlwZSBMaW5rID0gei5pbmZlcjx0eXBlb2YgTGluaz5cbmV4cG9ydCBjb25zdCBMaW5rID0gei5vYmplY3Qoe1xuICB1cmw6IHouc3RyaW5nKCksXG4gIHRpdGxlOiB6LnN0cmluZygpLFxuICBpY29uOiB6LnN0cmluZygpLm9wdGlvbmFsKCksXG4gIHByZWZpeDogei5zdHJpbmcoKS5vcHRpb25hbCgpLFxuICBwb3NpdGlvbjogei5lbnVtKFtcImhlYWRlclwiLCBcInNpZGViYXJcIl0pLmRlZmF1bHQoXCJoZWFkZXJcIiksXG59KVxuIl19
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Per-file override for article frontmatter provided via `livemark.config.ts`. */
|
|
3
|
+
export type Patch = z.infer<typeof Patch>;
|
|
4
|
+
export declare const Patch: z.ZodObject<{
|
|
5
|
+
file: z.ZodString;
|
|
6
|
+
article: z.ZodObject<{
|
|
7
|
+
title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
8
|
+
label: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
9
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
10
|
+
icon: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
11
|
+
order: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
12
|
+
path: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
13
|
+
group: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
14
|
+
sidebar: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
15
|
+
toc: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
16
|
+
image: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
17
|
+
author: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>>;
|
|
18
|
+
date: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
19
|
+
tags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
20
|
+
}, z.core.$strict>;
|
|
21
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { Article } from "../website/models/article.js";
|
|
3
|
+
export const Patch = z.object({
|
|
4
|
+
file: z.string(),
|
|
5
|
+
article: Article.omit({ content: true }).partial().strict(),
|
|
6
|
+
});
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF0Y2guanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9tb2RlbHMvcGF0Y2gudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLENBQUMsRUFBRSxNQUFNLEtBQUssQ0FBQTtBQUN2QixPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sOEJBQThCLENBQUE7QUFJdEQsTUFBTSxDQUFDLE1BQU0sS0FBSyxHQUFHLENBQUMsQ0FBQyxNQUFNLENBQUM7SUFDNUIsSUFBSSxFQUFFLENBQUMsQ0FBQyxNQUFNLEVBQUU7SUFDaEIsT0FBTyxFQUFFLE9BQU8sQ0FBQyxJQUFJLENBQUMsRUFBRSxPQUFPLEVBQUUsSUFBSSxFQUFFLENBQUMsQ0FBQyxPQUFPLEVBQUUsQ0FBQyxNQUFNLEVBQUU7Q0FDNUQsQ0FBQyxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgeiB9IGZyb20gXCJ6b2RcIlxuaW1wb3J0IHsgQXJ0aWNsZSB9IGZyb20gXCIuLi93ZWJzaXRlL21vZG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