@stainless-api/docs 0.1.0-beta.8 → 0.1.0-beta.80

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.
Files changed (131) hide show
  1. package/CHANGELOG.md +636 -0
  2. package/eslint-suppressions.json +52 -0
  3. package/locals.d.ts +17 -0
  4. package/package.json +50 -39
  5. package/plugin/assets/languages/cli.svg +14 -0
  6. package/plugin/assets/languages/csharp.svg +1 -0
  7. package/plugin/buildAlgoliaIndex.ts +32 -7
  8. package/plugin/cms/server.ts +130 -59
  9. package/plugin/cms/sidebar-builder.ts +7 -26
  10. package/plugin/cms/worker.ts +83 -5
  11. package/plugin/components/MethodDescription.tsx +54 -0
  12. package/plugin/components/RequestBuilder/ParamEditor.tsx +55 -0
  13. package/plugin/components/RequestBuilder/SnippetStainlessIsland.tsx +107 -0
  14. package/plugin/components/RequestBuilder/index.tsx +31 -0
  15. package/plugin/components/RequestBuilder/props.ts +9 -0
  16. package/plugin/components/RequestBuilder/spec-helpers.ts +50 -0
  17. package/plugin/components/RequestBuilder/styles.css +67 -0
  18. package/plugin/components/SDKSelect.astro +7 -87
  19. package/plugin/components/SnippetCode.tsx +107 -67
  20. package/plugin/components/StainlessIslands.tsx +126 -0
  21. package/plugin/components/search/SearchAlgolia.astro +45 -28
  22. package/plugin/components/search/SearchIsland.tsx +45 -27
  23. package/plugin/generateAPIReferenceLink.ts +2 -2
  24. package/plugin/globalJs/ai-dropdown-options.ts +243 -0
  25. package/plugin/globalJs/code-snippets.ts +15 -8
  26. package/plugin/globalJs/copy.ts +91 -17
  27. package/plugin/globalJs/create-playground.shim.ts +3 -0
  28. package/plugin/globalJs/method-descriptions.ts +33 -0
  29. package/plugin/globalJs/navigation.ts +7 -26
  30. package/plugin/globalJs/playground-data.shim.ts +1 -0
  31. package/plugin/globalJs/playground-data.ts +14 -0
  32. package/plugin/helpers/generateDocsRoutes.ts +27 -0
  33. package/plugin/index.ts +198 -36
  34. package/plugin/languages.ts +7 -2
  35. package/plugin/loadPluginConfig.ts +122 -36
  36. package/plugin/middlewareBuilder/stainlessMiddleware.d.ts +1 -1
  37. package/plugin/react/Routing.tsx +199 -126
  38. package/plugin/referencePlaceholderUtils.ts +1 -1
  39. package/plugin/replaceSidebarPlaceholderMiddleware.ts +3 -3
  40. package/plugin/routes/Docs.astro +55 -102
  41. package/plugin/routes/DocsStatic.astro +1 -1
  42. package/plugin/routes/Overview.astro +10 -16
  43. package/plugin/routes/markdown.ts +9 -8
  44. package/plugin/vendor/preview.worker.docs.js +20928 -17830
  45. package/plugin/vendor/templates/go.md +1 -1
  46. package/plugin/vendor/templates/python.md +1 -1
  47. package/resolveSrcFile.ts +10 -0
  48. package/scripts/vendor_deps.ts +5 -5
  49. package/shared/getProsePages.ts +42 -0
  50. package/shared/getSharedLogger.ts +15 -0
  51. package/shared/terminalUtils.ts +3 -0
  52. package/src/content.config.ts +9 -0
  53. package/stl-docs/components/AIDropdown.tsx +63 -0
  54. package/stl-docs/components/AiChatIsland.tsx +14 -0
  55. package/stl-docs/components/{content-panel/ContentBreadcrumbs.tsx → ContentBreadcrumbs.tsx} +2 -2
  56. package/stl-docs/components/Head.astro +16 -0
  57. package/stl-docs/components/Header.astro +6 -8
  58. package/stl-docs/components/PageFrame.astro +18 -0
  59. package/stl-docs/components/PageTitle.astro +82 -0
  60. package/stl-docs/components/TableOfContents.astro +34 -0
  61. package/stl-docs/components/ThemeProvider.astro +36 -0
  62. package/stl-docs/components/ThemeSelect.astro +84 -139
  63. package/stl-docs/components/content-panel/ContentPanel.astro +15 -46
  64. package/stl-docs/components/headers/SplashMobileMenuToggle.astro +17 -1
  65. package/stl-docs/components/headers/StackedHeader.astro +29 -24
  66. package/stl-docs/components/icons/chat-gpt.tsx +2 -2
  67. package/stl-docs/components/icons/cursor.tsx +10 -0
  68. package/stl-docs/components/icons/gemini.tsx +19 -0
  69. package/stl-docs/components/icons/markdown.tsx +1 -1
  70. package/stl-docs/components/index.ts +1 -0
  71. package/stl-docs/components/mintlify-compat/Accordion.astro +7 -5
  72. package/stl-docs/components/mintlify-compat/AccordionGroup.astro +7 -3
  73. package/stl-docs/components/mintlify-compat/Columns.astro +40 -42
  74. package/stl-docs/components/mintlify-compat/Frame.astro +16 -18
  75. package/stl-docs/components/mintlify-compat/callouts/Callout.astro +1 -1
  76. package/stl-docs/components/mintlify-compat/callouts/Check.astro +1 -1
  77. package/stl-docs/components/mintlify-compat/callouts/Danger.astro +1 -1
  78. package/stl-docs/components/mintlify-compat/callouts/Info.astro +1 -1
  79. package/stl-docs/components/mintlify-compat/callouts/Note.astro +1 -1
  80. package/stl-docs/components/mintlify-compat/callouts/Tip.astro +1 -1
  81. package/stl-docs/components/mintlify-compat/callouts/Warning.astro +1 -1
  82. package/stl-docs/components/mintlify-compat/card.css +33 -35
  83. package/stl-docs/components/mintlify-compat/index.ts +2 -4
  84. package/stl-docs/components/nav-tabs/NavDropdown.astro +31 -70
  85. package/stl-docs/components/nav-tabs/NavTabs.astro +78 -80
  86. package/stl-docs/components/nav-tabs/SecondaryNavTabs.astro +15 -8
  87. package/stl-docs/components/nav-tabs/buildNavLinks.ts +3 -2
  88. package/stl-docs/components/pagination/HomeLink.astro +10 -0
  89. package/stl-docs/components/pagination/Pagination.astro +175 -0
  90. package/stl-docs/components/pagination/PaginationLinkEmphasized.astro +22 -0
  91. package/stl-docs/components/pagination/PaginationLinkQuiet.astro +13 -0
  92. package/stl-docs/components/pagination/util.ts +71 -0
  93. package/stl-docs/components/scripts.ts +1 -0
  94. package/stl-docs/disableCalloutSyntax.ts +36 -0
  95. package/stl-docs/index.ts +147 -52
  96. package/stl-docs/loadStlDocsConfig.ts +45 -7
  97. package/stl-docs/proseMarkdown/proseMarkdownIntegration.ts +61 -0
  98. package/stl-docs/proseMarkdown/proseMarkdownMiddleware.ts +39 -0
  99. package/stl-docs/proseMarkdown/toMarkdown.ts +158 -0
  100. package/stl-docs/proseSearchIndexing.ts +450 -0
  101. package/stl-docs/tabsMiddleware.ts +13 -4
  102. package/styles/code.css +128 -136
  103. package/styles/fonts.css +32 -17
  104. package/styles/links.css +11 -48
  105. package/styles/method-descriptions.css +36 -0
  106. package/styles/overrides.css +49 -57
  107. package/styles/page.css +90 -59
  108. package/styles/sdk_select.css +9 -7
  109. package/styles/search.css +57 -69
  110. package/styles/sidebar.css +211 -131
  111. package/styles/{variables.css → sl-variables.css} +3 -2
  112. package/styles/stldocs-variables.css +6 -0
  113. package/styles/toc.css +41 -34
  114. package/theme.css +10 -10
  115. package/tsconfig.json +2 -5
  116. package/virtual-module.d.ts +121 -5
  117. package/components/variables.css +0 -135
  118. package/plugin/globalJs/ai-dropdown.ts +0 -57
  119. package/stl-docs/components/APIReferenceAIDropdown.tsx +0 -58
  120. package/stl-docs/components/content-panel/ProseAIDropdown.tsx +0 -55
  121. package/stl-docs/components/mintlify-compat/Step.astro +0 -58
  122. package/stl-docs/components/mintlify-compat/Steps.astro +0 -17
  123. /package/{plugin/assets → assets}/fonts/geist/OFL.txt +0 -0
  124. /package/{plugin/assets → assets}/fonts/geist/geist-italic-latin-ext.woff2 +0 -0
  125. /package/{plugin/assets → assets}/fonts/geist/geist-italic-latin.woff2 +0 -0
  126. /package/{plugin/assets → assets}/fonts/geist/geist-latin-ext.woff2 +0 -0
  127. /package/{plugin/assets → assets}/fonts/geist/geist-latin.woff2 +0 -0
  128. /package/{plugin/assets → assets}/fonts/geist/geist-mono-italic-latin-ext.woff2 +0 -0
  129. /package/{plugin/assets → assets}/fonts/geist/geist-mono-italic-latin.woff2 +0 -0
  130. /package/{plugin/assets → assets}/fonts/geist/geist-mono-latin-ext.woff2 +0 -0
  131. /package/{plugin/assets → assets}/fonts/geist/geist-mono-latin.woff2 +0 -0
@@ -34,13 +34,7 @@ const navLinks = buildNavLinks(Astro.locals.starlightRoute);
34
34
  align-items: center;
35
35
  padding: 0;
36
36
  list-style: none;
37
- overflow-x: auto;
38
37
  margin-bottom: -1px;
39
- gap: 0.29rem;
40
- }
41
-
42
- .stl-active-secondary-link:hover {
43
- background-color: transparent;
44
38
  }
45
39
 
46
40
  li {
@@ -48,7 +42,21 @@ const navLinks = buildNavLinks(Astro.locals.starlightRoute);
48
42
  border-bottom: 2px solid transparent;
49
43
 
50
44
  &.active {
51
- border-color: var(--sl-color-text-accent);
45
+ border-color: var(--stl-color-accent-border-strong);
46
+ }
47
+
48
+ .stl-ui-button {
49
+ /* match sidebar. TODO: hoist sidebar variables to use those instead of hardcoding? */
50
+ border-width: 0;
51
+ padding: 8px 12px;
52
+ margin-inline: -12px;
53
+ }
54
+ /* cover for button’s negative margin */
55
+ &:not(:first-child) {
56
+ margin-inline-start: 12px;
57
+ }
58
+ &:not(:last-child) {
59
+ margin-inline-end: 12px;
52
60
  }
53
61
  }
54
62
  }
@@ -56,7 +64,6 @@ const navLinks = buildNavLinks(Astro.locals.starlightRoute);
56
64
  @media (min-width: 50rem) {
57
65
  .stl-secondary-nav-tabs {
58
66
  display: block;
59
- padding-left: 0.55rem;
60
67
  }
61
68
  }
62
69
  </style>
@@ -1,9 +1,10 @@
1
1
  import type { StarlightRouteData } from '@astrojs/starlight/route-data';
2
2
  import { TABS } from 'virtual:stl-docs-virtual-module';
3
+ import type { StarlightRouteWithStlDocs } from '../../tabsMiddleware';
3
4
 
4
5
  export function buildNavLinks(starlightRoute: StarlightRouteData) {
5
- // TODO: specify the type of Astro.locals.starlightRoute._stlDocs
6
- const activeTabIndex = starlightRoute._stlDocs?.activeTabIndex;
6
+ const routeData: StarlightRouteWithStlDocs = starlightRoute;
7
+ const activeTabIndex = routeData?._stlDocs?.activeTabIndex;
7
8
 
8
9
  const navLinks = TABS.map((item, index) => ({
9
10
  ...item,
@@ -0,0 +1,10 @@
1
+ ---
2
+ import { base } from 'astro:config/client';
3
+ import { HomeIcon } from 'lucide-react';
4
+ import PaginationLinkQuiet from './PaginationLinkQuiet.astro';
5
+ ---
6
+
7
+ <PaginationLinkQuiet href={base}>
8
+ <HomeIcon slot="icon" />
9
+ Home
10
+ </PaginationLinkQuiet>
@@ -0,0 +1,175 @@
1
+ ---
2
+ import HomeLink from './HomeLink.astro';
3
+ import PaginationLinkEmphasized from './PaginationLinkEmphasized.astro';
4
+
5
+ import { getPrevNextPage } from './util';
6
+ import config from 'virtual:starlight/user-config';
7
+ const { prev, next } = (await getPrevNextPage(Astro.locals.starlightRoute, config.pagination)) ?? {};
8
+ ---
9
+
10
+ {
11
+ next || prev ? (
12
+ <div class="pagination-links print:hidden stl-ui-not-prose">
13
+ {/* Previous */}
14
+ {!prev && <HomeLink />}
15
+ {/* TODO: intelligently decide whether or not to emphasize the previous page - including user config option (page level?) */}
16
+ {/* {prev && next && (
17
+ <PaginationLinkQuiet href={prev.href}>
18
+ <ChevronLeftIcon slot="icon" />
19
+ Previous
20
+ </PaginationLinkQuiet>
21
+ )} */}
22
+ {prev && (
23
+ <PaginationLinkEmphasized href={prev.href} direction="prev">
24
+ <h2 slot="page-title">{prev.label}</h2>
25
+ {prev.description && <p slot="page-description">{prev.description}</p>}
26
+ </PaginationLinkEmphasized>
27
+ )}
28
+
29
+ {/* Next */}
30
+ {!next && <HomeLink />}
31
+ {next && (
32
+ <PaginationLinkEmphasized href={next.href} direction="next">
33
+ <h2 slot="page-title">{next.label}</h2>
34
+ {next.description && <p slot="page-description">{next.description}</p>}
35
+ </PaginationLinkEmphasized>
36
+ )}
37
+ </div>
38
+ ) : null
39
+ }
40
+
41
+ <style is:global>
42
+ @layer starlight.core {
43
+ .pagination-links,
44
+ .pagination-links a,
45
+ .pagination-links a:hover,
46
+ .pagination-links a[rel='next'],
47
+ .link-title {
48
+ all: revert-layer;
49
+ }
50
+ }
51
+
52
+ .pagination-links {
53
+ --stl-ui-pagination-padding: 8px;
54
+ --stl-ui-pagination-border-radius-inner: var(--stl-ui-layout-border-radius-sml);
55
+
56
+ padding: var(--stl-ui-pagination-padding);
57
+ background-color: var(--stl-color-faint-background);
58
+ border: 1px solid var(--stl-color-border);
59
+ border-radius: calc(var(--stl-ui-pagination-border-radius-inner) + var(--stl-ui-pagination-padding));
60
+
61
+ font-size: var(--stl-typography-scale-sm);
62
+ letter-spacing: normal;
63
+
64
+ display: flex;
65
+ gap: 8px;
66
+
67
+ margin-bottom: 2rem;
68
+ color: inherit; /* stl-ui-not-prose sets color: initial */
69
+
70
+ a {
71
+ border-radius: var(--stl-ui-pagination-border-radius-inner);
72
+ }
73
+ }
74
+
75
+ .pagination-links__link {
76
+ display: flex;
77
+ border-radius: var(--stl-ui-pagination-border-radius-inner);
78
+ padding: 8px 12px;
79
+ display: flex;
80
+ text-decoration: none;
81
+ align-items: center;
82
+ color: inherit;
83
+ }
84
+
85
+ .pagination-links__link--emphasized {
86
+ background-color: var(--stl-color-background);
87
+ border: 1px solid var(--stl-color-border);
88
+ flex: 1 1 50%;
89
+ gap: 12px;
90
+ }
91
+
92
+ .pagination-links__link--quiet {
93
+ flex: 0 1 auto;
94
+ }
95
+
96
+ .pagination-links__button {
97
+ display: flex;
98
+ align-items: center;
99
+ padding: 8px 14px;
100
+ font-weight: 500;
101
+ line-height: 1;
102
+
103
+ svg {
104
+ width: 16px;
105
+ height: 16px;
106
+ margin-block: -4px;
107
+ margin-inline-start: -6px;
108
+ margin-inline-end: 6px;
109
+ }
110
+
111
+ &.pagination-links__link--quiet {
112
+ padding-inline: 22px;
113
+ }
114
+ }
115
+
116
+ .pagination-links__link__divider {
117
+ border: 0;
118
+ border-inline-start: 1px solid var(--stl-color-border);
119
+ align-self: stretch;
120
+ }
121
+
122
+ .pagination-links__page-description {
123
+ padding-block: 4px;
124
+ padding-inline-start: 8px;
125
+ padding-inline-end: 2px;
126
+ line-height: 1.5;
127
+ flex: 1 1 50%;
128
+ width: 0;
129
+
130
+ h2,
131
+ p {
132
+ white-space: nowrap;
133
+ overflow: hidden;
134
+ text-overflow: ellipsis;
135
+ }
136
+ h2 {
137
+ font-size: inherit;
138
+ font-weight: 500;
139
+ }
140
+ p {
141
+ font-size: var(--stl-typography-scale-xs);
142
+ color: var(--stl-color-foreground-muted);
143
+ }
144
+ }
145
+ .pagination-links__link--quiet:hover {
146
+ background-color: var(--stl-color-background-hover);
147
+ }
148
+ .pagination-links__link--emphasized:hover {
149
+ border-color: var(--stl-color-border-strong);
150
+ .pagination-links__page-description h2 {
151
+ text-decoration: underline;
152
+ text-decoration-color: var(--stl-color-foreground-reduced);
153
+ }
154
+ }
155
+
156
+ /* “next” link runs the opposite direction of the “previous” link */
157
+ .pagination-links__link:last-child {
158
+ flex-direction: row-reverse;
159
+
160
+ &.pagination-links__button,
161
+ .pagination-links__button {
162
+ flex-direction: row-reverse;
163
+ svg {
164
+ margin-inline-start: 6px;
165
+ margin-inline-end: -6px;
166
+ }
167
+ }
168
+
169
+ .pagination-links__page-description {
170
+ padding-inline-start: 2px;
171
+ padding-inline-end: 8px;
172
+ text-align: right;
173
+ }
174
+ }
175
+ </style>
@@ -0,0 +1,22 @@
1
+ ---
2
+ import { ChevronLeftIcon, ChevronRightIcon } from 'lucide-react';
3
+ const { href, direction } = Astro.props;
4
+ export interface Props {
5
+ href: string;
6
+ direction: 'prev' | 'next';
7
+ }
8
+ ---
9
+
10
+ <a href={href} class="pagination-links__link pagination-links__link--emphasized">
11
+ <div class="pagination-links__button">
12
+ {{ prev: <ChevronLeftIcon />, next: <ChevronRightIcon /> }[direction]}
13
+ <span>{{ prev: 'Previous', next: 'Next' }[direction]}</span>
14
+ </div>
15
+
16
+ <hr class="pagination-links__link__divider" />
17
+
18
+ <article class="pagination-links__page-description">
19
+ <slot name="page-title" />
20
+ <slot name="page-description" />
21
+ </article>
22
+ </a>
@@ -0,0 +1,13 @@
1
+ ---
2
+ const { href } = Astro.props;
3
+ export interface Props {
4
+ href: string;
5
+ }
6
+ ---
7
+
8
+ <a href={href} class="pagination-links__link pagination-links__button pagination-links__link--quiet">
9
+ <slot name="icon" />
10
+ <span>
11
+ <slot />
12
+ </span>
13
+ </a>
@@ -0,0 +1,71 @@
1
+ import type { StarlightRouteData } from '@astrojs/starlight/route-data';
2
+ import { getCollection } from 'astro:content';
3
+
4
+ export type SidebarEntry = StarlightRouteData['sidebar'][number];
5
+ export type SidebarLink = Extract<SidebarEntry, { type: 'link' }>;
6
+ export type SidebarGroup = Extract<SidebarEntry, { type: 'group' }>;
7
+
8
+ export const flattenSidebar = (sidebar: SidebarEntry[]): SidebarLink[] =>
9
+ sidebar.flatMap((e) => (e.type === 'group' ? flattenSidebar(e.entries) : e));
10
+
11
+ function findParentOfSidebarEntry(sidebar: SidebarEntry[], targetEntry: SidebarEntry): SidebarGroup | null {
12
+ for (const entry of sidebar) {
13
+ if (entry.type === 'group') {
14
+ if (entry.entries.includes(targetEntry)) {
15
+ return entry;
16
+ }
17
+ const foundInChild = findParentOfSidebarEntry(entry.entries, targetEntry);
18
+ if (foundInChild) {
19
+ return foundInChild;
20
+ }
21
+ }
22
+ }
23
+ return null;
24
+ }
25
+
26
+ export async function getPrevNextPage(page: StarlightRouteData, paginationEnabled: boolean) {
27
+ // TODO: respect user `next` / `prev` config from frontmatter the way starlight does
28
+
29
+ if (!paginationEnabled) return null;
30
+
31
+ const docsContent = await getCollection('docs');
32
+ const findSidebarLinkInContent = (link: SidebarLink) =>
33
+ docsContent.find((doc) => {
34
+ if (doc.id === 'index' && link.href === '/') return true;
35
+ return doc.id === link.href.replace(/^\//, '').replace(/\/$/, '');
36
+ });
37
+
38
+ const currentSidebar = page.sidebar;
39
+
40
+ const paginationSequence: (SidebarLink & { description?: string })[] = flattenSidebar(currentSidebar)
41
+ // Remove injected stl-mobile-only-sidebar-item links - TODO: better solution for this
42
+ .filter((link) => !(link.attrs.class ?? '').trim().split(/\s+/).includes('stl-mobile-only-sidebar-item'))
43
+ // Remove data-stldocs-method links from pagination sequence
44
+ .filter((link) => !link.attrs['data-stldocs-method'])
45
+ // Map data-stldocs-overview=readme links so that their name is not just “Overview”
46
+ .map((link) => {
47
+ if (link.attrs['data-stldocs-overview'] && link.label === 'Overview') {
48
+ const parent = findParentOfSidebarEntry(currentSidebar, link);
49
+ if (parent) return { ...link, label: parent.label };
50
+ }
51
+ return link;
52
+ })
53
+ .map((link) => {
54
+ const contentEntry = findSidebarLinkInContent(link);
55
+ if (contentEntry) return { ...link, description: contentEntry.data.description };
56
+ return link;
57
+ });
58
+
59
+ const currentIndex = paginationSequence.findIndex((e) => e.isCurrent);
60
+ if (currentIndex === -1) return null;
61
+
62
+ const prevIndex = currentIndex > 0 ? currentIndex - 1 : null;
63
+ const nextIndex = currentIndex < paginationSequence.length - 1 ? currentIndex + 1 : null;
64
+ const prevSidebarEntry = prevIndex !== null ? (paginationSequence[prevIndex] ?? null) : null;
65
+ const nextSidebarEntry = nextIndex !== null ? (paginationSequence[nextIndex] ?? null) : null;
66
+
67
+ return {
68
+ prev: prevSidebarEntry,
69
+ next: nextSidebarEntry,
70
+ };
71
+ }
@@ -0,0 +1 @@
1
+ export * from '@stainless-api/ui-primitives/scripts';
@@ -0,0 +1,36 @@
1
+ import type { AstroIntegration } from 'astro';
2
+ import type { StarlightPlugin } from '@astrojs/starlight/types';
3
+
4
+ export const disableCalloutSyntaxAstroIntegration = {
5
+ name: 'stl-starlight-remove-callout-syntax',
6
+ hooks: {
7
+ 'astro:config:setup': ({ config: astroConfig }) => {
8
+ // Remove starlight callout syntax in favor of our own callout component
9
+ // updateConfig always deeply merges arrays so we need to mutate remarkPlugins directly
10
+ // in order to remove plugins that starlight added
11
+ astroConfig.markdown.remarkPlugins = astroConfig.markdown.remarkPlugins.filter((plugin, i, arr) => {
12
+ if (typeof plugin !== 'function') return true;
13
+ // remove:
14
+ // 1. remarkDirective plugin
15
+ if (plugin.name === 'remarkDirective') return false;
16
+ // 2. directly followed by remarkAsides plugin (inner function named 'attacher')
17
+ if (plugin.name === 'attacher') {
18
+ const prev = arr[i - 1];
19
+ if (typeof prev === 'function' && prev.name === 'remarkDirective') return false;
20
+ }
21
+ // 3. remarkDirectivesRestoration plugin
22
+ if (plugin.name === 'remarkDirectivesRestoration') return false;
23
+ return true;
24
+ });
25
+ },
26
+ },
27
+ } satisfies AstroIntegration;
28
+
29
+ export const disableCalloutSyntaxStarlightPlugin = {
30
+ name: 'stl-starlight-remove-callout-syntax',
31
+ hooks: {
32
+ 'config:setup': ({ addIntegration }) => {
33
+ addIntegration(disableCalloutSyntaxAstroIntegration);
34
+ },
35
+ },
36
+ } satisfies StarlightPlugin;