Skip to content

Commit

Permalink
添加了新的分类,修复一些图片bug
Browse files Browse the repository at this point in the history
  • Loading branch information
RenderTool committed Nov 2, 2023
1 parent 99ac6f1 commit 65b581f
Show file tree
Hide file tree
Showing 38 changed files with 2,485 additions and 1,041 deletions.
164 changes: 164 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"@vuepress/client": "2.0.0-beta.67",
"vue": "^3.3.4",
"vuepress": "2.0.0-beta.67",
"vuepress-plugin-search-pro": "^2.0.0-beta.244",
"vuepress-theme-hope": "2.0.0-beta.243"
}
}
9 changes: 8 additions & 1 deletion src/.vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
import { defineUserConfig } from "vuepress";
import { searchProPlugin } from "vuepress-plugin-search-pro";
import theme from "./theme.js";

export default defineUserConfig({
base: "/RenderDoc/",

lang: "zh-CN",
title: "RenderDoc",
description: "斯高和的文档",
plugins: [
searchProPlugin({
// 索引全部内容
indexContent: true,

}),
],
theme,

// Enable it with pwa
// shouldPrefetch: false,
});
24 changes: 22 additions & 2 deletions src/.vuepress/navbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,26 @@ import { navbar } from "vuepress-theme-hope";

export default navbar([
"/",
"/CPP/",
"/Unreal/",
{
text: "开发语言",
icon: "signs-post",
prefix: "/language/",
children: ["markdown/"],
},
{
text: '开发工具',
icon: "screwdriver-wrench",
prefix: "/tools/",
children:["git/","github/","vscode/"],
},
// {
// text: '开发工具',
// icon: "screwdriver-wrench",
// prefix: "/tools/",
// children: [
// {text: 'Git', link: 'git/'},
// {text: 'Github', link: 'github/'},
// {text: 'VSCode', link: 'vscode/'},
// ]
// },
]);
87 changes: 69 additions & 18 deletions src/.vuepress/sidebar.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,72 @@
import { sidebar } from "vuepress-theme-hope";
import {sidebar} from "vuepress-theme-hope";

export default sidebar({
"/": [
{
text: "C++",
icon: "laptop-code",
prefix: "CPP/",
link: "CPP/",
children: "structure",
},
],
"/Unreal/": [
{
text: "UnReal",
prefix:"",
link: "",
children: "structure",
}
],
"/": [
{
text: "目录",
//icon: "laptop-code",
prefix: "Fontend/",
link: "Fontend/",
children: "structure",
},
],
"/language/": [
{
text: "目录",
prefix: "",
link: "",
children: "structure",
}
],
"/tools/": [
{
text: "目录",
prefix: "",
link: "",
children: "structure",
}
],
// "/tools/git/": [
// {
// "text": "GIT",
// "children": [
// "README.md",
// "commit-message.md",
// "gitignore.md",
// "repo-tool.md",
// "submodule.md"
// ]
// }
// ],
// "/tools/github/": [
// {
// "text": "GITHUB",
// "children": [
// "README.md",
// "dns-resolve-github-pages.md",
// "download-huge-project-from-github.md",
// "how-to-deploy-private-gitlab.md",
// "switch-multiple-github-accounts.md",
// "sync-a-fork.md"
// ]
// }
// ],
// "/tools/vscode/": [
// {
// "text": "VSCODE",
// "children": [
// "README.md",
// "errors.md",
// "fix-todo-highlight-links.md",
// "format-with-eslint.md",
// "identify-alias.md",
// "set-the-font.md",
// "settings-sync.md",
// "share-code-snippet.md",
// "vetur.md",
// "vscode-markdown-copilot-tab-do-not-work.md"
// ]
// }
// ],

});
18 changes: 4 additions & 14 deletions src/.vuepress/styles/palette.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,9 @@ html[data-theme=dark] {
flex-direction: column;
align-items: center;
}
//strong {
// font-weight: bold !important;
// color: #d35400 !important;
//}
.custom-icon {
width: 100px;
height: 100px;
@media (max-width: 959px) {
.search-pro-box {
margin-top: 5rem;
}
}

.custom-icon::before {
content: '';
display: block;
width: 100%;
height: 100%;
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="var(--theme-color)" /></svg>') no-repeat center center;
}
Loading

0 comments on commit 65b581f

Please sign in to comment.