🔥 Remove vuepress-related dependencies
parent
4fb8500ae0
commit
1dd3c937c8
|
@ -1,17 +0,0 @@
|
|||
import { defineUserConfig } from "vuepress";
|
||||
import mdPangu from "markdown-it-pangu";
|
||||
import theme from "./theme";
|
||||
|
||||
export default defineUserConfig({
|
||||
lang: "zh-CN",
|
||||
title: "RLE.wiki",
|
||||
description: "一份 RLE 指北",
|
||||
|
||||
base: "/",
|
||||
|
||||
extendsMarkdown: (md) => {
|
||||
md.use(mdPangu);
|
||||
},
|
||||
|
||||
theme,
|
||||
});
|
|
@ -1,5 +0,0 @@
|
|||
declare module 'markdown-it-pangu'{
|
||||
import { PluginSimple } from 'markdown-it'
|
||||
const pangu: PluginSimple
|
||||
export default pangu
|
||||
}
|
|
@ -1,24 +0,0 @@
|
|||
import { navbar } from "vuepress-theme-hope";
|
||||
|
||||
export default navbar([
|
||||
{ text: "大学指南", icon: "creative", link: "/campus/" },
|
||||
{
|
||||
text: "Fashion",
|
||||
icon: "creative",
|
||||
link: "/fashion",
|
||||
},
|
||||
{
|
||||
text: "防护",
|
||||
icon: "creative",
|
||||
link: "/personal-safety",
|
||||
},
|
||||
{
|
||||
text: "贡献指南",
|
||||
icon: "info",
|
||||
children: [
|
||||
"/contributor-guide/campus.md",
|
||||
"/contributor-guide/other.md",
|
||||
"/contributor-guide/CampusTemplate.md",
|
||||
],
|
||||
},
|
||||
]);
|
Binary file not shown.
Before Width: | Height: | Size: 594 KiB |
|
@ -1,8 +0,0 @@
|
|||
import { sidebar } from "vuepress-theme-hope";
|
||||
|
||||
export default sidebar({
|
||||
"/campus/": "structure",
|
||||
"/fashion/": "structure",
|
||||
"/contributor-guide/": "structure",
|
||||
"/personal-safety/": "structure",
|
||||
});
|
|
@ -1,12 +0,0 @@
|
|||
import { SidebarInfo } from "vuepress-theme-hope";
|
||||
|
||||
export const mySidebarTitleSorter = (
|
||||
infoA: SidebarInfo,
|
||||
infoB: SidebarInfo
|
||||
): number => {
|
||||
const infoANFC = infoA.title.normalize('NFC');
|
||||
const infoBNFC = infoB.title.normalize('NFC');
|
||||
return infoANFC.localeCompare(infoBNFC, 'zh', {
|
||||
numeric: true,
|
||||
})
|
||||
};
|
|
@ -1,45 +0,0 @@
|
|||
:root {
|
||||
/* 字体大小 */
|
||||
--waline-font-size: 16px;
|
||||
|
||||
/* 常规颜色 */
|
||||
--waline-white: #fff;
|
||||
--waline-light-grey: #999;
|
||||
--waline-dark-grey: #666;
|
||||
|
||||
/* 主题色 */
|
||||
--waline-theme-color: #3777ee;
|
||||
--waline-active-color: #1c8af1;
|
||||
|
||||
/* 布局颜色 */
|
||||
--waline-color: #444;
|
||||
--waline-bgcolor: #fff;
|
||||
--waline-bgcolor-light: #f8f8f8;
|
||||
--waline-bgcolor-hover: #f0f0f0;
|
||||
--waline-border-color: #ddd;
|
||||
--waline-disable-bgcolor: #f8f8f8;
|
||||
--waline-disable-color: #bbb;
|
||||
--waline-code-bgcolor: #282c34;
|
||||
|
||||
/* 特殊颜色 */
|
||||
--waline-bq-color: #f0f0f0;
|
||||
|
||||
/* 头像 */
|
||||
--waline-avatar-size: 3.25rem;
|
||||
--waline-m-avatar-size: calc(var(--waline-avatar-size) * 9 / 13);
|
||||
|
||||
/* 徽章 */
|
||||
--waline-badge-color: #3498db;
|
||||
--waline-badge-font-size: 0.775em;
|
||||
|
||||
/* 信息 */
|
||||
--waline-info-bgcolor: #f8f8f8;
|
||||
--waline-info-color: #999;
|
||||
--waline-info-font-size: 0.625em;
|
||||
|
||||
/* 渲染选择 */
|
||||
--waline-border: 1px solid var(--waline-border-color);
|
||||
--waline-avatar-radius: 50%;
|
||||
--waline-box-shadow: none;
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
$theme-color: #2196f3;
|
|
@ -1,54 +0,0 @@
|
|||
import { hopeTheme } from "vuepress-theme-hope";
|
||||
import navbar from "./navbar";
|
||||
import sidebar from "./sidebar";
|
||||
import { mySidebarTitleSorter } from "./sidebarSorter";
|
||||
|
||||
export default hopeTheme({
|
||||
hostname: "https://rle.wiki/",
|
||||
|
||||
author: {
|
||||
name: "Project Trans",
|
||||
url: "https://github.com/project-trans",
|
||||
},
|
||||
|
||||
iconAssets: "iconfont",
|
||||
|
||||
repo: "project-trans/RLE-wiki",
|
||||
|
||||
docsDir: "docs",
|
||||
|
||||
navbar: navbar,
|
||||
|
||||
sidebar: sidebar,
|
||||
|
||||
sidebarSorter: mySidebarTitleSorter,
|
||||
|
||||
breadcrumb: false,
|
||||
|
||||
displayFooter: true,
|
||||
|
||||
contributors: false,
|
||||
|
||||
pageInfo: ["Author", "Date", "Word", "ReadingTime", "PageView"],
|
||||
|
||||
plugins: {
|
||||
feed: {
|
||||
rss: true,
|
||||
},
|
||||
comment: false,
|
||||
mdEnhance: {
|
||||
container: true,
|
||||
tabs: true,
|
||||
sub: true,
|
||||
sup: true,
|
||||
align: true,
|
||||
attrs: true,
|
||||
footnote: true,
|
||||
mark: true,
|
||||
tasklist: true,
|
||||
imgMark: true,
|
||||
imgSize: true,
|
||||
katex: true,
|
||||
},
|
||||
},
|
||||
});
|
|
@ -34,12 +34,11 @@
|
|||
"vitepress": "1.0.0-rc.42",
|
||||
"vitepress-sidebar": "^1.18.6",
|
||||
"vue": "^3.4.19",
|
||||
"vuepress": "2.0.0-rc.0",
|
||||
"vuepress-theme-hope": "2.0.0-rc.0",
|
||||
"wrangler": "^3.25.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"katex": "^0.16.9",
|
||||
"vuepress-plugin-md-enhance": "2.0.0-rc.0"
|
||||
"pnpm": {
|
||||
"overrides": {
|
||||
"hasown": "npm:@nolyfill/hasown@latest"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
4541
pnpm-lock.yaml
4541
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue