livemark 0.25.0 → 0.26.0
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/README.md +3 -2
- package/build/actions/config/define.d.ts +6 -0
- package/build/actions/config/define.unit.js +8 -1
- package/build/actions/escape/copy.d.ts +11 -0
- package/build/actions/escape/copy.js +29 -0
- package/build/actions/escape/copy.unit.d.ts +1 -0
- package/build/actions/escape/copy.unit.js +37 -0
- package/build/actions/escape/list.d.ts +12 -0
- package/build/actions/escape/list.js +27 -0
- package/build/actions/escape/list.unit.d.ts +1 -0
- package/build/actions/escape/list.unit.js +36 -0
- package/build/actions/target/build.d.ts +9 -26
- package/build/actions/target/build.js +50 -71
- package/build/actions/target/build.unit.d.ts +1 -0
- package/build/actions/target/build.unit.js +76 -0
- package/build/actions/target/clear.d.ts +4 -0
- package/build/actions/target/clear.js +14 -0
- package/build/actions/target/clear.unit.d.ts +1 -0
- package/build/actions/target/clear.unit.js +23 -0
- package/build/commands/build.js +1 -2
- package/build/commands/clear.d.ts +5 -0
- package/build/commands/clear.js +15 -0
- package/build/commands/escape.d.ts +4 -3
- package/build/commands/escape.js +45 -48
- package/build/commands/preview.js +1 -2
- package/build/commands/start.js +1 -2
- package/build/components/Abbr.d.ts +1 -1
- package/build/components/Abbr.js +2 -4
- package/build/components/AnsiCode.d.ts +1 -1
- package/build/components/AnsiCode.js +2 -2
- package/build/components/Article.d.ts +2 -1
- package/build/components/Article.js +7 -14
- package/build/components/BackToTop.d.ts +1 -1
- package/build/components/Banner.d.ts +2 -2
- package/build/components/Banner.js +7 -3
- package/build/components/BlogIndex.d.ts +1 -1
- package/build/components/BlogIndex.js +2 -11
- package/build/components/Breadcrumbs.d.ts +1 -1
- package/build/components/Breadcrumbs.js +2 -3
- package/build/components/Callout.d.ts +1 -1
- package/build/components/Callout.js +5 -9
- package/build/components/Card.d.ts +1 -1
- package/build/components/Card.js +2 -3
- package/build/components/Cards.d.ts +1 -1
- package/build/components/ChangelogIndex.d.ts +1 -1
- package/build/components/ChangelogIndex.js +2 -11
- package/build/components/ChoiceList.d.ts +15 -0
- package/build/components/ChoiceList.js +13 -0
- package/build/components/CodeBlock.d.ts +1 -1
- package/build/components/CodeBlock.js +3 -16
- package/build/components/CodeTabs.d.ts +1 -1
- package/build/components/CodeTabs.js +2 -3
- package/build/components/Column.d.ts +1 -1
- package/build/components/Columns.d.ts +1 -1
- package/build/components/Content.d.ts +1 -1
- package/build/components/ContentTab.d.ts +1 -1
- package/build/components/ContentTabs.d.ts +1 -1
- package/build/components/ContentTabs.js +2 -3
- package/build/components/DefaultCatchBoundary.d.ts +1 -1
- package/build/components/DefaultCatchBoundary.js +5 -7
- package/build/components/DefinitionList.d.ts +3 -3
- package/build/components/Details.d.ts +1 -1
- package/build/components/Details.js +2 -5
- package/build/components/FileTree.d.ts +1 -1
- package/build/components/FileTree.js +3 -5
- package/build/components/Footer.d.ts +1 -1
- package/build/components/Footer.js +2 -5
- package/build/components/FootnoteRef.d.ts +1 -1
- package/build/components/FootnoteRef.js +2 -4
- package/build/components/Header.d.ts +6 -0
- package/build/components/Header.js +26 -0
- package/build/components/HeaderMenu.d.ts +2 -0
- package/build/components/HeaderMenu.js +27 -0
- package/build/components/HeaderNav.d.ts +6 -0
- package/build/components/HeaderNav.js +74 -0
- package/build/components/HeaderSearch.d.ts +4 -0
- package/build/components/HeaderSearch.js +33 -0
- package/build/components/Heading.d.ts +6 -6
- package/build/components/InlineBadge.d.ts +2 -2
- package/build/components/InlineBadge.js +1 -1
- package/build/components/InlineIcon.d.ts +1 -1
- package/build/components/InlineToc.d.ts +1 -1
- package/build/components/InlineToc.js +2 -4
- package/build/components/Layout.d.ts +2 -1
- package/build/components/Layout.js +5 -58
- package/build/components/LinkButton.d.ts +2 -2
- package/build/components/LinkButton.js +1 -1
- package/build/components/MenuSheet.d.ts +22 -0
- package/build/components/MenuSheet.js +27 -0
- package/build/components/Mermaid.d.ts +1 -1
- package/build/components/MermaidRenderer.d.ts +1 -1
- package/build/components/MermaidRenderer.js +20 -8
- package/build/components/NotFound.d.ts +1 -1
- package/build/components/NotFound.js +3 -6
- package/build/components/PackageTabs.d.ts +1 -1
- package/build/components/PackageTabs.js +3 -7
- package/build/components/PageToolbar.d.ts +1 -1
- package/build/components/PageToolbar.js +2 -10
- package/build/components/PrevNext.d.ts +1 -1
- package/build/components/PrevNext.js +2 -10
- package/build/components/Root.d.ts +4 -0
- package/build/components/Root.js +8 -0
- package/build/components/Search.d.ts +5 -2
- package/build/components/Search.js +11 -9
- package/build/components/SearchDialog.d.ts +1 -1
- package/build/components/SearchDialog.js +10 -133
- package/build/components/Section.d.ts +1 -1
- package/build/components/SectionHeader.d.ts +1 -1
- package/build/components/SheetPanel.d.ts +12 -0
- package/build/components/SheetPanel.js +19 -0
- package/build/components/Sidebar.d.ts +1 -1
- package/build/components/Sidebar.js +12 -14
- package/build/components/SidebarArticles.d.ts +4 -1
- package/build/components/SidebarArticles.js +5 -9
- package/build/components/SidebarLinks.d.ts +4 -1
- package/build/components/SidebarLinks.js +6 -9
- package/build/components/SidebarPosts.d.ts +4 -1
- package/build/components/SidebarPosts.js +7 -23
- package/build/components/SidebarReleases.d.ts +4 -1
- package/build/components/SidebarReleases.js +5 -15
- package/build/components/SidebarSectionPicker.d.ts +8 -0
- package/build/components/SidebarSectionPicker.js +31 -0
- package/build/components/SidebarSections.d.ts +1 -1
- package/build/components/SidebarSections.js +5 -9
- package/build/components/SiteLink.d.ts +1 -1
- package/build/components/SiteTitle.d.ts +1 -1
- package/build/components/SiteTitle.js +2 -6
- package/build/components/SortableTable.d.ts +1 -1
- package/build/components/SoundCloud.d.ts +1 -1
- package/build/components/SoundCloud.js +2 -2
- package/build/components/TagIndex.d.ts +1 -1
- package/build/components/TagIndex.js +2 -11
- package/build/components/Theme.d.ts +2 -1
- package/build/components/Theme.js +35 -15
- package/build/components/Toc.d.ts +5 -4
- package/build/components/Toc.js +35 -35
- package/build/components/YouTube.d.ts +1 -1
- package/build/components/YouTube.js +2 -2
- package/build/components/ZoomImage.d.ts +1 -1
- package/build/content-collections.js +5 -1
- package/build/elements/accordion.d.ts +4 -4
- package/build/elements/accordion.js +2 -3
- package/build/elements/alert-dialog.d.ts +12 -12
- package/build/elements/alert-dialog.js +2 -4
- package/build/elements/alert.d.ts +4 -4
- package/build/elements/alert.js +2 -2
- package/build/elements/aspect-ratio.d.ts +1 -1
- package/build/elements/avatar.d.ts +6 -6
- package/build/elements/badge.d.ts +1 -1
- package/build/elements/badge.js +3 -1
- package/build/elements/breadcrumb.d.ts +6 -6
- package/build/elements/breadcrumb.js +2 -4
- package/build/elements/button-group.d.ts +2 -2
- package/build/elements/button-group.js +5 -5
- package/build/elements/button.d.ts +2 -2
- package/build/elements/button.js +9 -7
- package/build/elements/calendar.d.ts +2 -2
- package/build/elements/calendar.js +2 -2
- package/build/elements/card.d.ts +7 -7
- package/build/elements/card.js +4 -4
- package/build/elements/carousel.d.ts +5 -5
- package/build/elements/carousel.js +3 -7
- package/build/elements/chart.d.ts +6 -6
- package/build/elements/chart.js +5 -11
- package/build/elements/checkbox.d.ts +1 -1
- package/build/elements/collapsible.d.ts +3 -3
- package/build/elements/command.d.ts +9 -9
- package/build/elements/command.js +5 -11
- package/build/elements/context-menu.d.ts +15 -15
- package/build/elements/context-menu.js +6 -9
- package/build/elements/dialog.d.ts +10 -10
- package/build/elements/dialog.js +2 -6
- package/build/elements/drawer.d.ts +14 -12
- package/build/elements/drawer.js +14 -15
- package/build/elements/dropdown-menu.d.ts +15 -15
- package/build/elements/dropdown-menu.js +7 -10
- package/build/elements/empty.d.ts +6 -6
- package/build/elements/empty.js +2 -2
- package/build/elements/field.d.ts +10 -10
- package/build/elements/field.js +3 -4
- package/build/elements/hover-card.d.ts +3 -3
- package/build/elements/hover-card.js +2 -2
- package/build/elements/input-group.d.ts +7 -7
- package/build/elements/input-group.js +5 -5
- package/build/elements/input-otp.d.ts +4 -4
- package/build/elements/input.d.ts +1 -1
- package/build/elements/input.js +2 -2
- package/build/elements/item.d.ts +9 -9
- package/build/elements/item.js +2 -2
- package/build/elements/kbd.d.ts +2 -2
- package/build/elements/label.d.ts +1 -1
- package/build/elements/menubar.d.ts +16 -16
- package/build/elements/menubar.js +9 -11
- package/build/elements/native-select.d.ts +3 -3
- package/build/elements/native-select.js +2 -4
- package/build/elements/navigation-menu.d.ts +8 -8
- package/build/elements/navigation-menu.js +3 -5
- package/build/elements/pagination.d.ts +7 -7
- package/build/elements/pagination.js +4 -10
- package/build/elements/popover.d.ts +6 -6
- package/build/elements/popover.js +2 -2
- package/build/elements/progress.d.ts +5 -5
- package/build/elements/progress.js +2 -3
- package/build/elements/radio-group.d.ts +2 -2
- package/build/elements/resizable.d.ts +3 -3
- package/build/elements/scroll-area.d.ts +2 -2
- package/build/elements/scroll-area.js +2 -4
- package/build/elements/select.d.ts +9 -9
- package/build/elements/select.js +4 -9
- package/build/elements/separator.d.ts +1 -1
- package/build/elements/sheet.d.ts +8 -8
- package/build/elements/sheet.js +2 -6
- package/build/elements/sidebar.d.ts +19 -19
- package/build/elements/sidebar.js +15 -37
- package/build/elements/skeleton.d.ts +1 -1
- package/build/elements/slider.d.ts +2 -1
- package/build/elements/slider.js +2 -3
- package/build/elements/sonner.d.ts +1 -1
- package/build/elements/spinner.d.ts +1 -1
- package/build/elements/switch.d.ts +1 -1
- package/build/elements/table.d.ts +8 -8
- package/build/elements/tabs.d.ts +4 -4
- package/build/elements/tabs.js +3 -3
- package/build/elements/textarea.d.ts +1 -1
- package/build/elements/textarea.js +2 -2
- package/build/elements/toggle-group.d.ts +3 -2
- package/build/elements/toggle-group.js +3 -3
- package/build/elements/toggle.d.ts +1 -1
- package/build/elements/toggle.js +2 -2
- package/build/elements/tooltip.d.ts +4 -4
- package/build/elements/tooltip.js +2 -3
- package/build/head.d.ts +4 -0
- package/build/head.js +6 -0
- package/build/helpers/article-search.d.ts +19 -0
- package/build/helpers/article-search.js +134 -0
- package/build/helpers/dependency-dir.d.ts +5 -0
- package/build/helpers/dependency-dir.js +20 -0
- package/build/helpers/dependency-dir.unit.d.ts +1 -0
- package/build/helpers/dependency-dir.unit.js +25 -0
- package/build/helpers/dynamic-icon-resolver.d.ts +1 -1
- package/build/helpers/dynamic-icon.d.ts +1 -1
- package/build/helpers/head.d.ts +53 -0
- package/build/helpers/head.js +69 -0
- package/build/helpers/head.unit.d.ts +1 -0
- package/build/helpers/head.unit.js +108 -0
- package/build/helpers/nav-items.d.ts +11 -0
- package/build/helpers/nav-items.js +65 -0
- package/build/helpers/render-inline-markdown.d.ts +1 -0
- package/build/helpers/render-inline-markdown.js +34 -0
- package/build/helpers/render-inline-markdown.unit.d.ts +1 -0
- package/build/helpers/render-inline-markdown.unit.js +20 -0
- package/build/helpers/search-highlight.d.ts +8 -0
- package/build/helpers/search-highlight.js +59 -0
- package/build/helpers/search-highlight.unit.d.ts +1 -0
- package/build/helpers/search-highlight.unit.js +36 -0
- package/build/helpers/target-export.d.ts +9 -0
- package/build/helpers/target-export.js +24 -0
- package/build/helpers/target-export.unit.d.ts +1 -0
- package/build/helpers/target-export.unit.js +25 -0
- package/build/helpers/theme.d.ts +6 -2
- package/build/helpers/theme.js +40 -7
- package/build/helpers/theme.unit.d.ts +1 -0
- package/build/helpers/theme.unit.js +30 -0
- package/build/hooks/hydrated.d.ts +2 -0
- package/build/hooks/hydrated.js +15 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -1
- package/build/models/config.d.ts +32 -6
- package/build/models/config.js +10 -1
- package/build/models/section.d.ts +4 -2
- package/build/models/section.js +1 -1
- package/build/plugins/vite-livemark.d.ts +4 -5
- package/build/plugins/vite-livemark.js +56 -90
- package/build/program.js +4 -2
- package/build/routes/$.d.ts +4 -1
- package/build/routes/$.js +20 -9
- package/build/routes/__root.js +29 -63
- package/build/settings.js +2 -1
- package/package.json +68 -66
- package/{.agents/skills → skills}/livemark-authoring/SKILL.md +2 -2
- package/{.agents/skills → skills}/livemark-configuration/SKILL.md +12 -5
- package/skills/livemark-customization/SKILL.md +145 -0
- package/source/actions/config/define.unit.ts +9 -0
- package/source/actions/escape/copy.ts +35 -0
- package/source/actions/escape/copy.unit.ts +51 -0
- package/source/actions/escape/list.ts +30 -0
- package/source/actions/escape/list.unit.ts +42 -0
- package/source/actions/target/build.ts +49 -69
- package/source/actions/target/build.unit.ts +95 -0
- package/source/actions/target/clear.ts +14 -0
- package/source/actions/target/clear.unit.ts +25 -0
- package/source/commands/build.ts +0 -1
- package/source/commands/clear.ts +15 -0
- package/source/commands/escape.ts +42 -59
- package/source/commands/preview.ts +0 -1
- package/source/commands/start.ts +0 -1
- package/source/components/AnsiCode.tsx +1 -1
- package/source/components/Article.tsx +8 -4
- package/source/components/Banner.tsx +12 -2
- package/source/components/BlogIndex.tsx +1 -1
- package/source/components/Callout.tsx +4 -6
- package/source/components/ChangelogIndex.tsx +1 -1
- package/source/components/ChoiceList.tsx +69 -0
- package/source/components/CodeBlock.tsx +6 -6
- package/source/components/CodeTabs.tsx +1 -1
- package/source/components/ContentTabs.tsx +1 -1
- package/source/components/DefaultCatchBoundary.tsx +4 -6
- package/source/components/Details.tsx +1 -1
- package/source/components/FileTree.tsx +1 -1
- package/source/components/Header.tsx +52 -0
- package/source/components/HeaderMenu.tsx +41 -0
- package/source/components/HeaderNav.tsx +145 -0
- package/source/components/HeaderSearch.tsx +77 -0
- package/source/components/InlineBadge.tsx +1 -1
- package/source/components/InlineToc.tsx +1 -1
- package/source/components/Layout.tsx +16 -160
- package/source/components/LinkButton.tsx +9 -1
- package/source/components/MenuSheet.tsx +92 -0
- package/source/components/MermaidRenderer.tsx +19 -8
- package/source/components/NotFound.tsx +3 -5
- package/source/components/PackageTabs.tsx +2 -2
- package/source/components/PageToolbar.tsx +11 -3
- package/source/components/PrevNext.tsx +2 -2
- package/source/components/Root.tsx +13 -0
- package/source/components/Search.tsx +28 -8
- package/source/components/SearchDialog.tsx +15 -189
- package/source/components/SheetPanel.tsx +69 -0
- package/source/components/Sidebar.tsx +27 -14
- package/source/components/SidebarArticles.tsx +4 -3
- package/source/components/SidebarLinks.tsx +3 -2
- package/source/components/SidebarPosts.tsx +3 -2
- package/source/components/SidebarReleases.tsx +3 -2
- package/source/components/SidebarSectionPicker.tsx +70 -0
- package/source/components/SiteTitle.tsx +5 -5
- package/source/components/SoundCloud.tsx +1 -1
- package/source/components/TagIndex.tsx +1 -1
- package/source/components/Theme.tsx +55 -29
- package/source/components/Toc.tsx +76 -55
- package/source/components/YouTube.tsx +1 -1
- package/source/content-collections.ts +4 -0
- package/source/elements/alert-dialog.tsx +1 -1
- package/source/elements/alert.tsx +1 -1
- package/source/elements/badge.tsx +4 -0
- package/source/elements/button-group.tsx +4 -4
- package/source/elements/button.tsx +10 -6
- package/source/elements/calendar.tsx +1 -1
- package/source/elements/card.tsx +3 -3
- package/source/elements/command.tsx +7 -4
- package/source/elements/context-menu.tsx +5 -5
- package/source/elements/dialog.tsx +1 -1
- package/source/elements/drawer.tsx +59 -43
- package/source/elements/dropdown-menu.tsx +6 -6
- package/source/elements/empty.tsx +1 -1
- package/source/elements/field.tsx +1 -1
- package/source/elements/hover-card.tsx +1 -1
- package/source/elements/input-group.tsx +4 -4
- package/source/elements/input.tsx +1 -1
- package/source/elements/item.tsx +1 -1
- package/source/elements/menubar.tsx +8 -8
- package/source/elements/native-select.tsx +1 -1
- package/source/elements/popover.tsx +1 -1
- package/source/elements/select.tsx +3 -3
- package/source/elements/sidebar.tsx +8 -21
- package/source/elements/tabs.tsx +2 -2
- package/source/elements/textarea.tsx +1 -1
- package/source/elements/toggle-group.tsx +2 -2
- package/source/elements/toggle.tsx +1 -1
- package/source/env.d.ts +1 -0
- package/source/head.ts +7 -0
- package/source/helpers/article-search.tsx +192 -0
- package/source/helpers/dependency-dir.ts +20 -0
- package/source/helpers/dependency-dir.unit.ts +39 -0
- package/source/helpers/head.ts +94 -0
- package/source/helpers/head.unit.ts +116 -0
- package/source/helpers/nav-items.tsx +102 -0
- package/source/helpers/render-inline-markdown.ts +44 -0
- package/source/helpers/render-inline-markdown.unit.ts +30 -0
- package/source/helpers/search-highlight.ts +73 -0
- package/source/helpers/search-highlight.unit.ts +42 -0
- package/source/helpers/target-export.ts +28 -0
- package/source/helpers/target-export.unit.ts +37 -0
- package/source/helpers/theme.ts +40 -6
- package/source/helpers/theme.unit.ts +32 -0
- package/source/hooks/hydrated.ts +18 -0
- package/source/index.ts +1 -0
- package/source/models/config.ts +13 -0
- package/source/models/section.ts +3 -0
- package/source/plugins/vite-livemark.ts +54 -95
- package/source/program.ts +2 -0
- package/source/routes/$.tsx +27 -9
- package/source/routes/__root.tsx +51 -71
- package/source/settings.ts +1 -0
- package/source/styles/general.css +59 -11
- package/source/styles/markdown.css +13 -7
- package/source/styles/shape.css +14 -0
- package/.agents/skills/change-review/SKILL.md +0 -47
- package/.agents/skills/livemark-customization/SKILL.md +0 -118
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
@reference "./general.css";
|
|
3
3
|
|
|
4
4
|
@layer components {
|
|
5
|
+
/* A bare URL or long inline code is one unbreakable word that widens the whole
|
|
6
|
+
page on a phone, so it scrolls sideways. */
|
|
7
|
+
.prose {
|
|
8
|
+
overflow-wrap: break-word;
|
|
9
|
+
}
|
|
10
|
+
|
|
5
11
|
.prose :is(h1, h2, h3, h4, h5, h6) {
|
|
6
12
|
@apply scroll-mt-28 md:scroll-mt-20;
|
|
7
13
|
}
|
|
@@ -43,29 +49,29 @@
|
|
|
43
49
|
}
|
|
44
50
|
|
|
45
51
|
.prose pre code .line[data-diff="add"] {
|
|
46
|
-
@apply bg-
|
|
52
|
+
@apply bg-positive/15;
|
|
47
53
|
}
|
|
48
54
|
|
|
49
55
|
.prose pre code .line[data-diff="remove"] {
|
|
50
|
-
@apply bg-
|
|
56
|
+
@apply bg-destructive/15;
|
|
51
57
|
}
|
|
52
58
|
|
|
53
59
|
.prose pre code .line[data-diff="add"]::before {
|
|
54
60
|
content: "+";
|
|
55
|
-
@apply text-
|
|
61
|
+
@apply text-positive-tint-foreground absolute left-1;
|
|
56
62
|
}
|
|
57
63
|
|
|
58
64
|
.prose pre code .line[data-diff="remove"]::before {
|
|
59
65
|
content: "-";
|
|
60
|
-
@apply text-
|
|
66
|
+
@apply text-destructive-tint-foreground absolute left-1;
|
|
61
67
|
}
|
|
62
68
|
|
|
63
69
|
.prose pre code .line[data-line-status="error"] {
|
|
64
|
-
@apply bg-
|
|
70
|
+
@apply bg-destructive/15;
|
|
65
71
|
}
|
|
66
72
|
|
|
67
73
|
.prose pre code .line[data-line-status="warning"] {
|
|
68
|
-
@apply bg-
|
|
74
|
+
@apply bg-warning/15;
|
|
69
75
|
}
|
|
70
76
|
|
|
71
77
|
.prose pre[data-has-focus] code .line:not([data-focus]) {
|
|
@@ -100,7 +106,7 @@
|
|
|
100
106
|
}
|
|
101
107
|
|
|
102
108
|
.prose pre code .twoslash-error-line {
|
|
103
|
-
@apply bg-
|
|
109
|
+
@apply bg-destructive/10;
|
|
104
110
|
}
|
|
105
111
|
|
|
106
112
|
.prose pre code .twoslash-tag-line {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* Elements name these, never a raw `rounded-md`: controls are pills, rows and cards 1rem,
|
|
2
|
+
panels 1.5rem. Pills ignore `--radius`; only the `sm`…`xl` scale follows it. */
|
|
3
|
+
@theme inline {
|
|
4
|
+
--radius-control: 9999px;
|
|
5
|
+
--radius-control-sm: 9999px;
|
|
6
|
+
--radius-control-xs: 9999px;
|
|
7
|
+
--radius-control-inset: 9999px;
|
|
8
|
+
--radius-textarea: 1rem;
|
|
9
|
+
--radius-row: 1rem;
|
|
10
|
+
--radius-card: 1rem;
|
|
11
|
+
--radius-panel: 1.5rem;
|
|
12
|
+
--radius-menu: 1rem;
|
|
13
|
+
--radius-menu-item: calc(1rem - 4px);
|
|
14
|
+
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: change-review
|
|
3
|
-
description: Review a pull request for correctness, security and repo conventions, posting findings as inline comments. Invoked by the review workflow and by a person; never fires on its own.
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Review a pull request
|
|
8
|
-
|
|
9
|
-
Read the diff, judge it, post findings as inline comments. Be useful, not thorough-looking:
|
|
10
|
-
a review that flags twenty things teaches nothing, and the twenty-first — the real one — is lost
|
|
11
|
-
in it.
|
|
12
|
-
|
|
13
|
-
## What to look for
|
|
14
|
-
|
|
15
|
-
**Correctness**
|
|
16
|
-
|
|
17
|
-
- Logic that is wrong for an input the change makes reachable, not merely unusual.
|
|
18
|
-
- Error handling that swallows a failure or reports success on a partial write.
|
|
19
|
-
- Concurrency: two requests, two sessions, a retry, a replay.
|
|
20
|
-
- Performance where the change makes it structurally worse (a query in a loop, an unbounded
|
|
21
|
-
scan), not where it is merely not optimal.
|
|
22
|
-
|
|
23
|
-
**Security — OWASP-shaped, but reported only when reachable**
|
|
24
|
-
|
|
25
|
-
- Injection (SQL and otherwise), XSS, SSRF, XXE, unsafe deserialisation.
|
|
26
|
-
- Broken authentication or access control: a route that skips the permission it needs, a scope
|
|
27
|
-
resolved from user input, an id trusted because it came from the client.
|
|
28
|
-
- Sensitive data exposure: secrets in code or logs, PII widening, a credential recoverable from
|
|
29
|
-
the database.
|
|
30
|
-
- Insecure cryptography, race conditions and TOCTOU, missing logging on a security-relevant
|
|
31
|
-
action.
|
|
32
|
-
|
|
33
|
-
**This repo's own conventions** — these are where a generic reviewer is blind, and they matter
|
|
34
|
-
more than the generic checklist. Read `AGENTS.md` and the sibling skills before judging: a
|
|
35
|
-
change that violates a documented invariant is a finding even when the code is otherwise
|
|
36
|
-
correct.
|
|
37
|
-
|
|
38
|
-
## How to report
|
|
39
|
-
|
|
40
|
-
Rate each finding **CRITICAL / HIGH / MEDIUM / LOW**, and say what input or sequence produces
|
|
41
|
-
the failure. A finding that cannot name the case that breaks is a hunch: either verify it or
|
|
42
|
-
leave it out.
|
|
43
|
-
|
|
44
|
-
Post specific issues as inline comments on the lines they concern. Keep the summary short.
|
|
45
|
-
Silence on the parts that are fine is not laziness — it is what makes the flagged parts legible.
|
|
46
|
-
|
|
47
|
-
If the change is good, say so briefly and stop. Do not manufacture findings to justify the run.
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: livemark-customization
|
|
3
|
-
description: Use when overriding Livemark's built-in UI or adding custom routes — drop same-named files under .livemark/{components,elements,styles} to shadow defaults, author .livemark/routes/*.tsx for new pages, or copy defaults with the `livemark escape` command.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Livemark Customization
|
|
7
|
-
|
|
8
|
-
Guidance for customizing the UI layer of a Livemark project beyond what `livemark.config.ts` exposes.
|
|
9
|
-
|
|
10
|
-
## When to use this skill
|
|
11
|
-
|
|
12
|
-
Invoke when the user asks to:
|
|
13
|
-
|
|
14
|
-
- Change a built-in component's layout or markup (Footer, Sidebar, Banner, …).
|
|
15
|
-
- Restyle a shared primitive (buttons, inputs, cards, sheet, …).
|
|
16
|
-
- Rebrand via CSS tokens (colors, radii, typography).
|
|
17
|
-
- Add a brand-new page that isn't a Markdown article (landing hero, pricing page, about page).
|
|
18
|
-
- Replace Livemark's default landing page with a custom React component.
|
|
19
|
-
- Serve a custom `favicon.svg`, `robots.txt`, `og-image.png`, or other static asset.
|
|
20
|
-
|
|
21
|
-
## Three overlapping mechanisms
|
|
22
|
-
|
|
23
|
-
| Goal | Mechanism |
|
|
24
|
-
| --------------------------------- | ----------------------------------------------------- |
|
|
25
|
-
| Replace a default component/style | Drop a file at `.livemark/components/<Name>.tsx` etc. |
|
|
26
|
-
| Add a new page at an exact URL | Create `.livemark/routes/<path>.tsx` |
|
|
27
|
-
| Serve a static asset at `/<path>` | Put the file in `.livemark/public/<path>` |
|
|
28
|
-
|
|
29
|
-
None require config changes. The Vite plugin (`website/plugins/vite-livemark.ts`) watches `.livemark/**` and hot-reloads.
|
|
30
|
-
|
|
31
|
-
## Discovering what's overridable
|
|
32
|
-
|
|
33
|
-
Run the `escape` command. No arg lists every overridable file:
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
livemark escape
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
Output is a flat `<subdir>/<file>` list across `components/`, `elements/`, and `styles/`. With an argument, the command copies the default into `.livemark/`:
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
livemark escape components/Footer.tsx # → .livemark/components/Footer.tsx
|
|
43
|
-
livemark escape elements/button.tsx # → .livemark/elements/button.tsx
|
|
44
|
-
livemark escape styles/general.css # → .livemark/styles/general.css
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
The command refuses to overwrite an existing override. Delete the override first if you want a fresh start.
|
|
48
|
-
|
|
49
|
-
## Typical workflow: override a component
|
|
50
|
-
|
|
51
|
-
1. `livemark escape components/Footer.tsx` — copy the default.
|
|
52
|
-
2. Edit `.livemark/components/Footer.tsx`. All the site's Footer renders shift to the new file on save.
|
|
53
|
-
3. Inside the override, import other Livemark modules from the `livemark/<subdir>/*` subpath exports:
|
|
54
|
-
```tsx
|
|
55
|
-
import { cn } from "livemark/helpers/style"
|
|
56
|
-
import { Button } from "livemark/elements/button"
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
## Typical workflow: rebrand
|
|
60
|
-
|
|
61
|
-
1. `livemark escape styles/general.css`.
|
|
62
|
-
2. Edit the `:root` and `.dark` blocks in `.livemark/styles/general.css`:
|
|
63
|
-
- `--primary` — brand accent (Tailwind-flavoured oklch values work).
|
|
64
|
-
- `--radius` — corner roundness base.
|
|
65
|
-
- Sidebar / chart tokens if you want deeper tweaks.
|
|
66
|
-
3. Save — the dev server applies immediately.
|
|
67
|
-
|
|
68
|
-
Whole-site contrast is audited: light mode targets blue-600, dark mode targets blue-500. Keep new token values AA-compliant on both backgrounds (≥4.5:1 for text).
|
|
69
|
-
|
|
70
|
-
## Typical workflow: add a page
|
|
71
|
-
|
|
72
|
-
Custom routes use [TanStack Router](https://tanstack.com/router). Minimal example:
|
|
73
|
-
|
|
74
|
-
```tsx title=".livemark/routes/about.tsx"
|
|
75
|
-
import { createFileRoute } from "@tanstack/react-router"
|
|
76
|
-
|
|
77
|
-
export const Route = createFileRoute("/about")({
|
|
78
|
-
component: () => (
|
|
79
|
-
<main className="mx-auto max-w-3xl px-6 py-16 prose">
|
|
80
|
-
<h1>About</h1>
|
|
81
|
-
<p>Hello.</p>
|
|
82
|
-
</main>
|
|
83
|
-
),
|
|
84
|
-
})
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
Filename maps to URL path: `.livemark/routes/pricing.tsx` → `/pricing/`. Nested paths work via nested folders.
|
|
88
|
-
|
|
89
|
-
An `index.tsx` in `.livemark/routes/` **replaces** Livemark's default landing at `/`.
|
|
90
|
-
|
|
91
|
-
Custom routes win over the Markdown catch-all at exact URLs. Don't create a route that collides with an article URL unless you intend to hide the article.
|
|
92
|
-
|
|
93
|
-
## Rules of thumb
|
|
94
|
-
|
|
95
|
-
1. **Don't fork the repo** for routine customization. Use `.livemark/` first — it reliably survives Livemark upgrades.
|
|
96
|
-
2. **Same filename, same path under `.livemark/`.** The override plugin is case-sensitive and mirrors the subdirectory structure exactly.
|
|
97
|
-
3. **Override files are full replacements**, not diffs. Copy the default first (via `escape`), then edit.
|
|
98
|
-
4. **Import Livemark internals via `livemark/*`**, not via relative paths — the plugin routes those through the override resolver, so chained overrides (e.g., your Layout using your Sidebar) compose correctly.
|
|
99
|
-
5. **Static files belong in `.livemark/public/`**, which Vite exposes at the site root.
|
|
100
|
-
|
|
101
|
-
## What's NOT overridable
|
|
102
|
-
|
|
103
|
-
- `actions/`, `commands/`, `program.ts` — server/CLI code. Fork upstream if you need to change these.
|
|
104
|
-
- `livemark.config.ts` schema — fixed.
|
|
105
|
-
- Content-collections transform pipeline. Customize markdown via remark/rehype plugins in a fork (or PR upstream).
|
|
106
|
-
|
|
107
|
-
## Verification
|
|
108
|
-
|
|
109
|
-
- `pnpm type` — confirms overrides typecheck.
|
|
110
|
-
- `pnpm docs:build` — smoke-test the override lands in the bundle.
|
|
111
|
-
- Browser: load an article page with the dev server; custom Footer/Sidebar/etc. should render without a full reload.
|
|
112
|
-
|
|
113
|
-
## References
|
|
114
|
-
|
|
115
|
-
- Narrative docs: `docs/customization/file-overrides.md`, `docs/customization/custom-routes.md`.
|
|
116
|
-
- Plugin implementation: `website/plugins/vite-livemark.ts`.
|
|
117
|
-
- Escape command: `commands/escape.ts`.
|
|
118
|
-
- Subpath exports: `package.json` `exports` block.
|