Skip to content

docs(site): render CHANGES as a changelog page - #462

Merged
ekalinin merged 3 commits into
masterfrom
docs/changelog-page
Oct 31, 2026
Merged

ekalinin merged 3 commits into
masterfrom
docs/changelog-page

Conversation

@ekalinin

Copy link
Copy Markdown
Owner

What changes

The changelog links on the landing page opened CHANGES on GitHub. The file has no extension, so GitHub shows it as plain text: the reStructuredText markup stays visible, and every issue and PR link is auto-linked together with the trailing >`_, so it points to a wrong address.

Now the site has a changelog page, changes.html, with the same top bar, footer and stylesheet as the landing page. Both changelog links point to it.

  • make site copies site/ to _site/ and renders CHANGES into _site/changes.html with docutils, through the site/changes.html template. The rendered HTML is not committed.
  • Single backticks in CHANGES are shown as code, like double backticks. CHANGES keeps its markup.
  • The raw and include directives are disabled, and any docutils warning fails the build, so a broken CHANGES does not reach the site.
  • Each version has an anchor, such as changes.html#version-1-12-0. A Version [unreleased] section is shown as it is in the file.
  • The Pages workflow is split into a build job and a deploy job, and also runs when CHANGES or the Makefile changes. Pull requests run only the build job, as the github-pages environment takes deployments from master only.
  • The # 98 link in CHANGES pointed to issue/98, which returns 404, and now points to issues/98.

docutils is installed in the Pages workflow only. env-dev already has it through twine, so locally make site works with env-dev activated.

Checked

  • make site fails on a short title underline, a raw block and an include line in CHANGES.
  • The page has one section per version in CHANGES (78), and all 181 #NNN references link to the matching issue or pull request.
  • Light and dark appearance, and nothing overflows at 375 px. The landing page renders the same as before the stylesheet change, pixel for pixel, in light, dark and at 375 px.
  • The changelog page runs no script and makes no third-party request.

The target pointed to issue/98, which returns 404.
The changelog links opened CHANGES on GitHub, which shows the file as
plain text: the markup stays visible and every issue link carries the
trailing `>`_ into its address. make site copies site/ to _site/ and
renders CHANGES into _site/changes.html with docutils, through the
site/changes.html template. Single backticks become code, the raw and
include directives are disabled, and any docutils warning fails the
build.
The Pages workflow is split into a build job, which runs make site, and
a deploy job. CHANGES and the Makefile trigger it too. Pull requests run
only the build job, as the github-pages environment takes deployments
from master only.
@ekalinin ekalinin added the docs Documentation changes label Oct 31, 2026
@ekalinin
ekalinin merged commit e9e72c8 into master Oct 31, 2026
48 checks passed
@ekalinin
ekalinin deleted the docs/changelog-page branch November 1, 2026 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant