Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions content/docs/reference/common-issues.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ description: 按症状分类的常见问题速查
- **原因**:HTTPS/SSL 证书配置有问题,或使用了自签名证书但客户端不信任。
- **解决**:检查证书是否过期,确认 Nginx/Caddy 的 SSL 配置正确,必要时重新申请证书。

## 无法访问前端

### 升级 v13 后 error.api_fetchError Not found

- **原因**:代码逻辑要求至少需要有一篇手记(详见 [此 issues 讨论](https://github.com/innei-dev/yohaku/issues/151#issuecomment-4642861551))
- **解决**:发布一篇手记保证 `api/v3/aggregate` 能正常工作。

## 功能异常

### 搜索不工作
Expand Down
2 changes: 1 addition & 1 deletion content/docs/themes/shiro/deploy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function FAQBox({ title, children }) {
<Step>
### 设置主题配置

进入 Mix Space 后台,进入「配置与云函数」页面,点击右上角的新增按钮,在编辑页面中,填入以下设置:
进入 Mix Space 后台,进入「集成 - 代码片段」页面(原 配置与云函数),点击右上角的新增按钮,在编辑页面中,填入以下设置:

- 名称:`shiro`
- 引用:`theme`
Expand Down
6 changes: 3 additions & 3 deletions content/docs/themes/shiro/extra.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { Step, Steps } from 'fumadocs-ui/components/steps'
<Steps>
### 配置云函数

进入后台,点击左侧菜单栏的「其他 -> 配置与云函数」,然后点击新建按钮,在选项卡中填入以下信息:
进入后台,点击左侧菜单栏的「集成 - 代码片段」(原 配置与云函数),然后点击新建按钮,在选项卡中填入以下信息:

- 名称:`update`
- 引用:`ps`
Expand Down Expand Up @@ -60,7 +60,7 @@ import { Step, Steps } from 'fumadocs-ui/components/steps'

### 配置主题配置

继续在「配置与云函数」页面,找到「theme -> shiro」配置,点击编辑,进入编辑页面,在代码中找到 `module`,加入 activity 配置,如下:(高亮部分)
继续「集成 - 代码片段」页面(原 配置与云函数),找到「theme -> shiro」配置,点击编辑,进入编辑页面,在代码中找到 `module`,加入 activity 配置,如下:(高亮部分)

```json {14,15,16,17}
{
Expand Down Expand Up @@ -172,7 +172,7 @@ LOG_ENABLE=true

### 配置云函数

进入后台,点击左侧菜单栏的「其他 -> 配置与云函数」,然后点击新建按钮,在选项卡中填入以下信息:
进入后台,点击左侧菜单栏的「集成 - 代码片段」(原 配置与云函数)中,然后点击新建按钮,在选项卡中填入以下信息:

- 名称:`status`
- 引用:`shiro`
Expand Down
2 changes: 1 addition & 1 deletion content/docs/themes/shiro/pro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Shiro 主题内置基于 WebGL 的高性能粒子物理背景系统,支持多

![](/assets/images/themes/shiro/sign.gif)

在「配置与云函数」页面,找到「theme -> shiro」配置,进入编辑页面,在代码中找到 `module`,加入 `signature` 配置,如下(高亮部分):
在「集成 - 代码片段」页面(原 配置与云函数)中,找到「theme -> shiro」配置,进入编辑页面,在代码中找到 `module`,加入 `signature` 配置,如下(高亮部分):

其中 svg 后填生成的 svg 代码,可通过 [此网站](https://danmarshall.github.io/google-font-to-svg-path/) 进行生成。

Expand Down
2 changes: 1 addition & 1 deletion content/docs/themes/yohaku/config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: 余白 / Yohaku 的配置文件信息

# 配置项

Yohaku 的配置沿用 Shiro 的配置体系,在 Mix Space 后台「配置与云函数」页面中,创建一条 `theme` 引用、名称为 `shiro` 的配置项(数据类型 JSON 或 YAML)。配置参考详见 [Shiro 的部署页面](https://mx-space.js.org/docs/themes/shiro/deploy#设置主题配置)。
Yohaku 的配置沿用 Shiro 的配置体系,在 Mix Space 后台「集成 - 代码片段」页面(原 配置与云函数)中,创建一条 `theme` 引用、名称为 `shiro` 的配置项(数据类型 JSON 或 YAML)。配置参考详见 [配置示例](#配置示例)。

<Callout type="info">
Yohaku 复用了 `shiro` 这个配置键名,如果你从 Shiro 迁移到 Yohaku,无需更改配置名称。
Expand Down
2 changes: 1 addition & 1 deletion src/components/features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const features = [
},
{
icon: Settings,
title: '配置与云函数',
title: '代码片段',
description:
'无限扩展,无限可能。通过云函数配置实现状态上报等第三方 API 集成功能,通过 JSON/YAML 编辑器快速编辑前端设置。',
},
Expand Down