New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Sphinx toctree warnings from included CHANGELOG.md #5135
Conversation
See #4422 - Prepend CHANGELOG.md with `html_meta` stuff for SEO.
…This step might be automated via release-it.
…news directory at the volto root.
✅ Deploy Preview for volto canceled.
|
…e cleaned up once confirmed.
Passing run #7066 ↗︎
Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
linkcheckbroken should have failed. I think it is not reading the files in |
Sphinx does not read the files in /news. It appears that the required symlink is never created. Would it be better to commit a symlink to the repo (probably not) or find a GitHub workflow step that will create the symlink? My GitHub Workflow DuckDuckFu has not turned up anything obvious. |
Add echos to see whether it gets hit or not. Try creating a symlink in make docs-linkcheckbroken.
w00t! Got the symlink to work to news. Now I need to make the workflow fail when linkcheck fails. |
…s never called).
YAY! It fails! https://github.com/plone/volto/actions/runs/5995760347/job/16259268890?pr=5135#step:7:242 Now to clean them up so it should pass on the next run. |
…tation build should pass.
Shoot, it was failing for something besides a bad link in news. I could not spot the difference between |
…docs/source/release-notes/index.md, add, commit, and push.
@sneridagh @davisagli this is ready for review. Note that I modified |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One main comment here -- I think we can simplify what is done in the "after:bump" hook, since release-it already commits changes that are made while bumping the version.
I'll leave final approval for @sneridagh, since it's important for him to be familiar with the approach here in case something goes wrong when he actually makes a release.
package.json
Outdated
@@ -187,7 +187,7 @@ | |||
"yarn i18n", | |||
"git add locales" | |||
], | |||
"after:bump": "pipx run towncrier build --draft --yes --version ${version} > .changelog.draft && pipx run towncrier build --yes --version ${version} && make corepackagebump VERSION=${version}", | |||
"after:bump": "pipx run towncrier build --draft --yes --version ${version} > .changelog.draft && pipx run towncrier build --yes --version ${version} && make corepackagebump VERSION=${version} && cp CHANGELOG.md docs/source/release-notes/index.md && git add docs/source/release-notes/index.md && git commit -m 'copy CHANGELOG.md' && git push", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can leave out the git add, git commit, and git push here. release-it already pushes a commit with the changes that are made during this hook.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL. Should I pull it out now, or let @sneridagh fiddle around with it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd move it to a makefile command (as the corepackagebump
). In fact, the corepackagebump
actions are similar to these ones.
…ks only in Volto documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stevepiercy @davisagli please a final look before I merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you for the assist!
package.json
Outdated
@@ -187,7 +187,7 @@ | |||
"yarn i18n", | |||
"git add locales" | |||
], | |||
"after:bump": "pipx run towncrier build --draft --yes --version ${version} > .changelog.draft && pipx run towncrier build --yes --version ${version} && make corepackagebump VERSION=${version}", | |||
"after:bump": "pipx run towncrier build --draft --yes --version ${version} > .changelog.draft && pipx run towncrier build --yes --version ${version} && make corepackagebump VERSION=${version} && cp CHANGELOG.md docs/source/release-notes/index.md && git add docs/source/release-notes/index.md && git commit -m 'copy CHANGELOG.md' && git push", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL. Should I pull it out now, or let @sneridagh fiddle around with it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM -- hopefully
* main: Fix Sphinx toctree warnings from included CHANGELOG.md (#5135)
* main: Add support for TS files in add-on registry shadowing system (#5354) Fix Sphinx toctree warnings from included CHANGELOG.md (#5135) Remove regex from sphinx-copybutton config, now that linenos are excl… (#5346) Release 17.3.0 Fix DatetimeWidget on FF, the button default if no type is set is sen… (#5343) Call applyBlockDefaults from addBlock/insertBlock, add initialValue() configuration option for blocks (#5320)
I forgot that there is a counterpart in Documentation that needed to be merged at plone/documentation#1527. Merged now. Let's see what happens. |
See #4422
This PR needs to be merged before its counterpart in
documentation
will work: plone/documentation#1527To test locally, checkout the branch
linkcheck-news-volto
in bothdocumentation
andvolto
.