Skip to content

Updated dates and change notes

Show readers when each page last changed and why, from your Git history, and add a note in your own words.

2 min read

Updated

Every page says when it last changed: Updated 3 days ago, under the page’s introduction. You write nothing for it. Specly reads it from your docs folder’s Git history.

The date is when the page’s last change reached the branch the site is built from. A merge counts when it lands, so the date is the merge’s, not the day you started the pull request. A page that has never been committed has no date.

Beside the date, the page can say why:

  • docs PR #12: the pull request that changed the page.
  • code PR #34: a pull request in your code repo that the docs change came from. A commit names it with a Specly-Code-Change: owner/repo#34 line. Specly-Code-Change: private says the change came from code, without naming it, and the page says “a code change”.
  • A change note: a sentence in your words.

A change note tells readers what is different, in one sentence. When you publish from the dashboard, add it under What changed, for readers in Publish. Specly puts it in the pull request, and it shows beside the date on every page that pull request changed.

You can also add it yourself, as a line at the end of a commit message or a squash-merge message:

Text
Move the retry settings to their own page
Specly-Change-Note: Retries are now set per endpoint.

A note:

  • is one line of plain text, at most 140 characters;
  • has no links, no #123 references and no @names;
  • is shown as written, never as Markdown.

A note that breaks a rule isn’t shown. The page falls back to the date alone.

Specly Cloud knows whether your docs repo is public. When it’s private, a reader can’t open what GitHub would show, so the pages leave it out:

  • no pull request numbers, since in a repo that holds code and docs they can point at private code;
  • no Edit this page on GitHub or Report an issue links, because they’d go to a page GitHub shows as not found.

The date and a change note still show. A code PR still shows when its commit names a public repo.

To change this, set freshness.prNumbers in theme.json:

theme.json
{
"freshness": { "prNumbers": "auto" }
}
freshness.prNumbersstringpathdefault: auto

auto names docs PRs, and links them, only when the docs repo is public. always names them even when it’s private, as text with no link, for readers who are all your team. never never names a pull request.

Even with always, a private repo has no GitHub links.

Was this page helpful?

Report a problem

What’s the problem?

The docs team sees this. Other readers don’t.