Obsidian-ZotLit 项目教程
1. 项目的目录结构及介绍
Obsidian-ZotLit 项目的目录结构如下:
obsidian-zotlit/
├── app/
│ ├── common/
│ ├── docs/
│ ├── lib/
│ └── utils/
├── github/
│ └── workflows/
├── .gitattributes
├── .gitignore
├── .gitmodules
├── LICENSE
├── README.md
├── commitlint-config-conventional.js
├── commitlint.config.js
├── giscus.json
├── manifest-beta.json
├── manifest.json
├── obsidian-zotero.code-workspace
├── rush.json
├── versions.json
└── zotero-def.json
目录结构介绍
-
app/: 包含项目的主要代码文件,分为
common/
,docs/
,lib/
, 和utils/
四个子目录。common/
: 存放通用代码文件。docs/
: 存放项目文档文件。lib/
: 存放项目依赖库文件。utils/
: 存放工具类代码文件。
-
github/workflows/: 存放 GitHub Actions 的工作流配置文件。
-
.gitattributes: Git 属性配置文件。
-
.gitignore: Git 忽略文件配置。
-
.gitmodules: Git 子模块配置文件。
-
LICENSE: 项目许可证文件。
-
README.md: 项目介绍和使用说明文件。
-
commitlint-config-conventional.js: commitlint 配置文件。
-
commitlint.config.js: commitlint 配置文件。
-
giscus.json: Giscus 配置文件。
-
manifest-beta.json: 项目 Beta 版本的 manifest 文件。
-
manifest.json: 项目 manifest 文件。
-
obsidian-zotero.code-workspace: VSCode 工作区配置文件。
-
rush.json: Rush 配置文件。
-
versions.json: 版本信息文件。
-
zotero-def.json: Zotero 定义文件。
2. 项目的启动文件介绍
Obsidian-ZotLit 项目的启动文件主要是 obsidian-zotero.code-workspace
和 manifest.json
。
obsidian-zotero.code-workspace
这是一个 VSCode 工作区配置文件,用于配置 VSCode 开发环境。通过打开这个文件,开发者可以在 VSCode 中启动和配置项目。
manifest.json
这是 Obsidian 插件的 manifest 文件,包含了插件的基本信息、版本号、依赖项等。Obsidian 通过读取这个文件来加载和配置插件。
3. 项目的配置文件介绍
Obsidian-ZotLit 项目的主要配置文件包括:
commitlint.config.js
这个文件用于配置 commitlint,确保 Git 提交信息的格式符合项目规范。
giscus.json
Giscus 配置文件,用于配置 Giscus 评论系统。
manifest.json
Obsidian 插件的 manifest 文件,包含了插件的基本信息、版本号、依赖项等。
rush.json
Rush 配置文件,用于配置 Rush 构建工具。
versions.json
版本信息文件,记录了项目的版本历史和依赖版本。
zotero-def.json
Zotero 定义文件,用于配置 Zotero 相关的设置和参数。
通过这些配置文件,开发者可以自定义和调整项目的各种设置,以满足不同的开发和使用需求。