Skip to content

Commit

Permalink
chore(memo): update dep
Browse files Browse the repository at this point in the history
  • Loading branch information
yorunning committed Nov 13, 2023
1 parent b1d372d commit 68349c5
Show file tree
Hide file tree
Showing 6 changed files with 3,258 additions and 5,387 deletions.
10 changes: 5 additions & 5 deletions memo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"update-package": "pnpm dlx vp-update"
},
"devDependencies": {
"@vuepress/client": "2.0.0-beta.61",
"vue": "3.2.47",
"vuepress": "2.0.0-beta.61",
"vuepress-plugin-search-pro": "2.0.0-beta.208",
"vuepress-theme-hope": "2.0.0-beta.208"
"@vuepress/client": "2.0.0-beta.68",
"vue": "^3.3.8",
"vuepress": "2.0.0-beta.68",
"vuepress-plugin-search-pro": "2.0.0-beta.250",
"vuepress-theme-hope": "2.0.0-beta.250"
}
}
8,552 changes: 3,198 additions & 5,354 deletions memo/pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion memo/src/.vuepress/navbar.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { navbar } from "vuepress-theme-hope";

export const Navbar = navbar([
export default navbar([
"/",
{
text: "Linux",
Expand Down
2 changes: 1 addition & 1 deletion memo/src/.vuepress/sidebar.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { sidebar } from "vuepress-theme-hope";

export const Sidebar = sidebar({
export default sidebar({
"/": [
"",
{
Expand Down
16 changes: 8 additions & 8 deletions memo/src/.vuepress/styles/index.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// place your custom styles here

.home.project {
.vp-hero-info-wrapper {
width: 100%;
max-width: unset;
padding-right: 0;
padding-left: 0;

.hero-info-wrapper {
max-width: 100%;
.vp-hero-info {
max-width: 100% !important;
position: relative;
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -59,7 +59,7 @@
}
}

.description {
.vp-description {
margin: 1.2rem auto 0;
font-size: 20px;
color: #eee;
Expand All @@ -76,7 +76,7 @@
}
}

.action-button {
.vp-actions {
&.primary {
color: #eee;
}
Expand All @@ -94,7 +94,7 @@
}
}

.theme-hope-content {
display: none;
}
// .theme-hope-content {
// display: none;
// }
}
63 changes: 45 additions & 18 deletions memo/src/.vuepress/theme.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
import { hopeTheme } from "vuepress-theme-hope";
import { Navbar } from "./navbar.js";
import { Sidebar } from "./sidebar.js";
import navbar from "./navbar.js";
import sidebar from "./sidebar.js";

export default hopeTheme({
hostname: "https://memo.yorun.me",

author: {
name: "Yorun",
url: "https://yorun.me",
email: "[email protected]",
},

logo: "/logo.png",
repo: "https://github.com/yorunning/gh-pages/tree/main/memo",

navbar: Navbar,
sidebar: Sidebar,
navbar,
sidebar,

pageInfo: ["Author", "Date", "Word", "ReadingTime"],
editLink: false,
Expand All @@ -35,35 +34,61 @@ export default hopeTheme({
mdEnhance: {
align: true,
attrs: true,
chart: true,

// install chart.js before enabling it
// chart: true,

codetabs: true,
container: true,

// insert component easily
// component: true,

demo: true,
echarts: true,

// install echarts before enabling it
// echarts: true,

figure: true,
flowchart: true,
gfm: true,

// install flowchart.ts before enabling it
// flowchart: true,

// gfm requires mathjax-full to provide tex support
// gfm: true,

imgLazyload: true,
imgSize: true,
include: true,
katex: true,

// install katex before enabling it
// katex: true,

// install mathjax-full before enabling it
// mathjax: true,

mark: true,
mermaid: true,

// install mermaid before enabling it
// mermaid: true,

playground: {
presets: ["ts", "vue"],
},
presentation: {
plugins: ["highlight", "math", "search", "notes", "zoom"],
},

// install reveal.js before enabling it
// revealJs: {
// plugins: ["highlight", "math", "search", "notes", "zoom"],
// },

stylize: [
{
matcher: "Recommanded",
matcher: "Recommended",
replacer: ({ tag }) => {
if (tag === "em")
return {
tag: "Badge",
attrs: { type: "tip" },
content: "Recommanded",
content: "Recommended",
};
},
},
Expand All @@ -72,7 +97,9 @@ export default hopeTheme({
sup: true,
tabs: true,
vPre: true,
vuePlayground: true,

// install @vue/repl before enabling it
// vuePlayground: true,
},
},
});

0 comments on commit 68349c5

Please sign in to comment.