Base: switch to remark adapter
This commit is contained in:
parent
d63f5e6e76
commit
bf2a6b69ce
3 changed files with 541 additions and 276 deletions
|
@ -1,14 +1,26 @@
|
||||||
import { defineConfig } from 'astro/config';
|
import { defineConfig } from 'astro/config';
|
||||||
import mdx from '@astrojs/mdx';
|
import mdx from '@astrojs/mdx';
|
||||||
import sitemap from '@astrojs/sitemap';
|
import sitemap from '@astrojs/sitemap';
|
||||||
import cloudflare from "@astrojs/cloudflare";
|
//import cloudflare from "@astrojs/cloudflare";
|
||||||
|
import remarkGfm from "remark-gfm";
|
||||||
|
import remarkRehype from "remark-rehype";
|
||||||
import tailwind from "@astrojs/tailwind";
|
import tailwind from "@astrojs/tailwind";
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
site: 'https://example.com',
|
site: 'https://dev.noway.moe',
|
||||||
|
output: "static",
|
||||||
integrations: [mdx(), sitemap(), tailwind()],
|
integrations: [mdx(), sitemap(), tailwind()],
|
||||||
output: "server",
|
|
||||||
adapter: cloudflare()
|
build: {
|
||||||
|
format: "file",
|
||||||
|
inlineStylesheets: "auto",
|
||||||
|
},
|
||||||
|
markdown: {
|
||||||
|
remarkPlugins: [
|
||||||
|
remarkGfm,
|
||||||
|
[remarkRehype, { clobberPrefix: "" }],
|
||||||
|
],
|
||||||
|
gfm: true,
|
||||||
|
}
|
||||||
});
|
});
|
789
package-lock.json
generated
789
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -12,12 +12,14 @@
|
||||||
"pages:deploy": "astro build && wrangler pages deploy ./dist"
|
"pages:deploy": "astro build && wrangler pages deploy ./dist"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/cloudflare": "^8.0.0",
|
|
||||||
"@astrojs/mdx": "^2.0.2",
|
"@astrojs/mdx": "^2.0.2",
|
||||||
"@astrojs/rss": "^4.0.1",
|
"@astrojs/rss": "^4.0.1",
|
||||||
"@astrojs/sitemap": "^3.0.3",
|
"@astrojs/sitemap": "^3.0.3",
|
||||||
"@astrojs/tailwind": "^5.0.4",
|
"@astrojs/tailwind": "^5.0.4",
|
||||||
"astro": "^4.0.7",
|
"astro": "^4.0.7",
|
||||||
|
"remark-gfm": "^4.0.0",
|
||||||
|
"remark-rehype": "^11.0.0",
|
||||||
|
"sharp": "^0.33.1",
|
||||||
"tailwindcss": "^3.4.0"
|
"tailwindcss": "^3.4.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
Loading…
Reference in a new issue