Skip to content

Commit

Permalink
upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
undefined-moe committed Jan 30, 2024
1 parent 1941527 commit 5848b58
Show file tree
Hide file tree
Showing 4 changed files with 3,340 additions and 4,461 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
- name: Install
run: yarn install
run: yarn install --ignore-engines
- name: Build
run: yarn build && echo "hydro.js.org" >./.vuepress/dist/CNAME
- name: Deploy
Expand Down
44 changes: 22 additions & 22 deletions .vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,40 +1,21 @@
import { defineUserConfig } from 'vuepress';
import { hopeTheme } from 'vuepress-theme-hope';
import { shikiPlugin } from "@vuepress/plugin-shiki";
import { searchProPlugin } from "vuepress-plugin-search-pro";
import { webpackBundler } from '@vuepress/bundler-webpack';

export default defineUserConfig({
title: 'Hydro',
head: [
['link', { rel: 'icon', href: `/hydro.png` }],
['link', { rel: 'stylesheet', href: '/twoslash.css' }],
['meta', { name: 'theme-color', content: '#ffeded' }],
['script', { async: true, src: 'https://www.googletagmanager.com/gtag/js?id=G-CX4XJ0H0TE' }],
['script', {}, "window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}gtag('js',new Date());gtag('config','G-CX4XJ0H0TE');"]
['script', {}, `var _paq=window._paq=[['trackPageView'],['enableLinkTracking']];(function(){var u="//analytics.hydro.ac/";_paq.push(['setTrackerUrl',u+'mt']);_paq.push(['setSiteId','2']);var d=document,g=d.createElement('script'),s=d.getElementsByTagName('script')[0];g.async=true;g.src=u+'m.js';s.parentNode.insertBefore(g,s);})();`]
],
bundler: webpackBundler(),
plugins: [
shikiPlugin({
theme: "nord",
}),
searchProPlugin({
indexContent: true,
customFields: [],
locales: {
'/': {
cancel: "取消",
placeholder: "搜索",
search: "搜索",
searching: "搜索中",
select: "选择",
navigate: "切换",
exit: "关闭",
history: "搜索历史",
emptyHistory: "无搜索历史",
emptyResult: "没有找到结果",
loading: "正在加载搜索索引...",
},
}
}),
],
theme: hopeTheme({
logo: '/favicon.ico',
Expand All @@ -58,6 +39,25 @@ export default defineUserConfig({
footnote: true,
katex: true,
},
searchPro: {
indexContent: true,
customFields: [],
locales: {
'/': {
cancel: "取消",
placeholder: "搜索",
search: "搜索",
searching: "搜索中",
select: "选择",
navigate: "切换",
exit: "关闭",
history: "搜索历史",
emptyHistory: "无搜索历史",
emptyResult: "没有找到结果",
loading: "正在加载搜索索引...",
},
}
}
},
hostname: 'https://hydro.js.org',
repo: 'hydro-dev/Hydro',
Expand Down
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
"main": "index.js",
"license": "MIT",
"devDependencies": {
"@vuepress/client": "^2.0.0-beta.62",
"@vuepress/plugin-shiki": "^2.0.0-beta.62",
"@vuepress/bundler-webpack": "^2.0.0-rc.2",
"@vuepress/plugin-shiki": "^2.0.0-rc.0",
"katex": "^0.16.9",
"sass-loader": "^14.0.0",
"vue": "^3.3.4",
"vuepress": "^2.0.0-beta.62",
"vuepress-plugin-search-pro": "^2.0.0-beta.211",
"vuepress-theme-hope": "^2.0.0-beta.211"
"vuepress": "^2.0.0-rc.2",
"vuepress-plugin-search-pro": "^2.0.0-rc.16",
"vuepress-theme-hope": "^2.0.0-rc.16"
},
"scripts": {
"dev": "vuepress dev .",
Expand Down
Loading

0 comments on commit 5848b58

Please sign in to comment.