Automatic changelog in book #18
Replies: 7 comments 8 replies
-
|
Preferably, you shold be able to use markdown relative links to book pages in the release description. |
Beta Was this translation helpful? Give feedback.
-
|
I think the tag is a nice way to go for authors, and could be useful for some subset of readers. however, i think for most authors the changelog in the book itself will be more important than that in the source code/repo. Regardless, seems like the big question is how to easily and efficiently keep tags and book changelogs in sync (without writing a lot of hard to maintain scripts or developing a massive software package to visualize changes). I think the tag and link to a branch comparison is pretty good. then its on the author team to make branch and commit messages that are informative |
Beta Was this translation helpful? Give feedback.
-
|
In our projects we generally keep a changelog manually. By working with PR's and using squash-merge the commit history is generally pretty clear so even if we forget something, finishing up the changelog when we prepare for a release is quite straightforward. Github itself does already has a button "Generate release notes" which pulls info from the commits since the last release to create an automatic overview. However, that depends on how well you've written your commit messages. And, it would have all changes in there (not necessarily relevant for readers):
Seems indeed like you would want a visual-diff of the rendered HTML pages. And manually writing changelogs is undesired 😉 Assuming no one messes with the structure of files (names, location) a workflow to create an html diff could be;
|
Beta Was this translation helpful? Give feedback.
-
|
Made into a project here: Automatic changelog (view) |
Beta Was this translation helpful? Give feedback.
-
|
Tom and I were talking. @BSchilperoort , you see any major flaws?
|
Beta Was this translation helpful? Give feedback.
-
|
We came to the conclusion that we should just have a markdown file changelog.md inside the book directory which can also be rendered in the book. People can use releases to refer to specific versions and link to these from the changelog |
Beta Was this translation helpful? Give feedback.
-
|
Covered in TeachBooks/manual#114 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Use tags and releases in github to point to specific commits like this one: https://github.com/TeachBooks/bridging_mechanics/releases/tag/2024_week1-7
Each release on a branch should end up on a changelog in the book of that branch containing the description of the release and a link to the changelog, now the example has a manual changelog:
https://github.com/TeachBooks/bridging_mechanics/releases/tag/2024_week1-7https://teachbooks.github.io/bridging_mechanics/2024/changelog.htmlDoes anyone has further ideas how this could work? @rlanzafame @jialeidng @TeachBooks/tu-delft-cs-tas @TeachBooks/escience-center-rses
Beta Was this translation helpful? Give feedback.
All reactions