Skip to content

Commit

Permalink
✨ 新增(synology): 添加文件树组件以展示项目目录结构
Browse files Browse the repository at this point in the history
📝 更新(synology.mdx): 优化文档结构与内容
🌐 本地化(synology.mdx): 更新与本地化截图和步骤指引
✅ 新增(synology): 添加新截图来提升安装指南的清晰度
  • Loading branch information
Sitoi committed Jan 15, 2024
1 parent bacd203 commit a7c063d
Show file tree
Hide file tree
Showing 15 changed files with 83 additions and 16 deletions.
Binary file modified pages/img/synology/01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pages/img/synology/02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pages/img/synology/03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pages/img/synology/04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pages/img/synology/05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pages/img/synology/06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pages/img/synology/07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pages/img/synology/08.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pages/img/synology/09.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pages/img/synology/10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pages/img/synology/11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pages/img/synology/12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pages/img/synology/13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pages/img/synology/14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
99 changes: 83 additions & 16 deletions pages/install/synology.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Cards, Card } from 'nextra/components'
import { Callout } from 'nextra/components'
import { Steps } from 'nextra/components'
import { FileTree } from 'nextra/components'

<Cards>
<Card
Expand All @@ -22,37 +23,101 @@ import { Steps } from 'nextra/components'

<Steps>

### 新建项目目录

<FileTree>
<FileTree.Folder
name="dailycheckin"
defaultOpen
>
<FileTree.Folder
name="config"
defaultOpen
>
<FileTree.File name="config.json" />
</FileTree.Folder>
<FileTree.Folder
name="cron"
defaultOpen
>
<FileTree.File name="crontab_list.sh" />
</FileTree.Folder>
<FileTree.Folder
name="logs"
defaultOpen
></FileTree.Folder>
</FileTree.Folder>
</FileTree>

- `./config/config.json`: 配置文件
- `./cron/crontab_list.sh`: 配置定时任务的文件
- `./logs`: 日志文件

#### Config 目录

![config 目录](../img/synology/01.png)

参考[配置说明文档](/settings/config) ,并修改 `config.json`

#### Cron 目录

![cron 目录](../img/synology/01.png)

修改 `./cron/crontab_list.sh` 文件, 根据实际情况修改下面的默认文件。

```bash filename="crontab_list.sh" copy
##############默认任务##############
# 每 12 小时更新 Pipy 包,如果不需要更新 pypi 包请注释掉下面这行
0 */12 * * * echo "定时任务更新依赖..." && pip install dailycheckin --upgrade --user >> /dailycheckin/logs/update-pypi.log 2>&1
# 每天的 23:50 分清理一次日志
50 23 */2 * * rm -rf /dailycheckin/logs/*.log

##############每日签到一次任务##############
# 每日签到(9:00 执行全部签到)
0 9 * * * cd /dailycheckin && dailycheckin >> /dailycheckin/logs/dailycheckin.log 2>&1
```

### 注册表搜索「dailycheckin」,双击下载

![下载](../img/synology/01.png)
![下载](../img/synology/03.png)

### 下载完成后,点击映像,选中「dailycheckin」,点击「启动」

![启动](../img/synology/02.png)
![启动](../img/synology/04.png)

### 配置网络

跳过,点击下一步

![配置网络](../img/synology/05.png)

### 点击「高级设置」
### 常规设置

![高级设置](../img/synology/03.png)
☑️ 启动自动重新启动

### 「存储空间」,「添加文件夹」,「新建文件夹」,按照图中的文件夹添加一致的目录结构
![常规设置](../img/synology/06.png)

![添加目录](../img/synology/04.png)
### 端口设置

### 配置映射关系(如下图),点击「应用」
跳过,点击下一步

![配置映射](../img/synology/05.png)
![端口设置](../img/synology/07.png)

### 点击「下一步」
### 存储空间设置

![下一步](../img/synology/06.png)
![添加文件夹](../img/synology/08.png)

### 点击「应用」
##### 按照图中的文件夹添加一致的目录结构

![应用](../img/synology/07.png)
![下一步](../img/synology/09.png)

![启动成功](../img/synology/10.png)

### 容器启动成功

![启动成功](../img/synology/08.png)
![启动成功](../img/synology/11.png)

![容器日志](../img/synology/12.png)

</Steps>

Expand All @@ -68,20 +133,22 @@ import { Steps } from 'nextra/components'

上传配置文件「config.json」到 「dailycheckin/config」目录下,参考[配置说明文档](/settings/config) ,并修改 `config.json`

![配置并上传配置文件](../img/synology/09.png)
![配置并上传配置文件](../img/synology/01.png)

## 三、运行

<Steps>

### 点击「详情」,「终端机」,点击「新增」右侧「下拉按钮」,输入「dailycheckin」命令

![添加命令](../img/synology/10.png)
![添加命令](../img/synology/13.png)

### 点击命令,输出如下内容,表示配置成功

![运行命令](../img/synology/11.png)
![运行命令](../img/synology/14.png)

</Steps>

## 更新

自动更新

0 comments on commit a7c063d

Please sign in to comment.