Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
namachan10777 committed Jun 29, 2024
1 parent a90acf3 commit cfe324c
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 78 deletions.
3 changes: 3 additions & 0 deletions packages/web/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.astro
dist
node_modules
1 change: 1 addition & 0 deletions packages/web/.prettierrc.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type {import("prettier").Config} */
export default {
plugins: ["prettier-plugin-astro", "@trivago/prettier-plugin-sort-imports"],
};
15 changes: 1 addition & 14 deletions packages/web/astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import remarkLinkCard from "./src/remark/plugin/link-card";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import icon from "astro-icon";
Expand Down Expand Up @@ -26,13 +25,7 @@ export default defineConfig({
}),
],
markdown: {
remarkPlugins: [
remarkSectionize,
remarkGemoji,
remarkGfm,
remarkMath,
remarkLinkCard,
],
remarkPlugins: [remarkSectionize, remarkGemoji, remarkGfm, remarkMath],
rehypePlugins: [
rehypeKatex,
rehypeSlug,
Expand All @@ -42,12 +35,6 @@ export default defineConfig({
],
],
syntaxHighlight: false,
shikiConfig: {
themes: {
light: "github-light",
dark: "github-dark",
},
},
smartypants: true,
},
vite: {
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/pages/index.webp.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ogArticlePreviewSVG } from "ogp-image";
import type { APIRoute } from "astro";
import { ogArticlePreviewSVG } from "ogp-image";

export const GET: APIRoute = async ({ site }) => {
return await ogArticlePreviewSVG({
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/pages/post/[...slug].webp.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ogArticlePreviewSVG } from "ogp-image";
import type { APIRoute, GetStaticPaths } from "astro";
import { getCollection, getEntry } from "astro:content";
import { ogArticlePreviewSVG } from "ogp-image";

export const getStaticPaths = (async () => {
const collection = await getCollection("post", (post) => post.data.publish);
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/pages/post/index.webp.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ogArticlePreviewSVG } from "ogp-image";
import type { APIRoute } from "astro";
import { ogArticlePreviewSVG } from "ogp-image";

export const GET: APIRoute = async ({ site }) => {
return await ogArticlePreviewSVG({
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/pages/post/tag/[tag].webp.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ogArticlePreviewSVG } from "ogp-image";
import type { APIRoute, GetStaticPaths } from "astro";
import { getCollection } from "astro:content";
import { ogArticlePreviewSVG } from "ogp-image";

export const getStaticPaths = (async () => {
const posts = await getCollection("post", (post) => post.data.publish);
Expand Down
60 changes: 0 additions & 60 deletions packages/web/src/remark/plugin/link-card.ts

This file was deleted.

0 comments on commit cfe324c

Please sign in to comment.