Skip to content

Commit fe5b690

Browse files
lxfu1福晋
andauthored
feat: compiled CSS out of the readable document/example HTML (#22)
Co-authored-by: 福晋 <liufu.lf@antgroup.com>
1 parent 86cf718 commit fe5b690

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

‎src/integration.ts‎

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,22 @@ export function antvSite(input: AntVSiteConfig): AstroIntegration {
6060
updateConfig({
6161
site: config.site.origin,
6262
trailingSlash: "always",
63-
build: { format: "directory", assets: "_assets" },
64-
markdown: { processor: theme.markdownProcessor },
63+
build: {
64+
format: "directory",
65+
assets: "_assets",
66+
// Keep compiled CSS out of the readable document/example HTML.
67+
inlineStylesheets: "never",
68+
},
69+
markdown: {
70+
processor: theme.markdownProcessor,
71+
shikiConfig: {
72+
langAlias: {
73+
// Legacy API docs use `sign` for TypeScript method signatures.
74+
sign: "typescript",
75+
...astroConfig.markdown.shikiConfig?.langAlias,
76+
},
77+
},
78+
},
6579
vite: {
6680
define: {
6781
"import.meta.env.ANTV_SITE_DEVELOPMENT": JSON.stringify(

0 commit comments

Comments
 (0)