Skip to content

Commit 30cfb54

Browse files
committed
slash 问题
1 parent b1f4665 commit 30cfb54

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

astro.config.mjs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import rehypeKatex from 'rehype-katex';
1010
import remarkBreaks from 'remark-breaks';
1111
import remarkMath from 'remark-math';
1212

13+
14+
1315
import AstroPureIntegration from './packages/pure/index.ts';
1416
// Local integrations
1517
// Local rehype & remark plugins
@@ -18,15 +20,15 @@ import rehypeAutolinkHeadings from './src/plugins/rehype-auto-link-headings.ts';
1820
import { remarkMermaid } from './src/plugins/remark-mermaid';
1921
// Shiki
2022
// import { addCopyButton, addLanguage, addTitle, transformerNotationDiff, transformerNotationHighlight, updateStyle } from './src/plugins/shiki-transformers.ts';
21-
import config from './src/site.config.ts'
23+
import config from './src/site.config.ts';
2224

2325

2426
// https://astro.build/config
2527
export default defineConfig({
2628
// Top-Level Options
2729
site: 'https://8cat.life',
2830
// base: '/docs',
29-
trailingSlash: 'ignore',
31+
trailingSlash: 'always',
3032
build: {
3133
format: 'directory'
3234
},
@@ -122,7 +124,7 @@ export default defineConfig({
122124
}
123125
],
124126
remarkBreaks,
125-
remarkMermaid,
127+
remarkMermaid
126128
// remarkAiNotice
127129
],
128130
rehypePlugins: [
@@ -136,7 +138,7 @@ export default defineConfig({
136138
content: { type: 'text', value: '#' }
137139
}
138140
]
139-
],
141+
]
140142
// https://docs.astro.build/en/guides/syntax-highlighting/
141143
// shikiConfig: {
142144
// themes: {
@@ -165,7 +167,7 @@ export default defineConfig({
165167
// })
166168
],
167169
server: {
168-
host: true,
170+
host: true
169171
// https: {
170172
// key: fs.readFileSync('./localhost+2-key.pem'),
171173
// cert: fs.readFileSync('./localhost+2.pem')

0 commit comments

Comments
 (0)