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

doc: Use towncrier to handle release notes #466

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

wismill
Copy link
Member

@wismill wismill commented Mar 7, 2024

(from a proposal of Peter)

Towncrier is a utility to produce useful, summarized news files.

See:

Custom configuration for xkbcommon:

  • New fragments are located in the changes directory.
  • 3 sections:
    • API: changes/api
    • Tools: changes/tools
    • Build System: changes/build
  • 3 news fragments:
    • Breaking changes: .breaking
    • New: .feature
    • Fixes: .bugfix

NEWS is renamed to NEWS.md because the the tool requires .md extension to write in markdown format.

@bluetech
Copy link
Member

bluetech commented Mar 7, 2024

From my experience, it's very helpful to have a README.md file in the changes/ directory explaining a few things:

  • General blurb what the directory is
  • What are the available fragment types/categories (like what you wrote in the description)
  • Which tense/voice to use, e.g. "Fix a segfault" or "Fixed a segfault" or "A segfault has been fixed" etc.

NEWS is renamed to NEWS.md because the the tool requires .md extension to write in markdown format.

Do the existing contents render well in markdown?

@wismill
Copy link
Member Author

wismill commented Mar 7, 2024

it's very helpful to have a README.md file in the changes/

@bluetech yes, good idea. I added such file.

Do the existing contents render well in markdown?

I would say yes: https://github.com/wismill/libxkbcommon/blob/towncrier/NEWS.md

changes/README.md Outdated Show resolved Hide resolved
@wismill wismill requested a review from whot March 7, 2024 14:04
Copy link
Contributor

@whot whot left a comment

Choose a reason for hiding this comment

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

LGTM

changes/README.md Show resolved Hide resolved
changes/README.md Show resolved Hide resolved
Towncrier is a utility to produce useful, summarized news files.

See:
- https://pypi.org/project/towncrier/
- https://towncrier.readthedocs.io

Custom configuration for xkbcommon:
- New fragments are located in the `changes` directory.
- 3 sections:
  - API: `changes/api`
  - Tools: `changes/tools`
  - Build System: `changes/build`
- 3 news fragments:
  - Breaking changes: `.breaking`
  - New: `.feature`
  - Fixes: `.bugfix`

`NEWS` is renamed to `NEWS.md` because the tool requires `.md`
extension to write in markdown format.
@wismill wismill merged commit 737706f into xkbcommon:master Mar 12, 2024
4 checks passed
@wismill wismill deleted the towncrier branch March 12, 2024 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants