Skip to content

Commit 06f0f02

Browse files
Merge pull request #35 from WebDevSimplified/upgrade-astro
Upgrade astro
2 parents b334e6b + 3e0e929 commit 06f0f02

File tree

152 files changed

+8248
-7051
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+8248
-7051
lines changed

astro.config.mjs

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,29 @@
66
// You can disable this by removing "@ts-check" and `@type` comments below.
77
import youtubeEmbed from "./src/plugins/youtubeEmbed.mjs"
88
import responsiveImages from "./src/plugins/responsiveImages.mjs"
9-
import codeHighlightPre from "./src/plugins/codeHighlightPre.mjs"
10-
import preact from "@astrojs/preact" // @ts-check
9+
import myRemarkShiki from "./src/plugins/myRemarkShiki.mjs"
1110

1211
import { defineConfig } from "astro/config"
1312
import sitemap from "@astrojs/sitemap"
13+
import mdx from "@astrojs/mdx"
14+
import preact from "@astrojs/preact" // @ts-check
1415

1516
// https://astro.build/config
1617
export default defineConfig(
1718
/** @type {import('astro').AstroUserConfig} */
1819
{
19-
integrations: [preact(), sitemap()],
20+
integrations: [preact(), sitemap(), mdx()],
2021
site: "https://blog.webdevsimplified.com",
2122
markdown: {
22-
// TODO: Maybe use shiki and see if it is better and has line highlighting.
2323
syntaxHighlight: false,
24-
remarkPlugins: [
25-
"remark-gfm",
26-
codeHighlightPre,
27-
[
28-
"remark-prism",
29-
{
30-
plugins: ["prismLineHighlightModified.js"],
31-
},
32-
],
33-
youtubeEmbed,
34-
responsiveImages,
35-
],
24+
// TODO: Add official Shiki integration when line highlighting is supported
25+
remarkPlugins: [myRemarkShiki, youtubeEmbed, responsiveImages],
3626
},
3727
}
3828
)
29+
30+
// TODO: Check to see if my plugins can be replaced with official integrations.
31+
// TODO: Implement experimental assets integration
32+
// TODO: Move over to the content folder
33+
// TODO: Add TS Support
34+
// TODO: Add analytic conversion tracking (for things like newsletter signups)

jsconfig.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
"paths": {
5+
"@layouts/*": ["src/layouts/*"],
6+
"@blogComponents/*": ["src/blogComponents/*"]
7+
}
8+
}
9+
}

0 commit comments

Comments
 (0)