After Install¶
Short guide for common next steps after you generate the project.
First time developing plugins?¶
- Place the project under your vault at
.obsidian/plugins/your-plugin-idfor local testing. - Run
make installandmake devto build in watch mode. - Edit
src/main.ts(or new.tsfiles) and reload Obsidian to pick up changes. - Enable the plugin in Obsidian settings.
Releasing new releases¶
- If needed, update
minAppVersioninmanifest.json. - Bump version with
make patch,make minor, ormake major. This updatespackage.json,manifest.json,versions.jsonand creates avX.Y.Ztag. - Run
make releaseto push commits and tags. The tag triggers GitHub Actions to build and publish a release withmain.js,manifest.json,styles.css.
Adding your plugin to the community plugin list¶
- Follow the official docs: docs.obsidian.md
- Publish an initial GitHub release.
- Open a PR in obsidianmd/obsidian-releases.
Manually installing the plugin¶
Copy main.js, manifest.json, and styles.css to:
VaultFolder/.obsidian/plugins/your-plugin-id/
i18n (optional)¶
- Enable
enable_i18nduring generation to include i18n scaffolding. - Use
t()fromsrc/i18n/index.tsin your code. - Add new locales under
locales/(copylocales/en.jsonand register insrc/i18n/index.ts). - i18next docs: i18next.com
References¶
- Official docs: docs.obsidian.md
- Obsidian sample plugin: obsidianmd/obsidian-sample-plugin