Based on @Hyoban's Github project-vscode-xlog plugin, I have implemented the process of editing xlog locally and publishing it remotely.
By using this plugin, we can achieve self-documentation and can submit it to GitHub for backup, even publish on GitHub Pages.
Overview#
- The plugin can download posts from xlog and upload them back to xlog. The file structure does not affect the use of Git, theoretically, any version control program can be used.
- It is expected that the plugin can automatically sync, instead of relying on manual updates by right-clicking.
Usage Analysis#
Using with Github:#
- Can push data to GitHub. Purpose: Backup
- Can pull data from GitHub. Purpose: Backup and restore
- The confusing point for me is here: if I change systems/computers, should I download data from GitHub or xlog?
- After some thought, I realized: if xlog has not crashed, then download from xlog, as posts updated before the GitHub backup may require xlog data, directly restoring from GitHub may cause some data to roll back incorrectly.
- The confusing point for me is here: if I change systems/computers, should I download data from GitHub or xlog?
About the plugin#
- Can
- Use the plugin to download posts from xlog,
- Create and update posts locally.
- ❓Not sure if custom publishing time can override xlog data.
- There are no post templates, you have to copy them yourself.
- There is no tool for automatically updating GitHub, such as linking updates to xlog and GitHub push.