Skip to content

Commit

Permalink
Merge pull request #2657 from cta-observatory/sphinx-changelog
Browse files Browse the repository at this point in the history
Use sphinx-changelog
  • Loading branch information
maxnoe authored Nov 27, 2024
2 parents 055b62b + 9546ab9 commit 7a26885
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 5 additions & 1 deletion docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
Change Log
**********

.. include:: ../CHANGES.rst

.. changelog::
:towncrier: ../
:changelog_file: ../CHANGES.rst
:towncrier-skip-if-empty:
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"sphinx_design",
"IPython.sphinxext.ipython_console_highlighting",
"sphinx_gallery.gen_gallery",
"sphinx_changelog",
]


Expand Down
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ dependencies:
- pydata-sphinx-theme
- sphinx-design
- sphinxcontrib-bibtex
- sphinx_changelog
- tomli
- towncrier
- tqdm
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ docs = [
"sphinx-gallery >= 0.16.0",
"sphinx_automodapi",
"sphinxcontrib-bibtex",
"sphinx-changelog",
"tomli; python_version < '3.11'",
]

Expand Down

0 comments on commit 7a26885

Please sign in to comment.