Skip to content

Commit

Permalink
feat: 2024 update: upgrade VuePress and change to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdrivingduck committed Jun 22, 2024
1 parent 2da080d commit b4f4fb1
Show file tree
Hide file tree
Showing 7 changed files with 3,123 additions and 1,760 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@ Created by : Mr Dk.
### Install dependencies

```bash
yarn
pnpm install
```

### Compiles and hot-reloads for development

```bash
yarn docs:dev
pnpm run docs:dev
```

### Compiles and minifies for production

```bash
yarn docs:build
pnpm run docs:build
```

## License

Copyright © 2018-2023, Jingtang Zhang. ([MIT License](./LICENSE))
Copyright © 2018-2024, Jingtang Zhang. ([MIT License](./LICENSE))
11 changes: 5 additions & 6 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
import { defineUserConfig } from "@vuepress/cli";
import { docsearchPlugin } from "@vuepress/plugin-docsearch";
import { defineUserConfig } from "vuepress";
import { defaultTheme } from "@vuepress/theme-default";
import { docsearchPlugin } from "@vuepress/plugin-docsearch";
import { navbarEn, sidebarEn } from "./configs";
import { viteBundler } from "@vuepress/bundler-vite";

export default defineUserConfig({
lang: "zh-CN",

base: "/blog/",

head: [["link", { rel: "icon", href: "/blog/images/favicon.jpg" }]],
bundler: viteBundler(),

locales: {
"/": {
lang: "en",
lang: "en-US",
title: "Mr Dk.'s Blog",
description: "A Tiffany-twisted perfectionist. 🍬",
},
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ actions:
link: /notes/README.md
type: secondary
footerHtml: true
footer: MIT Licensed | Copyright © Jingtang Zhang, 2022-2023 <br><br> <a href='https://beian.miit.gov.cn'>浙 ICP 备 20008590 号</a>
footer: MIT Licensed | Copyright © Jingtang Zhang, 2022-2024
---
2 changes: 1 addition & 1 deletion docs/about/blog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

## Version

🛠️ Build version: 1.2023.10
🛠️ Build version: 1.2024.06

## Branch Status

Expand Down
14 changes: 10 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "duckling-blog",
"version": "1.2023.10",
"version": "1.2024.06",
"description": "Blog of Mr Dk.",
"scripts": {
"docs:dev": "vuepress dev docs",
Expand All @@ -17,8 +17,14 @@
},
"homepage": "https://github.com/mrdrivingduck/blog#readme",
"devDependencies": {
"@vuepress/plugin-docsearch": "2.0.0-beta.62",
"prettier": "^2.8.8",
"vuepress": "2.0.0-beta.62"
"@vuepress/bundler-vite": "^2.0.0-rc.9",
"@vuepress/plugin-docsearch": "^2.0.0-rc.9",
"@vuepress/plugin-register-components": "^2.0.0-rc.9",
"@vuepress/theme-default": "^2.0.0-rc.9",
"katex": "^0.16.10",
"prettier": "3.2.5",
"vue": "^3.4.0",
"vuepress": "^2.0.0-rc.9",
"vuepress-plugin-md-enhance": "^2.0.0-rc.33"
}
}
Loading

0 comments on commit b4f4fb1

Please sign in to comment.