Skip to content

Commit

Permalink
Merge pull request #18 from felixhoffmnn/dev
Browse files Browse the repository at this point in the history
Update mermaid and data
  • Loading branch information
felixhoffmnn authored Nov 15, 2023
2 parents 74084b9 + a7e58c0 commit 4de93ac
Show file tree
Hide file tree
Showing 16 changed files with 878 additions and 663 deletions.
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

0 comments on commit 4de93ac

Please sign in to comment.