init commit
This commit is contained in:
commit
145d8bd596
10
.gitattributes
vendored
Normal file
10
.gitattributes
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
* text eol=lf
|
||||||
|
*.txt text eol=crlf
|
||||||
|
|
||||||
|
*.png binary
|
||||||
|
*.jpg binary
|
||||||
|
*.jpeg binary
|
||||||
|
*.ico binary
|
||||||
|
*.tff binary
|
||||||
|
*.woff binary
|
||||||
|
*.woff2 binary
|
9
.gitignore
vendored
Normal file
9
.gitignore
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
**/node_modules
|
||||||
|
|
||||||
|
docs/.vuepress/.cache
|
||||||
|
docs/.vuepress/.temp
|
||||||
|
docs/.vuepress/dist
|
||||||
|
|
||||||
|
.DS_Store
|
||||||
|
*.log
|
||||||
|
/.idea/
|
27
README.md
Normal file
27
README.md
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
# p-guide-docs
|
||||||
|
|
||||||
|
The Site is generated using [vuepress](https://vuepress.vuejs.org/) and [vuepress-theme-plume](https://github.com/pengzhanbo/vuepress-theme-plume)
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
```sh
|
||||||
|
pnpm i
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# start dev server
|
||||||
|
pnpm docs:dev
|
||||||
|
# build for production
|
||||||
|
pnpm docs:build
|
||||||
|
# preview production build in local
|
||||||
|
pnpm docs:preview
|
||||||
|
# update vuepress and theme
|
||||||
|
pnpm vp-update
|
||||||
|
```
|
||||||
|
|
||||||
|
## Documents
|
||||||
|
|
||||||
|
- [vuepress](https://vuepress.vuejs.org/)
|
||||||
|
- [vuepress-theme-plume](https://theme-plume.vuejs.press/)
|
27
README.zh-CN.md
Normal file
27
README.zh-CN.md
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
# p-guide-docs
|
||||||
|
|
||||||
|
网站使用 [vuepress](https://vuepress.vuejs.org/) 和 [vuepress-theme-plume](https://github.com/pengzhanbo/vuepress-theme-plume) 构建生成。
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
```sh
|
||||||
|
pnpm i
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# 启动开发服务
|
||||||
|
pnpm docs:dev
|
||||||
|
# 构建生产包
|
||||||
|
pnpm docs:build
|
||||||
|
# 本地预览生产服务
|
||||||
|
pnpm docs:preview
|
||||||
|
# 更新 vuepress 和主题
|
||||||
|
pnpm vp-update
|
||||||
|
```
|
||||||
|
|
||||||
|
## 文档
|
||||||
|
|
||||||
|
- [vuepress](https://vuepress.vuejs.org/)
|
||||||
|
- [vuepress-theme-plume](https://theme-plume.vuejs.press/)
|
22
docs/.vuepress/client.ts
Normal file
22
docs/.vuepress/client.ts
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import { defineClientConfig } from 'vuepress/client'
|
||||||
|
// import RepoCard from 'vuepress-theme-plume/features/RepoCard.vue'
|
||||||
|
// import NpmBadge from 'vuepress-theme-plume/features/NpmBadge.vue'
|
||||||
|
// import NpmBadgeGroup from 'vuepress-theme-plume/features/NpmBadgeGroup.vue'
|
||||||
|
// import Swiper from 'vuepress-theme-plume/features/Swiper.vue'
|
||||||
|
|
||||||
|
// import CustomComponent from './theme/components/Custom.vue'
|
||||||
|
|
||||||
|
// import './theme/styles/custom.css'
|
||||||
|
|
||||||
|
export default defineClientConfig({
|
||||||
|
enhance({ app }) {
|
||||||
|
// built-in components
|
||||||
|
// app.component('RepoCard', RepoCard)
|
||||||
|
// app.component('NpmBadge', NpmBadge)
|
||||||
|
// app.component('NpmBadgeGroup', NpmBadgeGroup)
|
||||||
|
// app.component('Swiper', Swiper) // you should install `swiper`
|
||||||
|
|
||||||
|
// your custom components
|
||||||
|
// app.component('CustomComponent', CustomComponent)
|
||||||
|
},
|
||||||
|
})
|
181
docs/.vuepress/config.ts
Normal file
181
docs/.vuepress/config.ts
Normal file
@ -0,0 +1,181 @@
|
|||||||
|
import { viteBundler } from '@vuepress/bundler-vite'
|
||||||
|
import { defineUserConfig } from 'vuepress'
|
||||||
|
import { plumeTheme } from 'vuepress-theme-plume'
|
||||||
|
|
||||||
|
export default defineUserConfig({
|
||||||
|
base: '/',
|
||||||
|
lang: 'zh-CN',
|
||||||
|
title: 'PGuide Docs',
|
||||||
|
description: '项导文档',
|
||||||
|
|
||||||
|
head: [
|
||||||
|
// 配置站点图标
|
||||||
|
['link', { rel: 'icon', type: 'image/png', href: '/logo.svg' }],
|
||||||
|
],
|
||||||
|
|
||||||
|
bundler: viteBundler(),
|
||||||
|
shouldPrefetch: false, // 站点较大,页面数量较多时,不建议启用
|
||||||
|
|
||||||
|
theme: plumeTheme({
|
||||||
|
/* 添加您的部署域名, 有助于 SEO, 生成 sitemap */
|
||||||
|
// hostname: 'https://your_site_url',
|
||||||
|
|
||||||
|
/* 文档仓库配置,用于 editLink */
|
||||||
|
// docsRepo: '',
|
||||||
|
// docsDir: 'docs',
|
||||||
|
// docsBranch: '',
|
||||||
|
|
||||||
|
/* 页内信息 */
|
||||||
|
// editLink: true,
|
||||||
|
// lastUpdated: true,
|
||||||
|
// contributors: true,
|
||||||
|
// changelog: false,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 博客
|
||||||
|
* @see https://theme-plume.vuejs.press/config/basic/#blog
|
||||||
|
*/
|
||||||
|
blog: false, // 禁用博客
|
||||||
|
// blog: {
|
||||||
|
// postList: true, // 是否启用文章列表页
|
||||||
|
// tags: true, // 是否启用标签页
|
||||||
|
// archives: true, // 是否启用归档页
|
||||||
|
// categories: true, // 是否启用分类页
|
||||||
|
// postCover: 'right', // 文章封面位置
|
||||||
|
// pagination: 15, // 每页显示文章数量
|
||||||
|
// },
|
||||||
|
|
||||||
|
/* 博客文章页面链接前缀 */
|
||||||
|
article: '/article/',
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编译缓存,加快编译速度
|
||||||
|
* @see https://theme-plume.vuejs.press/config/basic/#cache
|
||||||
|
*/
|
||||||
|
cache: 'filesystem',
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 为 markdown 文件自动添加 frontmatter 配置
|
||||||
|
* @see https://theme-plume.vuejs.press/config/basic/#autofrontmatter
|
||||||
|
*/
|
||||||
|
// autoFrontmatter: {
|
||||||
|
// permalink: true, // 是否生成永久链接
|
||||||
|
// createTime: true, // 是否生成创建时间
|
||||||
|
// title: true, // 是否生成标题
|
||||||
|
// },
|
||||||
|
|
||||||
|
plugins: {
|
||||||
|
/**
|
||||||
|
* Shiki 代码高亮
|
||||||
|
* @see https://theme-plume.vuejs.press/config/plugins/code-highlight/
|
||||||
|
*/
|
||||||
|
// shiki: {
|
||||||
|
// // 强烈建议预设代码块高亮语言,插件默认加载所有语言会产生不必要的时间开销
|
||||||
|
// languages: ['shell', 'bash', 'typescript', 'javascript'],
|
||||||
|
// twoslash: true, // 启用 twoslash
|
||||||
|
// whitespace: true, // 启用 空格/Tab 高亮
|
||||||
|
// lineNumbers: true, // 启用行号
|
||||||
|
// },
|
||||||
|
|
||||||
|
/* 本地搜索, 默认启用 */
|
||||||
|
// search: true,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Algolia DocSearch
|
||||||
|
* 启用此搜索需要将 本地搜索 search 设置为 false
|
||||||
|
* @see https://theme-plume.vuejs.press/config/plugins/search/#algolia-docsearch
|
||||||
|
*/
|
||||||
|
// docsearch: {
|
||||||
|
// appId: '',
|
||||||
|
// apiKey: '',
|
||||||
|
// indexName: '',
|
||||||
|
// },
|
||||||
|
|
||||||
|
/* 文章字数统计、阅读时间,设置为 false 则禁用 */
|
||||||
|
// readingTime: true,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* markdown enhance
|
||||||
|
* @see https://theme-plume.vuejs.press/config/plugins/markdown-enhance/
|
||||||
|
*/
|
||||||
|
// markdownEnhance: {
|
||||||
|
// chartjs: true,
|
||||||
|
// echarts: true,
|
||||||
|
// mermaid: true,
|
||||||
|
// flowchart: true,
|
||||||
|
// },
|
||||||
|
|
||||||
|
/**
|
||||||
|
* markdown power
|
||||||
|
* @see https://theme-plume.vuejs.press/config/plugin/markdown-power/
|
||||||
|
*/
|
||||||
|
// markdownPower: {
|
||||||
|
// pdf: true, // 启用 PDF 嵌入 @[pdf](/xxx.pdf)
|
||||||
|
// caniuse: true, // 启用 caniuse 语法 @[caniuse](feature_name)
|
||||||
|
// plot: true, // 启用隐秘文本语法 !!xxxx!!
|
||||||
|
// bilibili: true, // 启用嵌入 bilibili视频 语法 @[bilibili](bid)
|
||||||
|
// youtube: true, // 启用嵌入 youtube视频 语法 @[youtube](video_id)
|
||||||
|
// artPlayer: true, // 启用嵌入 artPlayer 本地视频 语法 @[artPlayer](url)
|
||||||
|
// audioReader: true, // 启用嵌入音频朗读功能 语法 @[audioReader](url)
|
||||||
|
// icons: true, // 启用内置图标语法 :[icon-name]:
|
||||||
|
// codepen: true, // 启用嵌入 codepen 语法 @[codepen](user/slash)
|
||||||
|
// replit: true, // 启用嵌入 replit 语法 @[replit](user/repl-name)
|
||||||
|
// codeSandbox: true, // 启用嵌入 codeSandbox 语法 @[codeSandbox](id)
|
||||||
|
// jsfiddle: true, // 启用嵌入 jsfiddle 语法 @[jsfiddle](user/id)
|
||||||
|
// npmTo: true, // 启用 npm-to 容器 ::: npm-to
|
||||||
|
// demo: true, // 启用 demo 容器 ::: demo
|
||||||
|
// repl: { // 启用 代码演示容器
|
||||||
|
// go: true, // ::: go-repl
|
||||||
|
// rust: true, // ::: rust-repl
|
||||||
|
// kotlin: true, // ::: kotlin-repl
|
||||||
|
// },
|
||||||
|
// imageSize: 'local', // 启用 自动填充 图片宽高属性,避免页面抖动
|
||||||
|
// },
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 在 Markdown 文件中导入其他 markdown 文件内容。
|
||||||
|
* @see https://theme-plume.vuejs.press/guide/markdown/include/
|
||||||
|
*/
|
||||||
|
// markdownInclude: true,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Markdown 数学公式
|
||||||
|
* @see https://theme-plume.vuejs.press/config/plugins/markdown-math/
|
||||||
|
*/
|
||||||
|
// markdownMath: {
|
||||||
|
// type: 'katex',
|
||||||
|
// },
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 水印
|
||||||
|
* @see https://theme-plume.vuejs.press/guide/features/watermark/
|
||||||
|
*/
|
||||||
|
// watermark: true,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 评论 comments
|
||||||
|
* @see https://theme-plume.vuejs.press/guide/features/comments/
|
||||||
|
*/
|
||||||
|
// comment: {
|
||||||
|
// provider: '', // "Artalk" | "Giscus" | "Twikoo" | "Waline"
|
||||||
|
// comment: true,
|
||||||
|
// repo: '',
|
||||||
|
// repoId: '',
|
||||||
|
// category: '',
|
||||||
|
// categoryId: '',
|
||||||
|
// mapping: 'pathname',
|
||||||
|
// reactionsEnabled: true,
|
||||||
|
// inputPosition: 'top',
|
||||||
|
// },
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 加密功能
|
||||||
|
* @see https://theme-plume.vuejs.press/guide/features/encryption/
|
||||||
|
*/
|
||||||
|
encrypt: {
|
||||||
|
global: true,
|
||||||
|
admin: ['pguide1024'],
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
})
|
16
docs/.vuepress/navbar.ts
Normal file
16
docs/.vuepress/navbar.ts
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
import { defineNavbarConfig } from 'vuepress-theme-plume'
|
||||||
|
|
||||||
|
export const navbar = defineNavbarConfig([
|
||||||
|
{ text: '首页', link: '/' },
|
||||||
|
{ text: '博客', link: '/blog/' },
|
||||||
|
{ text: '标签', link: '/blog/tags/' },
|
||||||
|
{ text: '归档', link: '/blog/archives/' },
|
||||||
|
{
|
||||||
|
text: '笔记',
|
||||||
|
items: [{ text: '示例', link: '/notes/demo/README.md' }]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: '关于',
|
||||||
|
items: [{text: '关于我', link: '/' }]
|
||||||
|
}
|
||||||
|
])
|
13
docs/.vuepress/notes.ts
Normal file
13
docs/.vuepress/notes.ts
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
import { defineNoteConfig, defineNotesConfig } from 'vuepress-theme-plume'
|
||||||
|
|
||||||
|
const demoNote = defineNoteConfig({
|
||||||
|
dir: 'demo',
|
||||||
|
link: '/demo',
|
||||||
|
sidebar: ['', 'foo', 'bar'],
|
||||||
|
})
|
||||||
|
|
||||||
|
export const notes = defineNotesConfig({
|
||||||
|
dir: 'notes',
|
||||||
|
link: '/',
|
||||||
|
notes: [demoNote],
|
||||||
|
})
|
70
docs/.vuepress/plume.config.ts
Normal file
70
docs/.vuepress/plume.config.ts
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
import { defineThemeConfig } from 'vuepress-theme-plume'
|
||||||
|
import { navbar } from './navbar'
|
||||||
|
import { notes } from './notes'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see https://theme-plume.vuejs.press/config/basic/
|
||||||
|
*/
|
||||||
|
export default defineThemeConfig({
|
||||||
|
logo: '/logo.svg',
|
||||||
|
|
||||||
|
appearance: true, // 配置 深色模式
|
||||||
|
|
||||||
|
social: [
|
||||||
|
{ icon: 'github', link: 'https://github.com/PGuideStudio' },
|
||||||
|
{ icon: 'gitlab', link: 'https://zds.cqmu.edu.cn/pguide-studio' },
|
||||||
|
],
|
||||||
|
navbarSocialInclude: ['github', 'gitlab'], // 允许显示在导航栏的 social 社交链接
|
||||||
|
aside: true, // 页内侧边栏, 默认显示在右侧
|
||||||
|
outline: [2, 3], // 页内大纲, 默认显示 h2, h3
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 文章版权信息
|
||||||
|
* @see https://theme-plume.vuejs.press/guide/features/copyright/
|
||||||
|
*/
|
||||||
|
copyright: true,
|
||||||
|
|
||||||
|
// prevPage: true, // 是否启用上一页链接
|
||||||
|
// nextPage: true, // 是否启用下一页链接
|
||||||
|
// createTime: true, // 是否显示文章创建时间
|
||||||
|
|
||||||
|
/* 站点页脚 */
|
||||||
|
footer: {
|
||||||
|
message: 'PGuide Studio © 2023-2025',
|
||||||
|
copyright: '',
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see https://theme-plume.vuejs.press/config/basic/#profile
|
||||||
|
*/
|
||||||
|
profile: {
|
||||||
|
avatar: 'https://theme-plume.vuejs.press/plume.png',
|
||||||
|
name: 'PGuide Docs',
|
||||||
|
description: '项导文档',
|
||||||
|
// circle: true,
|
||||||
|
// location: '',
|
||||||
|
// organization: '',
|
||||||
|
},
|
||||||
|
|
||||||
|
navbar,
|
||||||
|
notes,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 公告板
|
||||||
|
* @see https://theme-plume.vuejs.press/guide/features/bulletin/
|
||||||
|
*/
|
||||||
|
// bulletin: {
|
||||||
|
// layout: 'top-right',
|
||||||
|
// contentType: 'markdown',
|
||||||
|
// title: '公告板标题',
|
||||||
|
// content: '公告板内容',
|
||||||
|
// },
|
||||||
|
|
||||||
|
/* 过渡动画 @see https://theme-plume.vuejs.press/config/basic/#transition */
|
||||||
|
// transition: {
|
||||||
|
// page: true, // 启用 页面间跳转过渡动画
|
||||||
|
// postList: true, // 启用 博客文章列表过渡动画
|
||||||
|
// appearance: 'fade', // 启用 深色模式切换过渡动画, 或配置过渡动画类型
|
||||||
|
// },
|
||||||
|
|
||||||
|
})
|
1
docs/.vuepress/public/logo.svg
Normal file
1
docs/.vuepress/public/logo.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1739495247889" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4442" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M514.29 257.53c137.98 1.23 249.48 113.46 249.48 251.75 0 44.76-11.69 86.81-32.16 123.22-41.8 74.32-120.23 125.29-210.8 128.39-1.01 0.04-2.01 0.06-3.02 0.07-0.66 0.01-1.32 0.02-1.96 0.04-1.27 0.02-2.55 0.04-3.82 0.04-53 0-96.35-43.35-96.35-96.35 0-24.63 9.36-47.18 24.7-64.25 1.17-1.29 2.36-2.56 3.59-3.79 17.47-17.47 41.56-28.31 68.06-28.31 85.82 0 155.41-69.57 155.41-155.41-0.01-85.07-68.37-154.17-153.13-155.4z" fill="#4770DC" p-id="4443"></path><path d="M608.35 161.16c139.04 0 251.76 112.72 251.76 251.76 0 1.27-0.01 2.55-0.04 3.82-0.01 0.65-0.02 1.31-0.04 1.96-0.01 1.01-0.04 2.01-0.07 3.02-4.58 185.27-153.9 334.58-339.16 339.17 90.57-3.11 169-54.07 210.8-128.39 20.48-36.42 32.16-78.46 32.16-123.22 0-138.29-111.5-250.52-249.48-251.75-0.77-0.01-1.53-0.01-2.29-0.01-1.34 0-2.67 0.01-4.02 0.05-82.64 2.1-149.26 68.72-151.34 151.34 0.66-43.27 12.25-83.88 32.13-119.22 43.14-76.71 125.32-128.53 219.59-128.53z" fill="#6F94F4" p-id="4444"></path><path d="M512 64.8c192.26 0 348.12 155.86 348.12 348.12 0-139.05-112.73-251.76-251.76-251.76-94.28 0-176.46 51.82-219.59 128.53-19.88 35.33-31.47 75.95-32.13 119.22-0.04 1.34-0.05 2.67-0.05 4.02v449.92c0 53-43.37 96.35-96.35 96.35-53 0-96.35-43.35-96.35-96.35V412.92c0-136.41 78.45-254.49 192.71-311.59C403.36 77.96 456.15 64.8 512 64.8z" fill="#97B4FF" p-id="4445"></path></svg>
|
After Width: | Height: | Size: 1.6 KiB |
6
docs/.vuepress/theme/shim.d.ts
vendored
Normal file
6
docs/.vuepress/theme/shim.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
declare module '*.vue' {
|
||||||
|
import type { ComponentOptions } from 'vue'
|
||||||
|
|
||||||
|
const comp: ComponentOptions
|
||||||
|
export default comp
|
||||||
|
}
|
50
docs/.vuepress/theme/styles/custom.css
Normal file
50
docs/.vuepress/theme/styles/custom.css
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
:root {
|
||||||
|
/** 主题颜色 */
|
||||||
|
|
||||||
|
/*
|
||||||
|
--vp-c-brand-1: #5086a1;
|
||||||
|
--vp-c-brand-2: #6aa1b7;
|
||||||
|
--vp-c-brand-3: #8cccd5;
|
||||||
|
--vp-c-brand-soft: rgba(131, 208, 218, 0.314);
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** 背景颜色 */
|
||||||
|
|
||||||
|
/*
|
||||||
|
--vp-c-bg: #fff;
|
||||||
|
--vp-c-bg-alt: #f6f6f7;
|
||||||
|
--vp-c-bg-elv: #fff;
|
||||||
|
--vp-c-bg-soft: #f6f6f7;
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** 文本颜色 */
|
||||||
|
|
||||||
|
/*
|
||||||
|
--vp-c-text-1: rgba(60, 60, 67);
|
||||||
|
--vp-c-text-2: rgba(60, 60, 67, 0.78);
|
||||||
|
--vp-c-text-3: rgba(60, 60, 67, 0.56);
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 深色模式 */
|
||||||
|
[data-theme="dark"] {
|
||||||
|
/*
|
||||||
|
--vp-c-brand-1: #8cccd5;
|
||||||
|
--vp-c-brand-2: #6aa1b7;
|
||||||
|
--vp-c-brand-3: #5086a1;
|
||||||
|
--vp-c-brand-soft: rgba(131, 208, 218, 0.314);
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
--vp-c-bg: #1b1b1f;
|
||||||
|
--vp-c-bg-alt: #161618;
|
||||||
|
--vp-c-bg-elv: #202127;
|
||||||
|
--vp-c-bg-soft: #202127;
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
--vp-c-text-1: rgba(255, 255, 245, 0.86);
|
||||||
|
--vp-c-text-2: rgba(235, 235, 245, 0.6);
|
||||||
|
--vp-c-text-3: rgba(235, 235, 245, 0.38);
|
||||||
|
*/
|
||||||
|
}
|
22
docs/README.md
Normal file
22
docs/README.md
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
pageLayout: home
|
||||||
|
externalLinkIcon: false
|
||||||
|
config:
|
||||||
|
-
|
||||||
|
type: hero
|
||||||
|
full: true
|
||||||
|
background: tint-plate
|
||||||
|
hero:
|
||||||
|
name: PGuide Docs
|
||||||
|
tagline: 项导文档站欢迎您
|
||||||
|
text: Start from here, build projects as our dreams.
|
||||||
|
actions:
|
||||||
|
-
|
||||||
|
theme: brand
|
||||||
|
text: 博客
|
||||||
|
link: /blog/
|
||||||
|
-
|
||||||
|
theme: alt
|
||||||
|
text: 语雀 →
|
||||||
|
link: https://www.yuque.com/pguide/public
|
||||||
|
---
|
8
docs/notes/demo/README.md
Normal file
8
docs/notes/demo/README.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
title: Demo
|
||||||
|
createTime: 2025/02/14 08:56:39
|
||||||
|
permalink: /demo/
|
||||||
|
---
|
||||||
|
|
||||||
|
- [bar](./bar.md)
|
||||||
|
- [foo](./foo.md)
|
7
docs/notes/demo/bar.md
Normal file
7
docs/notes/demo/bar.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
title: bar
|
||||||
|
createTime: 2025/02/14 08:56:39
|
||||||
|
permalink: /demo/dli40z8a/
|
||||||
|
---
|
||||||
|
|
||||||
|
[foo](./foo.md)
|
7
docs/notes/demo/foo.md
Normal file
7
docs/notes/demo/foo.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
title: foo
|
||||||
|
createTime: 2025/02/14 08:56:39
|
||||||
|
permalink: /demo/7rgbnyqi/
|
||||||
|
---
|
||||||
|
|
||||||
|
[bar](./bar.md)
|
8
docs/notes/public-service/1. GPT API公共调用及部署应用集合.md
Normal file
8
docs/notes/public-service/1. GPT API公共调用及部署应用集合.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
title: 1. GPT API公共调用及部署应用集合
|
||||||
|
createTime: 2025/02/14 09:12:27
|
||||||
|
permalink: /article/GPT-API-deploy-assets/
|
||||||
|
---
|
||||||
|
|
||||||
|
此页面汇集了目前市面上 98%以上的大模型,且涵盖了 github 上主流的开源框架和技术,欢迎挨个体验。UpStream Sync 功能启用可以自动同步 fork 的项目,尝试到市面上最新的大模型功能。One API 配合统一身份认证系统方便配置,欢迎体验。
|
||||||
|
|
10
docs/preview/custom-component.example.md
Normal file
10
docs/preview/custom-component.example.md
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
title: 自定义组件
|
||||||
|
tags:
|
||||||
|
- 预览
|
||||||
|
- 组件
|
||||||
|
createTime: 2025/02/14 08:56:39
|
||||||
|
permalink: /article/x2hc6xjp/
|
||||||
|
---
|
||||||
|
|
||||||
|
<CustomComponent />
|
324
docs/preview/markdown.md
Normal file
324
docs/preview/markdown.md
Normal file
@ -0,0 +1,324 @@
|
|||||||
|
---
|
||||||
|
title: Markdown
|
||||||
|
tags:
|
||||||
|
- markdown
|
||||||
|
createTime: 2025/02/14 08:56:39
|
||||||
|
permalink: /article/ejo4abax/
|
||||||
|
---
|
||||||
|
|
||||||
|
## 标题 2
|
||||||
|
|
||||||
|
### 标题 3
|
||||||
|
|
||||||
|
#### 标题 4
|
||||||
|
|
||||||
|
##### 标题 5
|
||||||
|
|
||||||
|
###### 标题 6
|
||||||
|
|
||||||
|
加粗:**加粗文字**
|
||||||
|
|
||||||
|
斜体: _斜体文字_
|
||||||
|
|
||||||
|
~~删除文字~~
|
||||||
|
|
||||||
|
内容 ==标记==
|
||||||
|
|
||||||
|
数学表达式: $-(2^{n-1})$ ~ $2^{n-1} -1$
|
||||||
|
|
||||||
|
$\frac {\partial^r} {\partial \omega^r} \left(\frac {y^{\omega}} {\omega}\right)
|
||||||
|
= \left(\frac {y^{\omega}} {\omega}\right) \left\{(\log y)^r + \sum_{i=1}^r \frac {(-1)^ Ir \cdots (r-i+1) (\log y)^{ri}} {\omega^i} \right\}$
|
||||||
|
|
||||||
|
19^th^
|
||||||
|
|
||||||
|
H~2~O
|
||||||
|
|
||||||
|
::: center
|
||||||
|
内容居中
|
||||||
|
:::
|
||||||
|
|
||||||
|
::: right
|
||||||
|
内容右对齐
|
||||||
|
:::
|
||||||
|
|
||||||
|
- 无序列表1
|
||||||
|
- 无序列表2
|
||||||
|
- 无序列表3
|
||||||
|
|
||||||
|
1. 有序列表1
|
||||||
|
2. 有序列表2
|
||||||
|
3. 有序列表3
|
||||||
|
|
||||||
|
- [ ] 任务列表1
|
||||||
|
- [ ] 任务列表2
|
||||||
|
- [x] 任务列表3
|
||||||
|
- [x] 任务列表4
|
||||||
|
|
||||||
|
| Tables | Are | Cool |
|
||||||
|
| ------------- |:-------------:| -----:|
|
||||||
|
| col 3 is | right-aligned | $1600 |
|
||||||
|
| col 2 is | centered | $12 |
|
||||||
|
| zebra stripes | are neat | $1 |
|
||||||
|
|
||||||
|
> 引用内容
|
||||||
|
>
|
||||||
|
> 引用内容
|
||||||
|
|
||||||
|
[链接](/)
|
||||||
|
|
||||||
|
[外部链接](https://github.com/pengzhanbo)
|
||||||
|
|
||||||
|
**Badge:**
|
||||||
|
|
||||||
|
- <Badge type="info" text="info badge" />
|
||||||
|
- <Badge type="tip" text="tip badge" />
|
||||||
|
- <Badge type="warning" text="warning badge" />
|
||||||
|
- <Badge type="danger" text="danger badge" />
|
||||||
|
|
||||||
|
**图标:**
|
||||||
|
|
||||||
|
- home - <Icon name="material-symbols:home" color="currentColor" size="1em" />
|
||||||
|
- vscode - <Icon name="skill-icons:vscode-dark" size="2em" />
|
||||||
|
- twitter - <Icon name="skill-icons:twitter" size="2em" />
|
||||||
|
|
||||||
|
**demo wrapper:**
|
||||||
|
|
||||||
|
::: demo-wrapper title="示例" no-padding height="200px"
|
||||||
|
<style scoped>
|
||||||
|
.open-door {
|
||||||
|
display: flex;
|
||||||
|
gap: 20px;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
.open-door .main {
|
||||||
|
background: #ccc;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<div class="open-door">
|
||||||
|
<div class="main">main</div>
|
||||||
|
<div class="aside">aside</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
**代码:**
|
||||||
|
|
||||||
|
```js whitespace
|
||||||
|
const a = 1
|
||||||
|
const b = 2
|
||||||
|
const c = a + b
|
||||||
|
|
||||||
|
// [!code word:obj]
|
||||||
|
const obj = {
|
||||||
|
toLong: {
|
||||||
|
deep: {
|
||||||
|
deep: {
|
||||||
|
deep: {
|
||||||
|
value: 'this is to long text. this is to long text. this is to long text. this is to long text.', // [!code highlight]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**代码分组:**
|
||||||
|
|
||||||
|
::: code-tabs
|
||||||
|
@tab tab1
|
||||||
|
|
||||||
|
```js
|
||||||
|
const a = 1
|
||||||
|
const b = 2
|
||||||
|
const c = a + b
|
||||||
|
```
|
||||||
|
|
||||||
|
@tab tab2
|
||||||
|
|
||||||
|
```ts
|
||||||
|
const a: number = 1
|
||||||
|
const b: number = 2
|
||||||
|
const c: number = a + b
|
||||||
|
```
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
**代码块高亮:**
|
||||||
|
|
||||||
|
```ts
|
||||||
|
function foo() {
|
||||||
|
const a = 1 // [!code highlight]
|
||||||
|
|
||||||
|
console.log(a)
|
||||||
|
|
||||||
|
const b = 2 // [!code ++]
|
||||||
|
const c = 3 // [!code --]
|
||||||
|
|
||||||
|
console.log(a + b + c) // [!code error]
|
||||||
|
console.log(a + b) // [!code warning]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**代码块聚焦:**
|
||||||
|
|
||||||
|
```ts
|
||||||
|
function foo() {
|
||||||
|
const a = 1 // [!code focus]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
::: note 注释
|
||||||
|
注释内容 [link](https://github.com/pengzhanbo) `inline code`
|
||||||
|
|
||||||
|
```js
|
||||||
|
const a = 1
|
||||||
|
const b = 2
|
||||||
|
const c = a + b
|
||||||
|
```
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
::: info 信息
|
||||||
|
信息内容 [link](https://github.com/pengzhanbo) `inline code`
|
||||||
|
|
||||||
|
```js
|
||||||
|
const a = 1
|
||||||
|
const b = 2
|
||||||
|
const c = a + b
|
||||||
|
```
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
::: tip 提示
|
||||||
|
提示内容 [link](https://github.com/pengzhanbo) `inline code`
|
||||||
|
|
||||||
|
```js
|
||||||
|
const a = 1
|
||||||
|
const b = 2
|
||||||
|
const c = a + b
|
||||||
|
```
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
::: warning 警告
|
||||||
|
警告内容 [link](https://github.com/pengzhanbo) `inline code`
|
||||||
|
|
||||||
|
```js
|
||||||
|
const a = 1
|
||||||
|
const b = 2
|
||||||
|
const c = a + b
|
||||||
|
```
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
::: caution 错误
|
||||||
|
错误内容 [link](https://github.com/pengzhanbo) `inline code`
|
||||||
|
|
||||||
|
```js
|
||||||
|
const a = 1
|
||||||
|
const b = 2
|
||||||
|
const c = a + b
|
||||||
|
```
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
::: important 重要
|
||||||
|
重要内容 [link](https://github.com/pengzhanbo) `inline code`
|
||||||
|
|
||||||
|
```js
|
||||||
|
const a = 1
|
||||||
|
const b = 2
|
||||||
|
const c = a + b
|
||||||
|
```
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
**GFM alert:**
|
||||||
|
|
||||||
|
> [!note]
|
||||||
|
> note
|
||||||
|
|
||||||
|
> [!info]
|
||||||
|
> info
|
||||||
|
|
||||||
|
> [!tip]
|
||||||
|
> tip
|
||||||
|
|
||||||
|
> [!warning]
|
||||||
|
> warning
|
||||||
|
|
||||||
|
> [!caution]
|
||||||
|
> caution
|
||||||
|
|
||||||
|
> [!important]
|
||||||
|
> important
|
||||||
|
|
||||||
|
**代码演示:**
|
||||||
|
|
||||||
|
:::: demo title="常规示例" desc="一个常规示例"
|
||||||
|
|
||||||
|
::: code-tabs
|
||||||
|
@tab HTML
|
||||||
|
|
||||||
|
```html
|
||||||
|
<div id="app">
|
||||||
|
<h3>vuepress-theme-plume</h3>
|
||||||
|
</div>
|
||||||
|
```
|
||||||
|
|
||||||
|
@tab Javascript
|
||||||
|
|
||||||
|
```js
|
||||||
|
const a = 'So Awesome!'
|
||||||
|
const app = document.querySelector('#app')
|
||||||
|
app.appendChild(window.document.createElement('small')).textContent = a
|
||||||
|
```
|
||||||
|
|
||||||
|
@tab CSS
|
||||||
|
|
||||||
|
```css
|
||||||
|
#app {
|
||||||
|
font-size: 2em;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
:::
|
||||||
|
::::
|
||||||
|
|
||||||
|
**选项卡:**
|
||||||
|
|
||||||
|
::: tabs
|
||||||
|
@tab 标题1
|
||||||
|
内容区块
|
||||||
|
|
||||||
|
@tab 标题2
|
||||||
|
内容区块
|
||||||
|
:::
|
||||||
|
|
||||||
|
:::: warning
|
||||||
|
::: tabs
|
||||||
|
@tab 标题1
|
||||||
|
内容区块
|
||||||
|
|
||||||
|
@tab 标题2
|
||||||
|
内容区块
|
||||||
|
:::
|
||||||
|
::::
|
||||||
|
|
||||||
|
**脚注:**
|
||||||
|
|
||||||
|
脚注 1 链接[^first]。
|
||||||
|
|
||||||
|
脚注 2 链接[^second]。
|
||||||
|
|
||||||
|
行内的脚注^[行内脚注文本] 定义。
|
||||||
|
|
||||||
|
重复的页脚定义[^second]。
|
||||||
|
|
||||||
|
[^first]: 脚注 **可以包含特殊标记**
|
||||||
|
|
||||||
|
也可以由多个段落组成
|
||||||
|
|
||||||
|
[^second]: 脚注文字。
|
13
docs/preview/工作室成立.md
Normal file
13
docs/preview/工作室成立.md
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
title: 工作室成立
|
||||||
|
createTime: 2025/02/14 09:16:56
|
||||||
|
permalink: /article/studio-setup/
|
||||||
|
tags:
|
||||||
|
- 工作室
|
||||||
|
---
|
||||||
|
|
||||||
|
## 成立
|
||||||
|
|
||||||
|
## 人员
|
||||||
|
|
||||||
|
## now
|
6
docs/preview/工作室网络.md
Normal file
6
docs/preview/工作室网络.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
title: 工作室网络
|
||||||
|
createTime: 2025/02/14 09:19:57
|
||||||
|
permalink: /article/studio-network/
|
||||||
|
---
|
||||||
|
|
1
docs/public/logo.svg
Normal file
1
docs/public/logo.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1739495247889" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4442" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M514.29 257.53c137.98 1.23 249.48 113.46 249.48 251.75 0 44.76-11.69 86.81-32.16 123.22-41.8 74.32-120.23 125.29-210.8 128.39-1.01 0.04-2.01 0.06-3.02 0.07-0.66 0.01-1.32 0.02-1.96 0.04-1.27 0.02-2.55 0.04-3.82 0.04-53 0-96.35-43.35-96.35-96.35 0-24.63 9.36-47.18 24.7-64.25 1.17-1.29 2.36-2.56 3.59-3.79 17.47-17.47 41.56-28.31 68.06-28.31 85.82 0 155.41-69.57 155.41-155.41-0.01-85.07-68.37-154.17-153.13-155.4z" fill="#4770DC" p-id="4443"></path><path d="M608.35 161.16c139.04 0 251.76 112.72 251.76 251.76 0 1.27-0.01 2.55-0.04 3.82-0.01 0.65-0.02 1.31-0.04 1.96-0.01 1.01-0.04 2.01-0.07 3.02-4.58 185.27-153.9 334.58-339.16 339.17 90.57-3.11 169-54.07 210.8-128.39 20.48-36.42 32.16-78.46 32.16-123.22 0-138.29-111.5-250.52-249.48-251.75-0.77-0.01-1.53-0.01-2.29-0.01-1.34 0-2.67 0.01-4.02 0.05-82.64 2.1-149.26 68.72-151.34 151.34 0.66-43.27 12.25-83.88 32.13-119.22 43.14-76.71 125.32-128.53 219.59-128.53z" fill="#6F94F4" p-id="4444"></path><path d="M512 64.8c192.26 0 348.12 155.86 348.12 348.12 0-139.05-112.73-251.76-251.76-251.76-94.28 0-176.46 51.82-219.59 128.53-19.88 35.33-31.47 75.95-32.13 119.22-0.04 1.34-0.05 2.67-0.05 4.02v449.92c0 53-43.37 96.35-96.35 96.35-53 0-96.35-43.35-96.35-96.35V412.92c0-136.41 78.45-254.49 192.71-311.59C403.36 77.96 456.15 64.8 512 64.8z" fill="#97B4FF" p-id="4445"></path></svg>
|
After Width: | Height: | Size: 1.6 KiB |
28
package.json
Normal file
28
package.json
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
"name": "p-guide-docs",
|
||||||
|
"type": "module",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "项导文档",
|
||||||
|
"packageManager": "pnpm@10.3.0",
|
||||||
|
"author": "rand777 <losmosga@foxmail.com>",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": "^18.20.0 || >=20.0.0"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"docs:dev": "vuepress dev docs",
|
||||||
|
"docs:dev-clean": "vuepress dev docs --clean-cache --clean-temp",
|
||||||
|
"docs:build": "vuepress build docs --clean-cache --clean-temp",
|
||||||
|
"docs:preview": "http-server docs/.vuepress/dist",
|
||||||
|
"vp-update": "pnpm dlx vp-update"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@vuepress/bundler-vite": "2.0.0-rc.19",
|
||||||
|
"vuepress": "2.0.0-rc.19",
|
||||||
|
"vuepress-theme-plume": "1.0.0-rc.130",
|
||||||
|
"http-server": "^14.1.1",
|
||||||
|
"vue": "^3.5.13",
|
||||||
|
"sass-embedded": "^1.83.4",
|
||||||
|
"typescript": "^5.7.3"
|
||||||
|
}
|
||||||
|
}
|
6270
pnpm-lock.yaml
generated
Normal file
6270
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
6
vercel.json
Normal file
6
vercel.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"framework": null,
|
||||||
|
"buildCommand": "pnpm run docs:build",
|
||||||
|
"installCommand": "pnpm install",
|
||||||
|
"outputDirectory": "docs/.vuepress/dist"
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user