feat: 初始化博客并完成首篇博文和样式调整
@@ -28,78 +28,71 @@ const blogTheme = getThemeConfig({
|
|||||||
// mermaid: false
|
// mermaid: false
|
||||||
|
|
||||||
// 页脚
|
// 页脚
|
||||||
footer: {
|
// footer: {
|
||||||
// message 字段支持配置为HTML内容,配置多条可以配置为数组
|
// // message 字段支持配置为HTML内容,配置多条可以配置为数组
|
||||||
// message: '下面 的内容和图标都是可以修改的噢(当然本条内容也是可以隐藏的)',
|
// // message: '下面 的内容和图标都是可以修改的噢(当然本条内容也是可以隐藏的)',
|
||||||
copyright: 'MIT License | 粥里有勺糖',
|
// copyright: 'MIT License | SIMON',
|
||||||
// icpRecord: {
|
// // icpRecord: {
|
||||||
// name: '蜀ICP备19011724号',
|
// // name: '蜀ICP备19011724号',
|
||||||
// link: 'https://beian.miit.gov.cn/'
|
// // link: 'https://beian.miit.gov.cn/'
|
||||||
|
// // },
|
||||||
|
// // securityRecord: {
|
||||||
|
// // name: '公网安备xxxxx',
|
||||||
|
// // link: 'https://www.beian.gov.cn/portal/index.do'
|
||||||
|
// // },
|
||||||
// },
|
// },
|
||||||
// securityRecord: {
|
|
||||||
// name: '公网安备xxxxx',
|
|
||||||
// link: 'https://www.beian.gov.cn/portal/index.do'
|
|
||||||
// },
|
|
||||||
},
|
|
||||||
|
|
||||||
// 主题色修改
|
// 主题色修改
|
||||||
themeColor: 'el-blue',
|
themeColor: 'el-blue',
|
||||||
|
|
||||||
// 文章默认作者
|
// 文章默认作者
|
||||||
author: '粥里有勺糖',
|
author: 'SIMON',
|
||||||
|
|
||||||
// 友链
|
// 友链
|
||||||
friend: [
|
friend: [
|
||||||
{
|
{
|
||||||
nickname: '粥里有勺糖',
|
nickname: 'LINUX DO',
|
||||||
des: '你的指尖用于改变世界的力量',
|
des: '真诚、友善、团结、专业,共建你我引以为荣之社区。',
|
||||||
avatar:
|
avatar:
|
||||||
'https://img.cdn.sugarat.top/mdImg/MTY3NDk5NTE2NzAzMA==674995167030',
|
'https://linux.do/uploads/default/original/4X/c/c/d/ccd8c210609d498cbeb3d5201d4c259348447562.png',
|
||||||
url: 'https://sugarat.top',
|
url: 'https://linux.do/',
|
||||||
},
|
|
||||||
{
|
|
||||||
nickname: 'Vitepress',
|
|
||||||
des: 'Vite & Vue Powered Static Site Generator',
|
|
||||||
avatar:
|
|
||||||
'https://vitepress.dev/vitepress-logo-large.webp',
|
|
||||||
url: 'https://vitepress.dev/',
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
// 公告
|
// 公告
|
||||||
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
|
||||||
},
|
//},
|
||||||
})
|
})
|
||||||
|
|
||||||
export { blogTheme }
|
export { blogTheme }
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ export default defineConfig({
|
|||||||
extends: blogTheme,
|
extends: blogTheme,
|
||||||
// base,
|
// base,
|
||||||
lang: 'zh-cn',
|
lang: 'zh-cn',
|
||||||
title: '@sugarat/theme',
|
title: 'SIMON BLOG',
|
||||||
description: '粥里有勺糖的博客主题,基于 vitepress 实现',
|
description: 'Simon的博客,基于 vitepress 实现',
|
||||||
lastUpdated: true,
|
lastUpdated: true,
|
||||||
// 详见:https://vitepress.dev/zh/reference/site-config#head
|
// 详见:https://vitepress.dev/zh/reference/site-config#head
|
||||||
head: [
|
head: [
|
||||||
@@ -46,12 +46,13 @@ export default defineConfig({
|
|||||||
// },
|
// },
|
||||||
nav: [
|
nav: [
|
||||||
{ text: '首页', link: '/' },
|
{ text: '首页', link: '/' },
|
||||||
{ text: '关于作者', link: 'https://sugarat.top/aboutme.html' }
|
{ text: '主题仓库', link: 'https://github.com/ATQQ/sugar-blog/tree/master/packages/theme' },
|
||||||
|
{ text: '关于作者', link: 'https://github.com/handsomezhuzhu' }
|
||||||
],
|
],
|
||||||
socialLinks: [
|
socialLinks: [
|
||||||
{
|
{
|
||||||
icon: 'github',
|
icon: 'github',
|
||||||
link: 'https://github.com/ATQQ/sugar-blog/tree/master/packages/theme'
|
link: 'https://github.com/handsomezhuzhu'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import BlogTheme from '@sugarat/theme'
|
import BlogTheme from '@sugarat/theme'
|
||||||
|
|
||||||
// 自定义样式重载
|
// 自定义样式重载
|
||||||
// import './style.scss'
|
import './style.scss'
|
||||||
|
|
||||||
// 自定义主题色
|
// 自定义主题色
|
||||||
// import './user-theme.css'
|
// import './user-theme.css'
|
||||||
|
|||||||
@@ -1,13 +1,18 @@
|
|||||||
.VPHome {
|
.VPHome {
|
||||||
// 定义遮罩样式
|
// 定义遮罩样式
|
||||||
background: radial-gradient(ellipse,
|
background: radial-gradient(ellipse,
|
||||||
rgba(var(--bg-gradient-home), 1) 0%,
|
rgba(var(--bg-gradient-home), 0.53) 0%,
|
||||||
rgba(var(--bg-gradient-home), 0) 150%);
|
rgba(var(--bg-gradient-home), 0) 2000%);
|
||||||
|
|
||||||
// 自定义首页背景图
|
// 自定义首页背景图
|
||||||
&::before {
|
&::before {
|
||||||
// 图片来源:https://zhuanlan.zhihu.com/p/54060187
|
|
||||||
background-image: url(./assets/bg.webp);
|
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
// 默认是暗色模式的背景
|
||||||
|
background-image: url(/bg.webp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 亮色模式下切换背景
|
||||||
|
html:not(.dark) .VPHome::before {
|
||||||
|
background-image: url(/bgw.jpg);
|
||||||
|
}
|
||||||
@@ -2,15 +2,22 @@
|
|||||||
layout: home
|
layout: home
|
||||||
# 首页部分元素定制
|
# 首页部分元素定制
|
||||||
blog:
|
blog:
|
||||||
name: '@sugarat/theme'
|
name: 'SIMON BLOG'
|
||||||
motto: 简约风的 Vitepress 博客主题
|
minScreenAvatar: true
|
||||||
|
# motto: 简约风的 Vitepress 博客主题
|
||||||
inspiring:
|
inspiring:
|
||||||
- 基于 Vitepress 定制的主题🎨
|
- 同是天涯沦落人,相逢何必曾相识
|
||||||
- 千万不要因为走得太久,而忘记了我们为什么出发
|
- 一道残阳铺水中,半江瑟瑟半江红
|
||||||
- 人生就像一场修行,你不可能一开始就修成正果
|
- 落霞与孤鹜齐飞,秋水共长天一色
|
||||||
- 无论多么沉重的负担,也不要忘记微笑;无论多么漫长的路程,也不要忘记坚持
|
- 一道残阳铺水中,半江瑟瑟半江红
|
||||||
- 生活的真谛不在繁华,而在于淡泊
|
- 日暮酒醒人已远,满天风雨下西楼
|
||||||
|
- 最爱芦花经雨后,一蓬烟火饭鱼船
|
||||||
|
- 人间四月芳菲尽,山寺桃花始盛开
|
||||||
|
- 乱花渐欲迷人眼,浅草才能没马蹄
|
||||||
|
- 劝君更尽一杯酒,西出阳关无故人
|
||||||
|
- 月落乌啼霜满天,江枫渔火对愁眠
|
||||||
|
|
||||||
# 设置 inspiringTimeout 可以实现自动切换
|
# 设置 inspiringTimeout 可以实现自动切换
|
||||||
inspiringTimeout: 3000
|
inspiringTimeout: 3000
|
||||||
pageSize: 6
|
pageSize: 10
|
||||||
---
|
---
|
||||||
BIN
docs/public/bg.webp
Normal file
|
After Width: | Height: | Size: 1021 KiB |
BIN
docs/public/bgw.jpg
Normal file
|
After Width: | Height: | Size: 468 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 98 KiB |
BIN
docs/public/logo.jpg
Normal file
|
After Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 714 KiB |
BIN
docs/public/添加模型.png
Normal file
|
After Width: | Height: | Size: 482 KiB |
75
docs/sop/how-to-use-cherry-studio.md
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
---
|
||||||
|
sticky: 1
|
||||||
|
description: 如何使用 Cherry Studio
|
||||||
|
descriptionHTML: '
|
||||||
|
<span style="color:var(--description-font-color);">学习如何有效使用Cherry Studio的入门指南</span>
|
||||||
|
'
|
||||||
|
tag:
|
||||||
|
- Cherry Studio
|
||||||
|
- 教程
|
||||||
|
top: 1
|
||||||
|
sidebar: false
|
||||||
|
---
|
||||||
|
|
||||||
|
# 如何使用 Cherry Studio
|
||||||
|
|
||||||
|
本指南将向您介绍如何开始使用 Cherry Studio。
|
||||||
|
|
||||||
|
## 什么是 Cherry Studio?
|
||||||
|
|
||||||
|
CherryStudio 是一个功能强大的 AI 聚合工具,它集成了多模型对话、知识库管理、AI 绘画等多种功能。由于所有内容都存储在本地,因此它提供了出色的隐私保护。使用 CherryStudio 的主要目的是提升您的工作效率。
|
||||||
|
|
||||||
|
## 下载与安装
|
||||||
|
|
||||||
|
1. **下载**:
|
||||||
|
访问 [CherryStudio 官网](https://cherry-ai.com/download) 下载适用于您操作系统的客户端。
|
||||||
|
|
||||||
|
2. **安装**:
|
||||||
|
双击下载的 `.exe` 文件,然后按照安装向导的指示进行操作。建议您将软件安装在C盘以外的驱动器。
|
||||||
|
|
||||||
|
## 核心功能
|
||||||
|
|
||||||
|
CherryStudio 提供了多种强大的功能,以下是一些核心功能介绍:
|
||||||
|
|
||||||
|
### 添加模型
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
您可以在 CherryStudio 中添加和管理来自不同提供商的 AI 模型,支持 API 调用和本地调用两种方式。
|
||||||
|
|
||||||
|
#### API 调用
|
||||||
|
|
||||||
|
1. 在模型服务提供商(例如,硅基流动)的网站上注册账户并创建一个 API 密钥。
|
||||||
|
2. 在 CherryStudio 的设置中,选择“模型服务”,然后添加您的 API 密钥。
|
||||||
|
3. 添加成功后,您可以选择相应的模型进行对话。
|
||||||
|
|
||||||
|
#### 本地调用
|
||||||
|
|
||||||
|
1. 如果您在本地部署了模型(例如,使用 Ollama),您也可以将其添加到 CherryStudio。
|
||||||
|
2. 在模型服务设置中,选择本地调用,并填写正确的 API 地址(通常是 `localhost`)和模型名称。
|
||||||
|
|
||||||
|
### 联网功能
|
||||||
|
|
||||||
|
为了让模型能够获取最新信息,您可以为其启用联网功能。
|
||||||
|
|
||||||
|
1. **添加网络搜索服务**: 在设置中选择“网络搜索”,然后添加一个搜索服务(如 Tavily)。您需要获取该服务的 API 密钥并填入。
|
||||||
|
2. **使用网络搜索**: 在聊天界面,点击输入框下方的网络图标(🌐)即可启用联网功能。
|
||||||
|
|
||||||
|
### 知识库
|
||||||
|
|
||||||
|
CherryStudio 允许您创建自己的本地知识库,让 AI 根据您的文档回答问题。
|
||||||
|
|
||||||
|
1. **创建知识库**: 在侧边栏选择“知识库”并创建一个新的知识库。
|
||||||
|
2. **添加文档**: 将您的文档(请确保为 UTF-8 编码)拖入知识库中,系统会自动进行向量化处理。
|
||||||
|
3. **使用知识库**: 在聊天时,您可以选择加载特定的知识库,AI 将会基于库中的内容进行回答,并能标注引用来源。
|
||||||
|
|
||||||
|
### 配置迁移
|
||||||
|
|
||||||
|
如果您需要在多台设备上使用 CherryStudio,可以使用配置迁移功能来同步您的设置。
|
||||||
|
|
||||||
|
1. **备份**: 在“数据设置”中,您可以将当前的所有配置(包括模型、知识库等)备份为一个 ZIP 文件。
|
||||||
|
2. **恢复**: 在另一台设备上,通过“恢复”功能选择之前备份的 ZIP 文件,即可快速恢复您的所有配置。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
希望本指南对您有所帮助!
|
||||||
@@ -1,6 +1,4 @@
|
|||||||
---
|
|
||||||
sticky: 1
|
|
||||||
---
|
|
||||||
# 关于主题
|
# 关于主题
|
||||||
|
|
||||||
简约风的 Vitepress 博客主题,基于 [vitepress](https://vitepress.dev/) 的自定义主题实现
|
简约风的 Vitepress 博客主题,基于 [vitepress](https://vitepress.dev/) 的自定义主题实现
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
sticky: 999
|
sticky: 999
|
||||||
description: 1分钟内完成自己的博客创建
|
description: 1分钟内完成同款博客创建
|
||||||
descriptionHTML: '
|
descriptionHTML: '
|
||||||
<span style="color:var(--description-font-color);">1分钟内完成自己的博客创建</span>
|
<span style="color:var(--description-font-color);">1分钟内完成自己的博客创建</span>
|
||||||
<pre style="background-color: #292b30; padding: 15px; border-radius: 10px;" class="shiki material-theme-palenight"><code>
|
<pre style="background-color: #292b30; padding: 15px; border-radius: 10px;" class="shiki material-theme-palenight"><code>
|
||||||