- Documentation
- The editor
- Publishing changes
Publishing changes
Review your edits, run the checks, and send them to your repo as a pull request or a direct commit.
Your edits stay drafts until you choose Publish in the top bar. Publishing writes them to your repo, and your repo is where your site comes from.
The button shows how many edits are waiting. Its menu, More ways to publish, has three choices:
- Open a pull request: someone reviews it on GitHub, and merging deploys the site. Checks run first.
- Commit to your published branch: the site goes live after the build. This one shows when the branch takes direct commits, or when When you press Publish in Settings › Site › Git is set to commit.
- Share a preview link: opens a pull request and builds it at its own address. Nothing goes live.
Review what changes
Section titled “Review what changes”The page opens on “Publish” and the number of edits. What changes lists each file as New, Edited, Deleted or No change, with the lines added and removed. Open a file to see its diff. Uploaded media is listed too.
If someone changed the same page in the repo while you edited, Specly combines the changes when they touch different parts, and says “Combined with what changed in the repo meanwhile.” When they touch the same part, it stops, writes nothing over theirs, and asks what to keep for each part.
Checks
Section titled “Checks”Checked before you publish runs on the files you changed. Each result is Passed, a Warning or Must be fixed:
- The names of your files are valid.
docs.jsonandtheme.jsonare valid JSON, and your colours pass AA contrast in light and dark.- Media you inserted is from your library, with a name that fits its type.
- Links to pages and files resolve. A broken one is a warning.
- Images and videos have alt text or a title. A missing one is a warning.
A result marked Must be fixed blocks publishing: the button stays off and the page says “Fix what’s marked first.”
How it reaches your repo
Section titled “How it reaches your repo”Under How it reaches your repo, choose Open a pull request (recommended) or Commit to your published branch. Title names the pull request or commit. Specly fills it in from the pages you changed.
What changed, for readers is optional. Write one sentence of at most 140 characters. It shows beside the date on the pages this changes, on the public site too, so leave out links, #numbers and @names. See Freshness.
Choose Open pull request or Commit and deploy. Both open a “Published.” page with a link to the pull request or commit on GitHub, and Watch the build for a commit. If your published branch only takes pull requests, a direct commit can fail, so choose a pull request.
Share a preview link
Section titled “Share a preview link”With Share a preview link, Specly opens the pull request and shows a link to share. It works once the preview build passes, in a minute or two. Nothing goes live until the pull request merges.
Set your default
Section titled “Set your default”Settings › Site › Git has When you press Publish, which sets the choice the Publish button starts on. Ask for review from adds GitHub people or teams as reviewers on every pull request Publish opens.