Repository navigation
bluedoc 1.0.45
Share picks the right GitHub account, shares only the current revision, and has a new share sheet.
- Share as: with two or more gh accounts signed in, every share shows Share as. The first share in a project preselects the account that owns the repo's remote or belongs to its org; bluedoc remembers the pick per project (Settings → Sharing, or
serve.py share <doc> --as <login>). With one account there's no picker. - The right account, every call: each gh call for a share runs as its account (
GH_TOKENfor that call only); gh's active account never changes. Update and Stop sharing use the account that made the gist. - Current revision only: a share holds the doc as it is now, no earlier revisions. When the doc moves on, Update pushes the new revision into the same gist: the link stays and readers see it on reload.
- Gist on another account: if the project now shares as another account, the sheet says so and offers Move (a new gist, the old one deleted: the link changes) or Keep (the link stays). From the terminal:
--moveor--keep. - The sheet: the doc as a ticket over the page: the link with a copy key, the state (Up to date, Link shows rev N), Update, Details and Stop sharing. The notice stays as its red edge.
- Sharing off: when gh is missing or signed out, or no account can make gists, the Share key is dimmed; it says why, and a click shows the command that fixes it.
BLUEDOC_GHnames the gh program sharing uses.
Install or update:
/plugin marketplace add andreiverdes/bluedoc
/plugin install bluedoc@bluedoc