Skip to content

Commit

Permalink
add: new posts
Browse files Browse the repository at this point in the history
  • Loading branch information
Parsifa1 committed Sep 18, 2024
1 parent 1c829f5 commit 116ec8a
Show file tree
Hide file tree
Showing 13 changed files with 282 additions and 91 deletions.
34 changes: 0 additions & 34 deletions .vscode/astro-paper.code-snippets

This file was deleted.

4 changes: 0 additions & 4 deletions .vscode/extensions.json

This file was deleted.

11 changes: 0 additions & 11 deletions .vscode/launch.json

This file was deleted.

19 changes: 8 additions & 11 deletions astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import react from "@astrojs/react";
import remarkToc from "remark-toc";
import remarkCollapse from "remark-collapse";
import * as remarkToc from "remark-toc";
import remarkMath from "remark-math";
import rehypeKatex from "rehype-katex";
// import remarkCollapse from "remark-collapse";
import { typst } from "astro-typst";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import { SITE } from "./src/config";

import icon from "astro-icon";

// https://astro.build/config
export default defineConfig({
site: SITE.website,
integrations: [
Expand All @@ -27,14 +27,11 @@ export default defineConfig({
],
markdown: {
remarkPlugins: [
remarkToc,
[
remarkCollapse,
{
test: "Table of contents",
},
],
remarkMath,
[remarkToc as unknown as string, { heading: "目录" }],
],

rehypePlugins: [rehypeKatex],
shikiConfig: {
theme: "one-dark-pro",
wrap: true,
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
"github-slugger": "^2.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"rehype-katex": "^7.0.1",
"remark-collapse": "^0.1.2",
"remark-math": "^6.0.0",
"remark-toc": "^9.0.0",
"satori": "^0.10.11",
"tailwindcss": "^3.4.1",
Expand Down
97 changes: 97 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions src/content/blog/a_dp_question.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
---
title: "一道简单dp问题一些对dp(动态规划)的思考"
title: 一道简单dp问题一些对dp(动态规划)的思考
pubDatetime: 2023-12-31T21:00:00Z
description: "我一直不擅长dp😭"
author: "Parsifal"
description: 我一直不擅长dp😭
author: Parsifal
draft: true
tags: ["computer"]
tags:
- computer
---

## 未完待续
Loading

0 comments on commit 116ec8a

Please sign in to comment.