diff --git a/Makefile b/Makefile index cda8d7b744..abb9e33de6 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,7 @@ docs: build-docs validate-docs validate-docs: build-docs python newsfragments/validate_files.py - towncrier --draft + towncrier build --draft linux-docs: build-docs readlink -f docs/_build/html/index.html @@ -57,7 +57,7 @@ notes: # Let UPCOMING_VERSION be the version that is used for the current bump $(eval UPCOMING_VERSION=$(shell bumpversion $(bump) --dry-run --list | grep new_version= | sed 's/new_version=//g')) # Now generate the release notes to have them included in the release commit - towncrier --yes --version $(UPCOMING_VERSION) + towncrier build --yes --version $(UPCOMING_VERSION) # Before we bump the version, make sure that the towncrier-generated docs will build make build-docs git commit -m "Compile release notes" diff --git a/docs/contributing.rst b/docs/contributing.rst index ceacdf6c37..6406d494f7 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -465,7 +465,7 @@ Preview The Release Notes .. code:: sh - $ towncrier --draft + $ towncrier build --draft Compile The Release Notes diff --git a/newsfragments/2915.internal.rst b/newsfragments/2915.internal.rst new file mode 100644 index 0000000000..b0d297fb6d --- /dev/null +++ b/newsfragments/2915.internal.rst @@ -0,0 +1 @@ +Added ``build`` to towncrier commands in Makefile