Compare commits
3
Commits
d36a220a93
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2cf117f92b | ||
|
|
8909906898 | ||
|
|
3c237b8fa6 |
+13
-13
@@ -9,30 +9,30 @@ jobs:
|
|||||||
name: Build and Deploy
|
name: Build and Deploy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
# services:
|
services:
|
||||||
# mermaid:
|
mermaid:
|
||||||
# image: yuzutech/kroki-mermaid
|
image: yuzutech/kroki-mermaid
|
||||||
# kroki:
|
kroki:
|
||||||
# image: yuzutech/kroki
|
image: yuzutech/kroki
|
||||||
# env:
|
env:
|
||||||
# KROKI_MERMAID_HOST: mermaid
|
KROKI_MERMAID_HOST: mermaid
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v7
|
||||||
name: Checkout code
|
name: Checkout code
|
||||||
|
|
||||||
- name: Setup node and npm
|
- name: Setup node and npm
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v7
|
||||||
with:
|
with:
|
||||||
node-version: lts/*
|
node-version: 24
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: npm ci
|
||||||
|
|
||||||
- name: Check and build
|
- name: Check and build
|
||||||
run: npm run build
|
run: npm run build
|
||||||
# env:
|
env:
|
||||||
# KROKI_SERVER: "http://kroki:8000"
|
KROKI_SERVER: "http://kroki:8000"
|
||||||
|
|
||||||
- name: Copy files via ssh
|
- name: Copy files via ssh
|
||||||
uses: appleboy/scp-action@v1
|
uses: appleboy/scp-action@v1
|
||||||
|
|||||||
+11
-5
@@ -1,4 +1,5 @@
|
|||||||
import { defineConfig, fontProviders } from 'astro/config';
|
import { defineConfig, fontProviders } from 'astro/config';
|
||||||
|
import { unified } from '@astrojs/markdown-remark';
|
||||||
import icon from 'astro-icon';
|
import icon from 'astro-icon';
|
||||||
import mdx from '@astrojs/mdx';
|
import mdx from '@astrojs/mdx';
|
||||||
//import { remarkModifiedTime } from './src/remark-modified-time.mjs';
|
//import { remarkModifiedTime } from './src/remark-modified-time.mjs';
|
||||||
@@ -17,17 +18,22 @@ export default defineConfig({
|
|||||||
}],
|
}],
|
||||||
integrations: [icon(), mdx()],
|
integrations: [icon(), mdx()],
|
||||||
markdown: {
|
markdown: {
|
||||||
|
processor: unified({
|
||||||
remarkPlugins: [
|
remarkPlugins: [
|
||||||
// remarkModifiedTime,
|
// remarkModifiedTime,
|
||||||
remarkMath, [
|
remarkMath,
|
||||||
remarkKroki, {
|
[remarkKroki, {
|
||||||
alias: ["mermaid", "tikz"],
|
alias: ["mermaid", "tikz"],
|
||||||
server: process.env.KROKI_SERVER || "https://kroki.io",
|
server: process.env.KROKI_SERVER || "https://kroki.io",
|
||||||
target: "mdx3",
|
target: "mdx3",
|
||||||
output: "inline-svg"
|
output: "inline-svg"
|
||||||
}
|
}]
|
||||||
]],
|
],
|
||||||
rehypePlugins: [rehypeMathjax, [rehypeCallouts, { theme: "obsidian" }]],
|
rehypePlugins: [
|
||||||
|
rehypeMathjax,
|
||||||
|
[rehypeCallouts, { theme: "obsidian" }]
|
||||||
|
],
|
||||||
|
}),
|
||||||
shikiConfig: {
|
shikiConfig: {
|
||||||
theme: "one-dark-pro",
|
theme: "one-dark-pro",
|
||||||
},
|
},
|
||||||
|
|||||||
Generated
+2567
-818
File diff suppressed because it is too large
Load Diff
+3
-2
@@ -12,10 +12,11 @@
|
|||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/mdx": "^5.0.2",
|
"@astrojs/markdown-remark": "^7.2.4",
|
||||||
|
"@astrojs/mdx": "^7.0.8",
|
||||||
"@iconify-json/lucide": "^1.2.98",
|
"@iconify-json/lucide": "^1.2.98",
|
||||||
"@iconify-json/simple-icons": "^1.2.74",
|
"@iconify-json/simple-icons": "^1.2.74",
|
||||||
"astro": "^6.0.8",
|
"astro": "^7.2.9",
|
||||||
"astro-icon": "^1.1.5",
|
"astro-icon": "^1.1.5",
|
||||||
"rehype-callouts": "^2.1.2",
|
"rehype-callouts": "^2.1.2",
|
||||||
"rehype-mathjax": "^7.1.0",
|
"rehype-mathjax": "^7.1.0",
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
import { getCollection, render } from 'astro:content';
|
import { getCollection, render } from 'astro:content';
|
||||||
import BaseLayout from '../../layouts/BaseLayout.astro';
|
import BaseLayout from '../../layouts/BaseLayout.astro';
|
||||||
import "katex/dist/katex.min.css";
|
import "katex/dist/katex.min.css";
|
||||||
import "rehype-callouts/theme/obsidian"
|
// @ts-expect-error Theme is not provided as ".css"
|
||||||
|
import "rehype-callouts/theme/obsidian";
|
||||||
|
|
||||||
export async function getStaticPaths() {
|
export async function getStaticPaths() {
|
||||||
const blogEntries = await getCollection('blog');
|
const blogEntries = await getCollection('blog');
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { getCollection, render } from 'astro:content';
|
|||||||
import BaseLayout from '../../layouts/BaseLayout.astro';
|
import BaseLayout from '../../layouts/BaseLayout.astro';
|
||||||
import BookNavigation from '../../components/BookNavigation.astro';
|
import BookNavigation from '../../components/BookNavigation.astro';
|
||||||
import "katex/dist/katex.min.css";
|
import "katex/dist/katex.min.css";
|
||||||
|
// @ts-expect-error Theme is not provided as ".css"
|
||||||
import "rehype-callouts/theme/obsidian";
|
import "rehype-callouts/theme/obsidian";
|
||||||
import "../../styles/md-custom.css";
|
import "../../styles/md-custom.css";
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ import { getCollection, render } from 'astro:content';
|
|||||||
import { Icon } from "astro-icon/components";
|
import { Icon } from "astro-icon/components";
|
||||||
import BaseLayout from '../../layouts/BaseLayout.astro';
|
import BaseLayout from '../../layouts/BaseLayout.astro';
|
||||||
import "katex/dist/katex.min.css";
|
import "katex/dist/katex.min.css";
|
||||||
import "rehype-callouts/theme/obsidian"
|
// @ts-expect-error Theme is not provided as ".css"
|
||||||
|
import "rehype-callouts/theme/obsidian";
|
||||||
|
|
||||||
export async function getStaticPaths() {
|
export async function getStaticPaths() {
|
||||||
const portfolioEntries = await getCollection('portfolio');
|
const portfolioEntries = await getCollection('portfolio');
|
||||||
|
|||||||
Reference in New Issue
Block a user