Repository navigation
docs(site): render CHANGES as a changelog page - #462
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
The changelog links on the landing page opened
CHANGESon 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 sitecopiessite/to_site/and rendersCHANGESinto_site/changes.htmlwith docutils, through thesite/changes.htmltemplate. The rendered HTML is not committed.CHANGESare shown as code, like double backticks.CHANGESkeeps its markup.rawandincludedirectives are disabled, and any docutils warning fails the build, so a brokenCHANGESdoes not reach the site.changes.html#version-1-12-0. AVersion [unreleased]section is shown as it is in the file.CHANGESor theMakefilechanges. Pull requests run only the build job, as thegithub-pagesenvironment takes deployments from master only.# 98link inCHANGESpointed toissue/98, which returns 404, and now points toissues/98.docutils is installed in the Pages workflow only. env-dev already has it through twine, so locally
make siteworks with env-dev activated.Checked
make sitefails on a short title underline, arawblock and anincludeline inCHANGES.CHANGES(78), and all 181#NNNreferences link to the matching issue or pull request.