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

Update docs around version discovery #602

Merged
merged 5 commits into from
May 23, 2024

Conversation

SmileyChris
Copy link
Contributor

@SmileyChris SmileyChris commented May 23, 2024

Description

The tutorial text should be updated to match the version discovery changes.

Checklist

  • Create a file in src/towncrier/newsfragments/. Describe your
    change and include important information. Your change will be included in the public release notes.
  • Make sure all GitHub Actions checks are green (they are automatically checking all of the above).
  • Ensure docs/tutorial.rst is still up-to-date.

@SmileyChris SmileyChris requested a review from a team as a code owner May 23, 2024 03:27
@SmileyChris SmileyChris changed the title Update docs around versions Update docs around version discovery May 23, 2024
Copy link
Member

@adiroiban adiroiban left a comment

Choose a reason for hiding this comment

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

Many thanks. Looks good.

My bad for not requesting this documentation updates as part of #502

Only minor comments.

@@ -51,13 +51,16 @@ The ``.gitignore`` will remain and keep Git from not tracking the directory.
Detecting Dates & Versions
Copy link
Member

Choose a reason for hiding this comment

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

Maybe it's best to have a separate section for version and date.

Most of the info from this section is about version.

A separate section should make it easier to jump to the information aboute date.

and I think that it only detects the current version, so not plural.

Suggested change
Detecting Dates & Versions
Detecting version

@@ -51,13 +51,16 @@ The ``.gitignore`` will remain and keep Git from not tracking the directory.
Detecting Dates & Versions
--------------------------

``towncrier`` needs to know what version your project is, and there are two ways you can give it:
``towncrier`` needs to know what version your project is. These are the ways you can provide it (and their order of precedence):
Copy link
Member

Choose a reason for hiding this comment

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

I think it's best to use Semantic newlines for documentation content.

Maybe also update this page
https://towncrier.readthedocs.io/en/latest/contributing.html

I guess that not every operaition needs the version.
I don't expect to requiere the version for a create command.

It's not 100% clear what's the order of precendece.

Suggested change
``towncrier`` needs to know what version your project is. These are the ways you can provide it (and their order of precedence):
Most ``towncrier`` commands, like `build` or `check`, needs to know what version your project is.
These are the ways you can provide it and their order of precedence.
A lower precedence number will overwrite any other method with a higher number:

This can be either a string literal, a tuple, or an `Incremental <https://github.com/twisted/incremental>`_ version.
- Manually passing ``--version=<myversionhere>`` when interacting with ``towncrier``.
1. Manually pass ``--version=<myversionhere>`` when interacting with ``towncrier``.
2. Set a ``version`` key in your configuration file.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
2. Set a ``version`` key in your configuration file.
2. Set a value for the ``version`` option in your configuration file.

@SmileyChris SmileyChris merged commit 15d1e25 into twisted:trunk May 23, 2024
16 checks passed
@SmileyChris SmileyChris deleted the version-docs branch May 23, 2024 23:28
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.

2 participants