Skip to content

Commit

Permalink
Sync doc from yuque
Browse files Browse the repository at this point in the history
  • Loading branch information
SingleMoonlight committed Sep 24, 2024
1 parent d19ad02 commit 56aa277
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ createTime: 2024/09/22 15:26:32
permalink: /article/yuque-elog-vuepress-plume-github-pages-action-one-stop-blog-solution/
outline: [2, 6]
---
## 写在前面
## 写在前面
前面博客说过,博客方案换来换去,没有优雅,只有更优雅。现在找到了满足我所有需求的方案。不出意外,这也将是最终的方案了,折腾了一天,写下来看看能不能帮到有相同想法的人。

### 最终效果
Expand All @@ -18,13 +18,14 @@ outline: [2, 6]
### 本方案的优势/特点
+ 本地/平台/云端三方备份,极为安全,不用担心数据丢失的问题。
+ 自动集成/自动部署,优雅便捷。
+ 不需要云服务器,甚至可以不需要域名,没有负担。
+ 不需要云服务器,不需要域名备案,甚至可以不需要域名,没有负担。
+ 主题插件丰富,可直接使用,也可自由定制,如何配置由自己掌控。
+ 上手难度低,各个工具都有详尽的介绍文档,甚至可以直接问作者。

### 本方案的不足/缺点
+ 如果没有开通语雀会员,无法使用 WebHook 实现完全的自动化,还需要在本地手动同步,然后 push 到 GitHub,不过我要的效果就是这样,可以在本地预览和备份。
+ 语雀自带的部分扩展语法,如分页、个别颜色高亮、字体颜色配置等, Elog 以及 vuepress 没有完全同步。
+ GitHub 访问可能会因为网络问题收到影响。

如何取舍,看大家的需求,目前来说本方案可以满足我的所有需求,可以看看本博客的效果。

Expand Down
2 changes: 1 addition & 1 deletion elog-coding.cache.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
{
"id": 187486234,
"doc_id": "yuque-elog-vuepress-plume-github-pages-action-one-stop-blog-solution",
"updated": 1727021860000,
"updated": 1727142940000,
"properties": {
"title": "语雀 + Elog + vuepress + Theme Plume + GitHub Pages + GitHub Action一站式博客解决方案",
"urlname": "yuque-elog-vuepress-plume-github-pages-action-one-stop-blog-solution",
Expand Down
2 changes: 1 addition & 1 deletion elog-front-matter.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const format = async (doc, imageClient) => {
'title: ' + doc.properties.title.replace(/^\d+\./, '') + '\n' +
'createTime: ' + doc.properties.date + '\n' +
'permalink: ' + docNotePermalink + doc.properties.urlname + '\/' + '\n' +
'outline: [2, 6]' +
'outline: [2, 6]' + '\n' +
'---\n' +
doc.body;

Expand Down

0 comments on commit 56aa277

Please sign in to comment.