diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d47b91c28ae..a5aa55d3dcd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -207,9 +207,5 @@ jobs: git describe --tags python -c 'import ctapipe; print(ctapipe.__version__)' - - name: Produce Changelog - run: | - towncrier build --yes - - name: Build docs run: make doc diff --git a/docs/changelog.rst b/docs/changelog.rst index 2120f0791ea..818d3a60154 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,4 +2,8 @@ Change Log ********** -.. include:: ../CHANGES.rst + +.. changelog:: + :towncrier: ../ + :changelog_file: ../CHANGES.rst + :towncrier-skip-if-empty: diff --git a/docs/conf.py b/docs/conf.py index 378c02c3342..9a9d9866d81 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -60,6 +60,7 @@ "sphinx_design", "IPython.sphinxext.ipython_console_highlighting", "sphinx_gallery.gen_gallery", + "sphinx_changelog", ] diff --git a/environment.yml b/environment.yml index 23622147621..73149a38db5 100644 --- a/environment.yml +++ b/environment.yml @@ -40,6 +40,7 @@ dependencies: - pydata-sphinx-theme - sphinx-design - sphinxcontrib-bibtex + - sphinx_changelog - tomli - towncrier - tqdm diff --git a/pyproject.toml b/pyproject.toml index 1e0dd60d651..27c6cf0b7fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -88,6 +88,7 @@ docs = [ "sphinx-gallery >= 0.16.0", "sphinx_automodapi", "sphinxcontrib-bibtex", + "sphinx-changelog", "tomli; python_version < '3.11'", ]