Skip to content
cloud edited this page Jul 14, 2022 · 2 revisions

Configuration

Github

  • Username:Repo Name include username
  • Repo Name
  • GitHub Token

Gitee

  • Username
  • Repo Name
  • Gitee Token

Publish

Which files to publish?

  • all files under a given folder?
  • all files with a tag in frontmatter?
  • execute command to publish a certain file(without modifying frontmatter)?

我觉得用yaml配合文件夹的方式比较好,因为这几乎是所有发布产品采用的方式,没有明显弊端,参考vuepress, hexo等静态博客生成器。即:用户指定文件夹,指定笔记的yaml以标记是否发布。

How to determine their target path?

  • get from frontmatter?
  • their original path in obsidian?
  • Upload all files to a fixed folder?

上传时按照ob的相对路径就行,就像mkdoc那样,上传的目录结构和ob的结构一样

How to deal with Assets?

  • Upload to the same folder?
  • Upload to its original path in obsidian?
  • Upload along with markdown file?
  • Upload files linked to in a published file or not?

都放在一个文件夹吧,这样处理起来方便点。毕竟发布不是备份,附件找得到就行,删除文件时把对应的附件删除,也更容易点。

Programming

API

  • Sealed class for interface
  • Uniformed request
  • Construct request according to settings

User Interface

  • Please give a settings format so that I can write API?

我会写个类型定义文件

Format

  • Auto upload all images
  • Does assets include pdf or whatever?
  • Auto upload all linked files?

暂时没必要支持除图片外的其它附件,一方面是发布库容量有限,几个pdf就占完了,另一方面维护起来不方便。

Publish

  • Auto detect file to upload?
  • What to do when user switch publish mode(if available)?

只提供publish选项,尽可能减少用户选择,从而维持云端库的稳定性。