Personal Knowledge Journal built with Astro.
Mục tiêu của project:
- Ghi chú toán học và AI trong một luồng bài viết thống nhất
- Astro 6
- MDX (
@astrojs/mdx) - Tailwind CSS 4 (
@tailwindcss/vite) - Math rendering (
remark-math,rehype-katex)
/Home/postsDanh sách bài viết/posts/[...slug]Chi tiết bài viết/plansDanh mục thẻ/chủ đề đang có kế hoạch nghiên cứu
Schema định nghĩa tại src/content.config.ts với các collection:
posts: bài viết chính (.md/.mdxtrongsrc/content)plannedTopics: thẻ/chủ đề kế hoạch (.jsontrongsrc/content/planned-topics)
Quan trọng:
idbài viết lấy từ tên file trongsrc/content- Trường
refs(nếu có) tham chiếu tớiidbài viết khác - Mỗi file JSON trong
src/content/planned-topicslà một chủ đề kế hoạch độc lập
Ví dụ plannedTopics:
{
"tag": "causal-inference",
"note": "Nghiên cứu DAG, do-calculus và các bẫy suy luận tương quan.",
"status": "planned",
"priority": "high",
"updatedAt": "2026-04-09"
}Giá trị hợp lệ:
status:planned | researching | on-hold | donepriority:high | medium | low
Chi tiết đầy đủ cách viết frontmatter + MDX components:
- Xem
GUIDE.md
.
├── .github/workflows/deploy.yml
├── public/
├── src/
│ ├── components/
│ ├── content/
│ ├── layouts/
│ ├── pages/
│ └── content.config.ts
├── GUIDE.md
├── astro.config.mjs
└── package.json
npm install
npm run dev
npm run build
npm run previewWorkflow đã có sẵn tại:
.github/workflows/deploy.yml
Trigger hiện tại:
- push vào
masterhoặcmain
Checklist deploy:
- Đảm bảo
astro.config.mjsđúng:site:https://<username>.github.iobase:/<repo-name>
- Vào GitHub
Settings -> Pages - Chọn
Source = GitHub Actions - Push code lên
masterhoặcmain - Theo dõi job trong tab
Actions
- Project đã xử lý base path cho GitHub Pages project-site (
/<repo-name>). - Nếu collection rỗng, build vẫn có thể thành công nhưng sẽ có cảnh báo thiếu dữ liệu.