cli + tui to publish to leaflet (wip) & manage tasks, notes & watch/read lists 🍃
charm leaflet readability golang
noteleaf website docs leaflet examples.md
1.3 kB · 85 lines
Markdown
at main


title: Publishing Examples sidebar_label: Examples description: End-to-end examples for posting, drafting, and syncing. sidebar_position: 6 #

Publishing Examples #

Publishing a Blog Post #

Write the post locally:

noteleaf note create "Understanding AT Protocol" --editor

Write in markdown, save, and close editor.

Preview the conversion:

noteleaf pub post <note-id> --preview

Review the output to ensure formatting is correct.

Publish:

noteleaf pub post <note-id>

Update later:

noteleaf note edit <note-id>
# Make changes
noteleaf pub patch <note-id>

Draft Workflow #

Create draft:

noteleaf note create "Work in Progress" --editor
noteleaf pub post <note-id> --draft

Iterate locally:

noteleaf note edit <note-id>
noteleaf pub patch <note-id>  # Updates draft

Publish when ready: Use leaflet.pub web interface to change draft to published status (CLI command coming in future versions).

Syncing Existing Content #

Pull all leaflet documents:

noteleaf pub pull

List synced documents:

noteleaf pub list

Read a synced document:

noteleaf pub read <note-id>

Edit locally and push updates:

noteleaf note edit <note-id>
noteleaf pub patch <note-id>