Skip to content

wuxc/youdao_share

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

youdao_share

搭配Hexo,用有道云协作的群共享里面的Markdown来写blog.
将此脚本放在hexo blog目录下,用crontab自动检查同步然后生成静态资源.

安装

$ cd ~/blog
$ git clone [email protected]:wuxc/youdao_share.git sync

配置

  • 在有道云协作建个群,共享一个文件夹,记下gid和共享token
  • 修改sync_youdao.py,填入gid和token, 如果没check到hexo根目录下,需要额外配一下savedir
  • 增加crontab,例如:
$contab -e

增加一行

0 */3 * * * flock -xn ~wuxc/blog/sync/lock sh ~wuxc/blog/sync/update.sh >> ~wuxc/blog/sync/update.log 2>&1

About

synchronize files shared on note.youdao.com.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published