笔记管理
Obisidian Self Publish¶
今天根据 https://github.com/jobindj/obsidian-publish-mkdocs 搭建了一个阅读笔记的地方 https://yang-han.github.io/open-obsidian/
https://notes.yanghan.life/
- 使用 Github Template
- 使用 Github CI
- 使用 mkdocs
- 添加 checkbox 支持
- 添加 robots.txt
- 添加 index.md
- 使用 cron 脚本 每天 2:00 同步
- 研究一个 Authentication Solution (目前使用 Cloudflare Access Control)
#! /usr/bin/zsh
echo "----------------\n"
date
pushd .
cd /home/han/codes/open-obsidian
git pull
rm -f docs/robots.txt
# rsync -av --delete /home/han/Dropbox/apps/obsidian/base/ /home/han/codes/open-obsidian/docs
# rsync -av --delete '/mnt/c/Users/yangh/OneDrive\ -\ The\ Chinese\ University\ of\ Hong\ Kong/apps/obsidian/base/' /mnt/c/Users/yangh/codes/open-obsidian/docs
rsync -av --delete /Users/hanyang/OneDrive\ -\ The\ Chinese\ University\ of\ Hong\ Kong/apps/obsidian/base/ /Users/hanyang/codes/open-obsidian/docs
cat > site/robots.txt <<EOF
User-agent: *
Disallow: /
EOF
git add -A
git commit -m "Update"
git push -f
popd
echo "----------------\n"
robocopy "C:\Users\han\OneDrive - The Chinese University of Hong Kong\apps\obsidian\base" C:\Users\han\codes\open-obsidian\docs /MIR