Skip to content
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 including of CHANGELOG.rst #151

Merged
merged 7 commits into from Nov 2, 2021

Conversation

ziegenberg
Copy link
Collaborator

@ziegenberg ziegenberg commented Oct 30, 2021

Currently building the documentation does not include the changelog. It fails with the following error:

Running Sphinx v4.2.0
building [mo]: all of 0 po files
building [html]: all source files
updating environment: [new config] 3 added, 0 changed, 0 removed
reading sources... [ 33%] api
reading sources... [ 66%] changelog
reading sources... [100%] index

/home/daniel/Development/github/ansi2html/docs/source/changelog.rst:4: WARNING: Problems with "include" directive path:
InputError: [Errno 2] No such file or directory: 'changelog.rst'.

As can be seen here the changelog in the documentation is empty. The documentation built by this CI run does include the recent changelog.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
@ziegenberg ziegenberg added the docs This issue/PR relates to or includes documentation. label Oct 30, 2021
@ziegenberg
Copy link
Collaborator Author

The CHANGELOG.rst is currently missing the latest 1.6.0 release. Should this be added?

@ziegenberg
Copy link
Collaborator Author

Also, I saw the release notes 1.6.0 here on GitHub contain lots of old PR like #23 and many others. Should this be fixed?

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
@ssbarnea ssbarnea added the bug This issue/PR relates to a bug. label Nov 2, 2021
@ziegenberg
Copy link
Collaborator Author

ziegenberg commented Nov 2, 2021

Hi @ssbarnea!

I have a few questions:

  • Should the label docs also be recognized as valid by the workflow? Cause I would classify this PR not as a bug but rather a doc fix.
  • Shouldn't setuptools_scm be listed as a build dependency in the tox.ini? Cause it's listed in setup.cfg as required for building the docs. If I'm wrong, I will drop my last commit.
  • I added the 1.6.0 release notes as they are currently listed on GitHub to the CHANGELOG.rst. Should they be fixed in both places to reflect the actual releases?

Copy link
Member

@ssbarnea ssbarnea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can fix release draft by updating PR titles and labels, even for merged changes. Still, if a release was already made the release notes are no longer updated and if you want to patch them, you need to manually edit the release.

It can take up to a minute for release drafter to refresh the drafter after you make a change.

And yes, feel free to remove the less interesting changes from changelog as its purpose is to inform users of the library not contributors. Contributors can always check git log. :D

@ssbarnea
Copy link
Member

ssbarnea commented Nov 2, 2021

Docs label does not have any special meaning, you need to also add either bug or skip-changelog in order to decide how to be processed from the changelog point of view.

for building documentation. Building the documentation will fail when
broken links are found.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
….gitignore

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
- fix broken links in README.rst
- fix broken links in CHANGELOG.rst
- cleanup release 1.6.0 to only include actual changes from that release

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
@ziegenberg
Copy link
Collaborator Author

ziegenberg commented Nov 2, 2021

Hi @ssbarnea!

I fixed a lot of old links (mostly 302 redirects and broken links).

Please also have a look at my proposed release 1.6.0 changelog entry. If you approve, I will edit the 1.6.0 release notes here on GitHub accordingly.

For the older releases, I did not change the content, just the presentation and markup. You can find the newly rendered read the docs here: https://ansi2html--151.org.readthedocs.build/changelog.html

There is now also a sphinx linkcheck build step while building the documentation. It breaks the build if it finds broken links.

One more question: The Makefile (and make.bat counterpart) in docs are deprecated and could be removed because tox -e docs is used to build the documentation, right? If you agree, I will push one more commit to this PR to delete those.

This is ready to review.

@ssbarnea ssbarnea merged commit cddc669 into pycontribs:main Nov 2, 2021
@ziegenberg ziegenberg deleted the fix-changelog-in-docs branch November 2, 2021 17:09
@ziegenberg
Copy link
Collaborator Author

@ssbarnea Am I allowed to edit the Release Notes here (https://github.com/pycontribs/ansi2html/releases/tag/1.6.0) and make them the same as what is now in CHANGELOG.rst?

@ssbarnea
Copy link
Member

ssbarnea commented Nov 3, 2021

Sure!

@ziegenberg
Copy link
Collaborator Author

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug. docs This issue/PR relates to or includes documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants