Update README.md

This commit is contained in:
wood chen 2025-01-08 15:56:41 +08:00 committed by GitHub
parent 14e448c37a
commit 85bf0877ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,12 +1,14 @@
# Obsidian Publish to Discourse
# Publish to Discourse
## How to use
- Clone this repo.
- Make sure your NodeJS is at least v16 (`node --version`).
- `npm i` or `yarn` to install dependencies.
- `npm run dev` to start compilation in watch mode.
下载插件, 在设置页面添加"论坛地址", "API密钥(需要管理员创建)", "用户名".
![image](https://github.com/user-attachments/assets/ae31c831-d88d-4a15-8549-14c0726f762d)
在文档页面的右上角, 展开菜单, 选择"发布到discourse", 选择类别即可.
![image](https://github.com/user-attachments/assets/615dabe1-28d6-4217-ae53-71b00b1072de)
![image](https://github.com/user-attachments/assets/a49e34be-1265-4e41-9052-7ae7260c32cf)
## Manually installing the plugin
- Copy over `main.js`, `styles.css`, `manifest.json` to your vault `VaultFolder/.obsidian/plugins/your-plugin-id/`.