Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mermaid and data #18

Merged
merged 6 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lighthouse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
node-version: latest
cache: "pnpm"
- name: Install dependencies
run: pnpm install --prod --ignore-scripts
run: pnpm install
- name: Build site
run: pnpm run build
- name: Run Lighthouse CI
Expand Down
4 changes: 2 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import react from "@astrojs/react";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import remarkMermaid from "astro-diagram/remark-mermaid";
import { defineConfig } from "astro/config";
import remarkMath from "remark-math";

// https://astro.build/config
export default defineConfig({
Expand All @@ -12,7 +12,7 @@ export default defineConfig({
theme: "one-dark-pro",
wrap: true,
},
remarkPlugins: [remarkMermaid],
remarkPlugins: [remarkMath],
},
integrations: [tailwind(), sitemap(), react()],
});
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,39 @@
"scripts": {
"prepare": "husky install",
"dev": "astro dev",
"build": "astro check && astro build",
"check": "tsc --noEmit",
"build": "pnpm run mermaid && astro build",
"check": "astro check && tsc --noEmit",
"sync": "astro sync",
"preview": "astro preview",
"astro": "astro",
"mermaid": "find ./src/data/mermaid -name '*.mmd' -exec sh -c 'mmdc -i {} -o ./src/assets/mermaid/$(basename {} .mmd).svg' \\;",
"lint": "eslint ./src",
"lint:fix": "eslint ./src --fix",
"format": "prettier --write . --plugin=prettier-plugin-astro",
"format:check": "prettier --check . --plugin=prettier-plugin-astro"
},
"dependencies": {
"@astrojs/check": "^0.3.1",
"@astrojs/react": "^3.0.4",
"@astrojs/sitemap": "^3.0.3",
"@astrojs/tailwind": "^5.0.2",
"@fontsource/inter": "^5.0.15",
"@fontsource/outfit": "^5.0.8",
"astro": "^3.5.4",
"astro-diagram": "^0.7.0",
"astro-seo": "^0.8.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
"lucide-react": "^0.292.0",
"mermaid": "^9.4.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"remark-math": "^6.0.0",
"sharp": "^0.32.6",
"tailwind-merge": "^2.0.0",
"tailwindcss": "^3.3.5",
"tailwindcss-animate": "^1.0.7"
},
"devDependencies": {
"@mermaid-js/mermaid-cli": "^10.6.1",
"@tailwindcss/typography": "^0.5.10",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
Expand Down
Loading