-
Notifications
You must be signed in to change notification settings - Fork 122
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
Conversation
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.
Many thanks. Looks good.
My bad for not requesting this documentation updates as part of #502
Only minor comments.
docs/tutorial.rst
Outdated
@@ -51,13 +51,16 @@ The ``.gitignore`` will remain and keep Git from not tracking the directory. | |||
Detecting Dates & Versions |
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.
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.
Detecting Dates & Versions | |
Detecting version |
docs/tutorial.rst
Outdated
@@ -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): |
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 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.
``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: |
docs/tutorial.rst
Outdated
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. |
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.
2. Set a ``version`` key in your configuration file. | |
2. Set a value for the ``version`` option in your configuration file. |
Description
The tutorial text should be updated to match the version discovery changes.
Checklist
src/towncrier/newsfragments/
. Describe yourchange and include important information. Your change will be included in the public release notes.
docs/tutorial.rst
is still up-to-date.