mirror of
https://github.com/handsomezhuzhu/handsomezhuzhu.github.io.git
synced 2026-02-20 11:50:14 +00:00
准备备案
This commit is contained in:
166
.github/workflows/deploy-old.yml
vendored
166
.github/workflows/deploy-old.yml
vendored
@@ -1,99 +1,99 @@
|
|||||||
name: Deploy Pages
|
# name: Deploy Pages
|
||||||
|
|
||||||
# 触发条件,push到main分支或者pull request到main分支
|
# # 触发条件,push到main分支或者pull request到main分支
|
||||||
on:
|
# on:
|
||||||
push:
|
# push:
|
||||||
branches: [main]
|
# branches: [main]
|
||||||
pull_request:
|
# pull_request:
|
||||||
branches: [main]
|
# branches: [main]
|
||||||
|
|
||||||
# 支持手动在工作流上触发
|
# # 支持手动在工作流上触发
|
||||||
workflow_dispatch:
|
# workflow_dispatch:
|
||||||
|
|
||||||
# 设置时区
|
# # 设置时区
|
||||||
env:
|
# env:
|
||||||
TZ: Asia/Shanghai
|
# TZ: Asia/Shanghai
|
||||||
|
|
||||||
# 权限设置
|
# # 权限设置
|
||||||
permissions:
|
# permissions:
|
||||||
# 允许读取仓库内容的权限。
|
# # 允许读取仓库内容的权限。
|
||||||
contents: read
|
# contents: read
|
||||||
# 允许写入 GitHub Pages 的权限。
|
# # 允许写入 GitHub Pages 的权限。
|
||||||
pages: write
|
# pages: write
|
||||||
# 允许写入 id-token 的权限。
|
# # 允许写入 id-token 的权限。
|
||||||
id-token: write
|
# id-token: write
|
||||||
|
|
||||||
# 并发控制配置
|
# # 并发控制配置
|
||||||
concurrency:
|
# concurrency:
|
||||||
group: pages
|
# group: pages
|
||||||
cancel-in-progress: false
|
# cancel-in-progress: false
|
||||||
|
|
||||||
# 定义执行任务
|
# # 定义执行任务
|
||||||
jobs:
|
# jobs:
|
||||||
# 构建任务
|
# # 构建任务
|
||||||
build:
|
# build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
|
|
||||||
# node v20 运行
|
# # node v20 运行
|
||||||
strategy:
|
# strategy:
|
||||||
matrix:
|
# matrix:
|
||||||
node-version: [20]
|
# node-version: [20]
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
# 拉取代码
|
# # 拉取代码
|
||||||
- name: Checkout
|
# - name: Checkout
|
||||||
uses: actions/checkout@v4
|
# uses: actions/checkout@v4
|
||||||
with:
|
# with:
|
||||||
# 保留 Git 信息
|
# # 保留 Git 信息
|
||||||
fetch-depth: 0
|
# fetch-depth: 0
|
||||||
|
|
||||||
# 设置使用 Node.js 版本
|
# # 设置使用 Node.js 版本
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
# - name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v4
|
# uses: actions/setup-node@v4
|
||||||
with:
|
# with:
|
||||||
node-version: ${{ matrix.node-version }}
|
# node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
# 使用 最新的 PNPM
|
# # 使用 最新的 PNPM
|
||||||
# 你也可以指定为具体的版本
|
# # 你也可以指定为具体的版本
|
||||||
- uses: pnpm/action-setup@v4
|
# - uses: pnpm/action-setup@v4
|
||||||
name: Install pnpm
|
# name: Install pnpm
|
||||||
with:
|
# with:
|
||||||
version: latest
|
# version: latest
|
||||||
# version: 9
|
# # version: 9
|
||||||
run_install: false
|
# run_install: false
|
||||||
|
|
||||||
# 安装依赖
|
# # 安装依赖
|
||||||
- name: Install dependencies
|
# - name: Install dependencies
|
||||||
run: pnpm install --no-frozen-lockfile
|
# run: pnpm install --no-frozen-lockfile
|
||||||
# 锁定依赖版本
|
# # 锁定依赖版本
|
||||||
# run: pnpm install --frozen-lockfile
|
# # run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
# 构建项目
|
# # 构建项目
|
||||||
- name: Build blog project
|
# - name: Build blog project
|
||||||
run: |
|
# run: |
|
||||||
echo ${{ github.workspace }}
|
# echo ${{ github.workspace }}
|
||||||
pnpm build
|
# pnpm build
|
||||||
|
|
||||||
# 资源拷贝
|
# # 资源拷贝
|
||||||
- name: Build with Jekyll
|
# - name: Build with Jekyll
|
||||||
uses: actions/jekyll-build-pages@v1
|
# uses: actions/jekyll-build-pages@v1
|
||||||
with:
|
# with:
|
||||||
source: ./docs/.vitepress/dist
|
# source: ./docs/.vitepress/dist
|
||||||
destination: ./_site
|
# destination: ./_site
|
||||||
|
|
||||||
# 上传 _site 的资源,用于后续部署
|
# # 上传 _site 的资源,用于后续部署
|
||||||
- name: Upload artifact
|
# - name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v3
|
# uses: actions/upload-pages-artifact@v3
|
||||||
|
|
||||||
# 部署任务
|
# # 部署任务
|
||||||
deploy:
|
# deploy:
|
||||||
environment:
|
# environment:
|
||||||
name: github-pages
|
# name: github-pages
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
# url: ${{ steps.deployment.outputs.page_url }}
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
needs: build
|
# needs: build
|
||||||
steps:
|
# steps:
|
||||||
- name: Deploy to GitHub Pages
|
# - name: Deploy to GitHub Pages
|
||||||
id: deployment
|
# id: deployment
|
||||||
uses: actions/deploy-pages@v4
|
# uses: actions/deploy-pages@v4
|
||||||
|
|||||||
@@ -28,19 +28,20 @@ const blogTheme = getThemeConfig({
|
|||||||
mermaid: true,
|
mermaid: true,
|
||||||
|
|
||||||
// 页脚
|
// 页脚
|
||||||
// footer: {
|
footer: {
|
||||||
// // message 字段支持配置为HTML内容,配置多条可以配置为数组
|
// message 字段支持配置为HTML内容,配置多条可以配置为数组
|
||||||
// // message: '下面 的内容和图标都是可以修改的噢(当然本条内容也是可以隐藏的)',
|
message: '<span>联系邮箱:<a href="mailto:zhuzihan@zhuzihan.com">zhuzihan@zhuzihan.com</a></span>',
|
||||||
// copyright: 'MIT License | SIMON',
|
copyright: 'MIT License | SIMON',
|
||||||
// // icpRecord: {
|
version: false,
|
||||||
// // name: '蜀ICP备19011724号',
|
icpRecord: {
|
||||||
// // link: 'https://beian.miit.gov.cn/'
|
name: 'xICP备xxxxxxx号',
|
||||||
// // },
|
link: 'https://beian.miit.gov.cn/'
|
||||||
// // securityRecord: {
|
},
|
||||||
// // name: '公网安备xxxxx',
|
securityRecord: {
|
||||||
// // link: 'https://www.beian.gov.cn/portal/index.do'
|
name: '公网安备xxxxx',
|
||||||
// // },
|
link: 'https://www.beian.gov.cn/portal/index.do'
|
||||||
// },
|
},
|
||||||
|
},
|
||||||
|
|
||||||
// 主题色修改
|
// 主题色修改
|
||||||
themeColor: 'el-blue',
|
themeColor: 'el-blue',
|
||||||
@@ -67,38 +68,38 @@ const blogTheme = getThemeConfig({
|
|||||||
],
|
],
|
||||||
|
|
||||||
// 公告
|
// 公告
|
||||||
// popover: {
|
// popover: {
|
||||||
// title: '公告',
|
// title: '公告',
|
||||||
// body: [
|
// body: [
|
||||||
// { type: 'text', content: '👇公众号👇---👇 微信 👇' },
|
// { type: 'text', content: '👇公众号👇---👇 微信 👇' },
|
||||||
// {
|
// {
|
||||||
// type: 'image',
|
// type: 'image',
|
||||||
// src: 'https://img.cdn.sugarat.top/mdImg/MTYxNTAxODc2NTIxMA==615018765210~fmt.webp'
|
// src: 'https://img.cdn.sugarat.top/mdImg/MTYxNTAxODc2NTIxMA==615018765210~fmt.webp'
|
||||||
// },
|
// },
|
||||||
// {
|
// {
|
||||||
// type: 'text',
|
// type: 'text',
|
||||||
// content: '欢迎大家加群&私信交流'
|
// content: '欢迎大家加群&私信交流'
|
||||||
// },
|
// },
|
||||||
// {
|
// {
|
||||||
// type: 'text',
|
// type: 'text',
|
||||||
// content: '文章首/文尾有群二维码',
|
// content: '文章首/文尾有群二维码',
|
||||||
// style: 'padding-top:0'
|
// style: 'padding-top:0'
|
||||||
// },
|
// },
|
||||||
// {
|
// {
|
||||||
// type: 'button',
|
// type: 'button',
|
||||||
// content: '作者博客',
|
// content: '作者博客',
|
||||||
// link: 'https://sugarat.top'
|
// link: 'https://sugarat.top'
|
||||||
// },
|
// },
|
||||||
// {
|
// {
|
||||||
// type: 'button',
|
// type: 'button',
|
||||||
// content: '加群交流',
|
// content: '加群交流',
|
||||||
// props: {
|
// props: {
|
||||||
// type: 'success'
|
// type: 'success'
|
||||||
// },
|
// },
|
||||||
// link: 'https://theme.sugarat.top/group.html',
|
// link: 'https://theme.sugarat.top/group.html',
|
||||||
// }
|
// }
|
||||||
// ],
|
// ],
|
||||||
// duration: 0
|
// duration: 0
|
||||||
//},
|
//},
|
||||||
|
|
||||||
comment: {
|
comment: {
|
||||||
|
|||||||
@@ -1,71 +1,71 @@
|
|||||||
import { defineConfig } from 'vitepress'
|
import { defineConfig } from 'vitepress'
|
||||||
|
|
||||||
// 导入主题的配置
|
// 导入主题的配置
|
||||||
import { blogTheme } from './blog-theme'
|
import { blogTheme } from './blog-theme'
|
||||||
|
|
||||||
// 如果使用 GitHub/Gitee Pages 等公共平台部署
|
// 如果使用 GitHub/Gitee Pages 等公共平台部署
|
||||||
// 通常需要修改 base 路径,通常为“/仓库名/”
|
// 通常需要修改 base 路径,通常为“/仓库名/”
|
||||||
// 如果项目名已经为 name.github.io 域名,则不需要修改!
|
// 如果项目名已经为 name.github.io 域名,则不需要修改!
|
||||||
// const base = process.env.GITHUB_ACTIONS === 'true'
|
// const base = process.env.GITHUB_ACTIONS === 'true'
|
||||||
// ? '/vitepress-blog-sugar-template/'
|
// ? '/vitepress-blog-sugar-template/'
|
||||||
// : '/'
|
// : '/'
|
||||||
|
|
||||||
// Vitepress 默认配置
|
// Vitepress 默认配置
|
||||||
// 详见文档:https://vitepress.dev/reference/site-config
|
// 详见文档:https://vitepress.dev/reference/site-config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
// 继承博客主题(@sugarat/theme)
|
// 继承博客主题(@sugarat/theme)
|
||||||
extends: blogTheme,
|
extends: blogTheme,
|
||||||
// base,
|
// base,
|
||||||
lang: 'zh-cn',
|
lang: 'zh-cn',
|
||||||
title: 'SIMON BLOG',
|
title: 'SIMON BLOG',
|
||||||
description: 'Simon的博客,基于 vitepress 实现',
|
description: 'Simon的博客,基于 vitepress 实现',
|
||||||
lastUpdated: true,
|
lastUpdated: true,
|
||||||
markdown: {
|
markdown: {
|
||||||
math: true
|
math: true
|
||||||
},
|
},
|
||||||
// 详见:https://vitepress.dev/zh/reference/site-config#head
|
// 详见:https://vitepress.dev/zh/reference/site-config#head
|
||||||
head: [
|
head: [
|
||||||
// 配置网站的图标(显示在浏览器的 tab 上)
|
// 配置网站的图标(显示在浏览器的 tab 上)
|
||||||
// ['link', { rel: 'icon', href: `${base}favicon.ico` }], // 修改了 base 这里也需要同步修改
|
// ['link', { rel: 'icon', href: `${base}favicon.ico` }], // 修改了 base 这里也需要同步修改
|
||||||
['link', { rel: 'icon', href: '/favicon.ico' }]
|
['link', { rel: 'icon', href: '/favicon.ico' }]
|
||||||
],
|
],
|
||||||
themeConfig: {
|
themeConfig: {
|
||||||
// 展示 2,3 级标题在目录中
|
// 展示 2,3 级标题在目录中
|
||||||
outline: {
|
outline: {
|
||||||
level: [2, 3],
|
level: [2, 3],
|
||||||
label: '目录'
|
label: '目录'
|
||||||
},
|
},
|
||||||
// 默认文案修改
|
// 默认文案修改
|
||||||
returnToTopLabel: '回到顶部',
|
returnToTopLabel: '回到顶部',
|
||||||
sidebarMenuLabel: '相关文章',
|
sidebarMenuLabel: '相关文章',
|
||||||
lastUpdatedText: '上次更新于',
|
lastUpdatedText: '上次更新于',
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 设置logo
|
// 设置logo
|
||||||
logo: '/logo.jpg',
|
logo: '/logo.jpg',
|
||||||
// editLink: {
|
// editLink: {
|
||||||
// pattern:
|
// pattern:
|
||||||
// 'https://github.com/ATQQ/sugar-blog/tree/master/packages/blogpress/:path',
|
// 'https://github.com/ATQQ/sugar-blog/tree/master/packages/blogpress/:path',
|
||||||
// text: '去 GitHub 上编辑内容'
|
// text: '去 GitHub 上编辑内容'
|
||||||
// },
|
// },
|
||||||
nav: [
|
nav: [
|
||||||
{ text: '首页', link: '/' },
|
{ text: '首页', link: '/' },
|
||||||
{ text: '导航页', link: 'http://home.zhuzihan.com/' },
|
// { text: '导航页', link: 'http://home.zhuzihan.com/' },
|
||||||
{ text: '服务器状态检测', link: 'https://state.zhuzihan.com/' },
|
{ text: '服务器状态检测', link: 'https://state.zhuzihan.com/' },
|
||||||
{ text: '主题仓库', link: 'https://github.com/ATQQ/sugar-blog/tree/master/packages/theme' },
|
{ text: '主题仓库', link: 'https://github.com/ATQQ/sugar-blog/tree/master/packages/theme' },
|
||||||
{ text: '关于作者', link: 'https://github.com/handsomezhuzhu' },
|
{ text: '关于作者', link: 'https://github.com/handsomezhuzhu' },
|
||||||
{ text: 'AI API测活', link: 'https://api-test.zhuzihan.com/' },
|
{ text: 'AI API测活', link: 'https://api-test.zhuzihan.com/' },
|
||||||
{ text: '文件快递柜', link: 'https://file.zhuzihan.com/' },
|
{ text: '文件快递柜', link: 'https://file.zhuzihan.com/' },
|
||||||
{ text: '免费AI对话', link: 'https://ai.zhuzihan.com/' },
|
{ text: '免费AI对话', link: 'https://ai.zhuzihan.com/' },
|
||||||
{ text: 'key轮询池', link: 'https://load.zhuzihan.com/' }
|
{ text: 'key轮询池', link: 'https://load.zhuzihan.com/' }
|
||||||
],
|
],
|
||||||
socialLinks: [
|
socialLinks: [
|
||||||
{
|
{
|
||||||
icon: 'github',
|
icon: 'github',
|
||||||
link: 'https://github.com/handsomezhuzhu'
|
link: 'https://github.com/handsomezhuzhu'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ sidebar: true # 是否显示侧边栏:true显示,false隐藏
|
|||||||
readingTime: true # 是否显示阅读时间:true显示,false隐藏
|
readingTime: true # 是否显示阅读时间:true显示,false隐藏
|
||||||
sticky: 0 # 精选文章设置:值越大在首页展示越靠前,0表示不精选
|
sticky: 0 # 精选文章设置:值越大在首页展示越靠前,0表示不精选
|
||||||
recommend: true
|
recommend: true
|
||||||
|
publish: false
|
||||||
---
|
---
|
||||||
|
|
||||||
# vLLM学习笔记(壹)
|
# vLLM学习笔记(壹)
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ sidebar: true # 是否显示侧边栏:true显示,false隐藏
|
|||||||
readingTime: true # 是否显示阅读时间:true显示,false隐藏
|
readingTime: true # 是否显示阅读时间:true显示,false隐藏
|
||||||
sticky: 0 # 精选文章设置:值越大在首页展示越靠前,0表示不精选
|
sticky: 0 # 精选文章设置:值越大在首页展示越靠前,0表示不精选
|
||||||
recommend: true
|
recommend: true
|
||||||
|
publish: false
|
||||||
---
|
---
|
||||||
|
|
||||||
# vLLM 报告
|
# vLLM 报告
|
||||||
|
|||||||
Reference in New Issue
Block a user