jinhefeng73 downloadsPublish the active Obsidian note with one click after a one-time Cloudflare setup, including linked pages and local assets.
Language / 语言: English | 中文
Once your Cloudflare account is connected, publish the active Obsidian Markdown note with one click. One-Click Publish can include linked notes, upload referenced local assets, and keep a stable link when you publish updates.
/s/{siteId} website.mailto: links, and external assets unchanged.share_site_id, share_link, and share_updated to the root note's frontmatter.In Obsidian, open Settings → Community plugins → Browse, search for One-Click Publish, install it, and enable it.
Download manifest.json and main.js from the latest GitHub Release. Place both files in:
.obsidian/plugins/one-click-publish/
Then open Settings → Community plugins and enable One-Click Publish.
The first deployment creates a private Worker and D1 database in your Cloudflare account. The plugin stores only the Worker URL and scoped Publish Token in the Vault after deployment. The Cloudflare access token is used in memory and revoked after setup.
After setup, include this plugin's settings when syncing the Vault to another device. Notes-only sync does not transfer the publishing connection.
Custom domains support both example.com and notes.example.com when the active Zone belongs to the connected Cloudflare account. Cloudflare manages the Worker domain record and certificate. The original workers.dev address remains available as a fallback; binding a root domain may affect existing routes on that domain.
The Cloudflare deployment connection and custom-domain binding are separate settings. Unbinding a custom domain removes only that custom-domain attachment and switches publishing back to the Worker address; it does not disconnect the saved Cloudflare Worker or Publish Token. Disconnect is a separate local connection action and is not a substitute for custom-domain unbinding.
If Cloudflare completes a domain removal but Obsidian cannot save the new local settings, the plugin keeps the primary connection and shows a recovery action in Settings. Use Recover custom-domain state to reconcile the saved state with Cloudflare before trying another domain operation.
Linked page depth controls how far One-Click Publish follows links:
0: publish only the active note.1: include directly linked notes.The active note is always the share root. Local images and supported referenced assets are uploaded with the pages. External resources are not downloaded or rewritten.
The normal settings page does not ask for a service URL or Publish Token. The official hosted connection is planned; the current supported path deploys to your own Cloudflare account.
One-Click Publish stores the site ID in the root note's frontmatter. Publishing the same root note again updates the existing site instead of creating a new link.
manifest.json and main.js are directly inside .obsidian/plugins/one-click-publish/.For development, testing, packaging, and release instructions, see CONTRIBUTING.md.