Skip to content

Commit c56cccb

Browse files
committed
chore: sync only repo setting
1 parent a8d32cd commit c56cccb

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

docs/src/content/docs/en/shortcuts/sync-folder.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,15 @@ If you deleted the note from Apple Notes before adding the `[DEL]` tag, you can:
108108

109109
</Steps>
110110

111+
## Sync Only (Private Backup)
112+
113+
If you only want to use Moire to sync and back up your notes without making them public as a blog, follow these steps:
114+
115+
1. **Disable GitHub Pages**: In your GitHub repository's Settings > Pages, set the "Source" under Build and deployment to "None", or remove the deployment workflow.
116+
2. **Set Repository to Private**: In Settings > General > Danger Zone, change the repository's visibility to **Private**.
117+
118+
Since the GitHub Access Token you configured in the Shortcut has permission to access private repositories, the sync functionality will still work perfectly, but your notes will only be visible to you.
119+
111120
## Next Steps
112121

113122
Now that the folder is set up, finally we need to configure automation so your notes sync automatically when you close the app.

docs/src/content/docs/shortcuts/sync-folder.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,15 @@ import { Steps } from '@astrojs/starlight/components';
107107
3. 如果回收站已清空,你需要前往 GitHub 仓库手动删除对应的 `.md` 文件。
108108
</Steps>
109109

110+
## 仅用于备份(不公开)
111+
112+
如果你只想利用 Moire 同步和备份你的笔记,而不想将它们公开为博客,只需执行以下操作:
113+
114+
1. **关闭 GitHub Pages**:在 GitHub 仓库的 Settings > Pages 中,将 Build and deployment 的 Source 设置为 None,或者删除部署相关的 Workflow。
115+
2. **设置为私有仓库**:在 Settings > General > Danger Zone 中,将仓库的可见性(Visibility)更改为 **Private**
116+
117+
由于你在快捷指令中配置的 GitHub Access Token 具有访问私有仓库的权限,同步功能将依然正常工作,但你的笔记内容将只有你自己可见。
118+
110119
## 下一步
111120

112121
文件夹创建好了,最后我们需要设置自动化,让笔记在关闭时自动同步。

0 commit comments

Comments
 (0)