Skip to content

Commit

Permalink
feat: upgrade, support github card
Browse files Browse the repository at this point in the history
  • Loading branch information
cirry committed Oct 31, 2024
1 parent 01a87f7 commit 4de7852
Show file tree
Hide file tree
Showing 6 changed files with 490 additions and 252 deletions.
3 changes: 2 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {resetRemark} from "./src/remarkPlugin/reset-remark.js";
import remarkDirective from "remark-directive";
import {remarkAsides} from './src/remarkPlugin/remark-asides.js'
import {remarkCollapse} from "./src/remarkPlugin/remark-collapse.js";
import {remarkGithubCard} from './src/remarkPlugin/remark-github-card.js'

import expressiveCode from "astro-expressive-code";
import {pluginLineNumbers} from '@expressive-code/plugin-line-numbers'
Expand Down Expand Up @@ -40,7 +41,7 @@ export default defineConfig({
themeCssSelector: (theme) => `[data-theme="${theme.type}"]`
}), mdx()],
markdown: {
remarkPlugins: [remarkModifiedTime, resetRemark, remarkDirective, remarkAsides({}),remarkCollapse({})],
remarkPlugins: [remarkModifiedTime, resetRemark, remarkDirective, remarkAsides({}),remarkCollapse({}),remarkGithubCard()],
rehypePlugins: [customRehypeLazyLoadImage],
}
});
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "astro-blog",
"type": "module",
"version": "0.0.4",
"version": "0.0.5",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
Expand All @@ -10,7 +10,7 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^3.1.8",
"@astrojs/mdx": "^3.1.9",
"@astrojs/rss": "^4.0.9",
"@astrojs/sitemap": "^3.2.1",
"@astrojs/solid-js": "^4.4.2",
Expand All @@ -19,7 +19,7 @@
"@expressive-code/plugin-line-numbers": "^0.33.5",
"@fancyapps/ui": "^5.0.35",
"@waline/client": "^3.1.3",
"astro": "^4.16.5",
"astro": "^4.16.8",
"astro-expressive-code": "^0.33.5",
"child_process": "^1.0.2",
"dayjs": "^1.11.10",
Expand All @@ -28,7 +28,7 @@
"mdast-util-to-string": "^4.0.0",
"reading-time": "^1.5.0",
"remark-directive": "^3.0.0",
"remixicon": "^4.2.0",
"remixicon": "^4.5.0",
"solid-js": "^1.8.15",
"tailwindcss": "^3.4.1",
"tocbot": "^4.25.0",
Expand Down
Loading

0 comments on commit 4de7852

Please sign in to comment.