Skip to content

Commit d5224da

Browse files
RobPasMuepre-commit-ci[bot]pyansys-ci-botPipKat
authored
docs: add release notes in our documentation (#1138)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: pyansys-ci-bot <pyansys.github.bot@ansys.com> Co-authored-by: Kathy Pippert <84872299+PipKat@users.noreply.github.com>
1 parent fdb38fc commit d5224da

File tree

9 files changed

+117
-83
lines changed

9 files changed

+117
-83
lines changed

CHANGELOG.md

Lines changed: 3 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,7 @@
11
# CHANGELOG
22

3-
This project uses [towncrier](https://towncrier.readthedocs.io/) to generate changelogs. You can see the changes for the upcoming release in the [changelog fragment directory](https://github.com/ansys/pyansys-geometry/tree/main/doc/changelog.d).
3+
This project uses [towncrier](https://towncrier.readthedocs.io/) to generate changelogs.
44

5-
<!-- towncrier release notes start -->
5+
Refer to the [raw release notes](doc/source/changelog.rst) for more information.
66

7-
## [0.5.0](https://github.com/ansys/pyansys-geometry/releases/tag/v0.5.0) - 2024-04-17
8-
9-
10-
### Added
11-
12-
- feat: inserting document into existing design [#930](https://github.com/ansys/pyansys-geometry/pull/930)
13-
- feat: add changelog action [#1023](https://github.com/ansys/pyansys-geometry/pull/1023)
14-
- feat: create a sphere body on the backend [#1035](https://github.com/ansys/pyansys-geometry/pull/1035)
15-
- feat: mirror a body [#1055](https://github.com/ansys/pyansys-geometry/pull/1055)
16-
- feat: sweeping chains and profiles [#1056](https://github.com/ansys/pyansys-geometry/pull/1056)
17-
- feat: vulnerability checks [#1071](https://github.com/ansys/pyansys-geometry/pull/1071)
18-
- feat: loft profiles [#1075](https://github.com/ansys/pyansys-geometry/pull/1075)
19-
- feat: accept bandit advisories in-line for subprocess [#1077](https://github.com/ansys/pyansys-geometry/pull/1077)
20-
- feat: adding containers to automatic launcher [#1090](https://github.com/ansys/pyansys-geometry/pull/1090)
21-
- feat: minor changes to Linux Dockerfile [#1111](https://github.com/ansys/pyansys-geometry/pull/1111)
22-
- feat: avoid error if folder exists [#1125](https://github.com/ansys/pyansys-geometry/pull/1125)
23-
24-
### Changed
25-
26-
- build: changing sphinx-autoapi from 3.1.a2 to 3.1.a4 [#1038](https://github.com/ansys/pyansys-geometry/pull/1038)
27-
- chore: add pre-commit.ci configuration [#1065](https://github.com/ansys/pyansys-geometry/pull/1065)
28-
- chore: dependabot PR automatic approval [#1067](https://github.com/ansys/pyansys-geometry/pull/1067)
29-
- ci: bump the actions group with 1 update [#1082](https://github.com/ansys/pyansys-geometry/pull/1082)
30-
- chore: update docker tags to be kept [#1085](https://github.com/ansys/pyansys-geometry/pull/1085)
31-
- chore: update pre-commit versions [#1094](https://github.com/ansys/pyansys-geometry/pull/1094)
32-
- build: use ansys-sphinx-theme autoapi target [#1097](https://github.com/ansys/pyansys-geometry/pull/1097)
33-
- fix: removing @PipKat from *.md files - changelog fragments [#1098](https://github.com/ansys/pyansys-geometry/pull/1098)
34-
- ci: dashboard upload does not apply anymore [#1099](https://github.com/ansys/pyansys-geometry/pull/1099)
35-
- chore: pre-commit.ci not working properly [#1108](https://github.com/ansys/pyansys-geometry/pull/1108)
36-
- chore: update and adding pre-commit.ci config hook [#1109](https://github.com/ansys/pyansys-geometry/pull/1109)
37-
- ci: main Python version update to 3.12 [#1112](https://github.com/ansys/pyansys-geometry/pull/1112)
38-
- ci: skip Linux tests with common approach [#1113](https://github.com/ansys/pyansys-geometry/pull/1113)
39-
- ci: build changelog on release [#1118](https://github.com/ansys/pyansys-geometry/pull/1118)
40-
- chore: update CHANGELOG for v0.5.0 [#1119](https://github.com/ansys/pyansys-geometry/pull/1119)
41-
42-
### Fixed
43-
44-
- feat: re-enable open file on Linux [#817](https://github.com/ansys/pyansys-geometry/pull/817)
45-
- fix: adapt export and download tests to new hoops [#1057](https://github.com/ansys/pyansys-geometry/pull/1057)
46-
- fix: linux Dockerfile - replace .NET6.0 references by .NET8.0 [#1069](https://github.com/ansys/pyansys-geometry/pull/1069)
47-
- fix: misleading docstring for sweep_chain() [#1070](https://github.com/ansys/pyansys-geometry/pull/1070)
48-
- fix: prepare_and_start_backend is only available on Windows [#1076](https://github.com/ansys/pyansys-geometry/pull/1076)
49-
- fix: unit tests failing after dms update [#1087](https://github.com/ansys/pyansys-geometry/pull/1087)
50-
- build: beartype upper limit on v0.18 [#1095](https://github.com/ansys/pyansys-geometry/pull/1095)
51-
- fix: improper types being passed for Face and Edge ctor. [#1096](https://github.com/ansys/pyansys-geometry/pull/1096)
52-
- fix: return type should be dict and not ``ScalarMapContainer`` (grpc type) [#1103](https://github.com/ansys/pyansys-geometry/pull/1103)
53-
- fix: env version for Dockerfile Windows [#1120](https://github.com/ansys/pyansys-geometry/pull/1120)
54-
- fix: changelog description ill-formatted [#1121](https://github.com/ansys/pyansys-geometry/pull/1121)
55-
- fix: solve issues with intersphinx when releasing [#1123](https://github.com/ansys/pyansys-geometry/pull/1123)
56-
57-
### Dependencies
58-
59-
- build: bump the docs-deps group with 2 updates [#1062](https://github.com/ansys/pyansys-geometry/pull/1062), [#1093](https://github.com/ansys/pyansys-geometry/pull/1093), [#1105](https://github.com/ansys/pyansys-geometry/pull/1105)
60-
- build: bump ansys-api-geometry from 0.3.13 to 0.4.0 [#1066](https://github.com/ansys/pyansys-geometry/pull/1066)
61-
- build: bump the docs-deps group with 1 update [#1080](https://github.com/ansys/pyansys-geometry/pull/1080)
62-
- build: bump pytest-cov from 4.1.0 to 5.0.0 [#1081](https://github.com/ansys/pyansys-geometry/pull/1081)
63-
- build: bump ansys-api-geometry from 0.4.0 to 0.4.1 [#1092](https://github.com/ansys/pyansys-geometry/pull/1092)
64-
- build: bump beartype from 0.17.2 to 0.18.2 [#1106](https://github.com/ansys/pyansys-geometry/pull/1106)
65-
- build: bump ansys-tools-path from 0.4.1 to 0.5.1 [#1107](https://github.com/ansys/pyansys-geometry/pull/1107)
66-
- build: bump panel from 1.4.0 to 1.4.1 in the docs-deps group [#1114](https://github.com/ansys/pyansys-geometry/pull/1114)
67-
- build: bump scipy from 1.12.0 to 1.13.0 [#1115](https://github.com/ansys/pyansys-geometry/pull/1115)
68-
69-
70-
### Miscellaneous
71-
72-
- [pre-commit.ci] pre-commit autoupdate [#1063](https://github.com/ansys/pyansys-geometry/pull/1063)
73-
- docs: add examples on new methods [#1089](https://github.com/ansys/pyansys-geometry/pull/1089)
74-
- chore: pre-commit automatic update [#1116](https://github.com/ansys/pyansys-geometry/pull/1116)
7+
[Published release notes](https://docs.pyansys.com/version/stable/changelog.html) can be found in the online documentation.

doc/changelog.d/1138.changed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docs: add release notes in our documentation

doc/changelog.d/changelog_template.jinja

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{% if sections[""] %}
22
{% for category, val in definitions.items() if category in sections[""] %}
33

4-
### {{ definitions[category]['name'] }}
4+
{{ definitions[category]['name'] }}
5+
{% set underline = '^' * definitions[category]['name']|length %}
6+
{{ underline }}
57

68
{% for text, values in sections[""][category].items() %}
79
- {{ text }} {{ values|join(', ') }}

doc/source/assets.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ The following wheelhouse files are available for download:
5151
Geometry service Docker container assets
5252
----------------------------------------
5353

54-
Build the latest Geometry service Docker container using the following assets. Instructions
55-
on how to build the containers are found at `Docker containers <getting_started/docker/index.html>`_.
54+
Build the latest Geometry service Docker container using the following assets. For
55+
information on how to build the container, see :ref:`Docker containers <ref_docker>`.
5656

5757
Currently, the Geometry service backend is mainly delivered as a **Windows** Docker container.
5858
However, these containers require a Windows machine to run them.

doc/source/changelog.rst

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
.. _ref_release_notes:
2+
3+
Release notes
4+
#############
5+
6+
This document contains the release notes for the PyAnsys Geometry project.
7+
8+
.. vale off
9+
10+
.. towncrier release notes start
11+
12+
`0.5.0 <https://github.com/ansys/pyansys-geometry/releases/tag/v0.5.0>`_ - 2024-04-17
13+
=====================================================================================
14+
15+
Added
16+
^^^^^
17+
18+
- feat: inserting document into existing design `#930 <https://github.com/ansys/pyansys-geometry/pull/930>`_
19+
- feat: add changelog action `#1023 <https://github.com/ansys/pyansys-geometry/pull/1023>`_
20+
- feat: create a sphere body on the backend `#1035 <https://github.com/ansys/pyansys-geometry/pull/1035>`_
21+
- feat: mirror a body `#1055 <https://github.com/ansys/pyansys-geometry/pull/1055>`_
22+
- feat: sweeping chains and profiles `#1056 <https://github.com/ansys/pyansys-geometry/pull/1056>`_
23+
- feat: vulnerability checks `#1071 <https://github.com/ansys/pyansys-geometry/pull/1071>`_
24+
- feat: loft profiles `#1075 <https://github.com/ansys/pyansys-geometry/pull/1075>`_
25+
- feat: accept bandit advisories in-line for subprocess `#1077 <https://github.com/ansys/pyansys-geometry/pull/1077>`_
26+
- feat: adding containers to automatic launcher `#1090 <https://github.com/ansys/pyansys-geometry/pull/1090>`_
27+
- feat: minor changes to Linux Dockerfile `#1111 <https://github.com/ansys/pyansys-geometry/pull/1111>`_
28+
- feat: avoid error if folder exists `#1125 <https://github.com/ansys/pyansys-geometry/pull/1125>`_
29+
30+
31+
Changed
32+
^^^^^^^
33+
34+
- build: changing sphinx-autoapi from 3.1.a2 to 3.1.a4 `#1038 <https://github.com/ansys/pyansys-geometry/pull/1038>`_
35+
- chore: add pre-commit.ci configuration `#1065 <https://github.com/ansys/pyansys-geometry/pull/1065>`_
36+
- chore: dependabot PR automatic approval `#1067 <https://github.com/ansys/pyansys-geometry/pull/1067>`_
37+
- ci: bump the actions group with 1 update `#1082 <https://github.com/ansys/pyansys-geometry/pull/1082>`_
38+
- chore: update docker tags to be kept `#1085 <https://github.com/ansys/pyansys-geometry/pull/1085>`_
39+
- chore: update pre-commit versions `#1094 <https://github.com/ansys/pyansys-geometry/pull/1094>`_
40+
- build: use ansys-sphinx-theme autoapi target `#1097 <https://github.com/ansys/pyansys-geometry/pull/1097>`_
41+
- fix: removing @PipKat from ``*.md`` files - changelog fragments `#1098 <https://github.com/ansys/pyansys-geometry/pull/1098>`_
42+
- ci: dashboard upload does not apply anymore `#1099 <https://github.com/ansys/pyansys-geometry/pull/1099>`_
43+
- chore: pre-commit.ci not working properly `#1108 <https://github.com/ansys/pyansys-geometry/pull/1108>`_
44+
- chore: update and adding pre-commit.ci config hook `#1109 <https://github.com/ansys/pyansys-geometry/pull/1109>`_
45+
- ci: main Python version update to 3.12 `#1112 <https://github.com/ansys/pyansys-geometry/pull/1112>`_
46+
- ci: skip Linux tests with common approach `#1113 <https://github.com/ansys/pyansys-geometry/pull/1113>`_
47+
- ci: build changelog on release `#1118 <https://github.com/ansys/pyansys-geometry/pull/1118>`_
48+
- chore: update CHANGELOG for v0.5.0 `#1119 <https://github.com/ansys/pyansys-geometry/pull/1119>`_
49+
50+
Fixed
51+
^^^^^
52+
53+
- feat: re-enable open file on Linux `#817 <https://github.com/ansys/pyansys-geometry/pull/817>`_
54+
- fix: adapt export and download tests to new hoops `#1057 <https://github.com/ansys/pyansys-geometry/pull/1057>`_
55+
- fix: linux Dockerfile - replace .NET6.0 references by .NET8.0 `#1069 <https://github.com/ansys/pyansys-geometry/pull/1069>`_
56+
- fix: misleading docstring for sweep_chain() `#1070 <https://github.com/ansys/pyansys-geometry/pull/1070>`_
57+
- fix: prepare_and_start_backend is only available on Windows `#1076 <https://github.com/ansys/pyansys-geometry/pull/1076>`_
58+
- fix: unit tests failing after dms update `#1087 <https://github.com/ansys/pyansys-geometry/pull/1087>`_
59+
- build: beartype upper limit on v0.18 `#1095 <https://github.com/ansys/pyansys-geometry/pull/1095>`_
60+
- fix: improper types being passed for Face and Edge ctor. `#1096 <https://github.com/ansys/pyansys-geometry/pull/1096>`_
61+
- fix: return type should be dict and not ``ScalarMapContainer`` (grpc type) `#1103 <https://github.com/ansys/pyansys-geometry/pull/1103>`_
62+
- fix: env version for Dockerfile Windows `#1120 <https://github.com/ansys/pyansys-geometry/pull/1120>`_
63+
- fix: changelog description ill-formatted `#1121 <https://github.com/ansys/pyansys-geometry/pull/1121>`_
64+
- fix: solve issues with intersphinx when releasing `#1123 <https://github.com/ansys/pyansys-geometry/pull/1123>`_
65+
66+
Dependencies
67+
^^^^^^^^^^^^
68+
69+
- build: bump the docs-deps group with 2 updates `#1062 <https://github.com/ansys/pyansys-geometry/pull/1062>`_, `#1093 <https://github.com/ansys/pyansys-geometry/pull/1093>`_, `#1105 <https://github.com/ansys/pyansys-geometry/pull/1105>`_
70+
- build: bump ansys-api-geometry from 0.3.13 to 0.4.0 `#1066 <https://github.com/ansys/pyansys-geometry/pull/1066>`_
71+
- build: bump the docs-deps group with 1 update `#1080 <https://github.com/ansys/pyansys-geometry/pull/1080>`_
72+
- build: bump pytest-cov from 4.1.0 to 5.0.0 `#1081 <https://github.com/ansys/pyansys-geometry/pull/1081>`_
73+
- build: bump ansys-api-geometry from 0.4.0 to 0.4.1 `#1092 <https://github.com/ansys/pyansys-geometry/pull/1092>`_
74+
- build: bump beartype from 0.17.2 to 0.18.2 `#1106 <https://github.com/ansys/pyansys-geometry/pull/1106>`_
75+
- build: bump ansys-tools-path from 0.4.1 to 0.5.1 `#1107 <https://github.com/ansys/pyansys-geometry/pull/1107>`_
76+
- build: bump panel from 1.4.0 to 1.4.1 in the docs-deps group `#1114 <https://github.com/ansys/pyansys-geometry/pull/1114>`_
77+
- build: bump scipy from 1.12.0 to 1.13.0 `#1115 <https://github.com/ansys/pyansys-geometry/pull/1115>`_
78+
79+
80+
Miscellaneous
81+
^^^^^^^^^^^^^
82+
83+
- [pre-commit.ci] pre-commit autoupdate `#1063 <https://github.com/ansys/pyansys-geometry/pull/1063>`_
84+
- docs: add examples on new methods `#1089 <https://github.com/ansys/pyansys-geometry/pull/1089>`_
85+
- chore: pre-commit automatic update `#1116 <https://github.com/ansys/pyansys-geometry/pull/1116>`_
86+
87+
.. vale on

doc/source/conf.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,17 +301,29 @@ def intersphinx_pyansys_geometry(switcher_version: str):
301301
latex_elements = {"preamble": latex.generate_preamble(html_title)}
302302
sd_fontawesome_latex = True
303303

304-
linkcheck_exclude_documents = ["index", "getting_started/local/index", "assets"]
304+
linkcheck_exclude_documents = ["index", "getting_started/local/index"]
305305
linkcheck_ignore = [
306-
r"https://github.com/ansys/pyansys-geometry-binaries/.*",
306+
r"https://github.com/ansys/pyansys-geometry-binaries",
307307
r"https://download.ansys.com/",
308308
r".*/examples/.*.py",
309309
r".*/examples/.*.ipynb",
310+
r"_static/assets/.*",
310311
]
311312

313+
# If we are on a release, we have to ignore the "release" URLs, since it is not
314+
# available until the release is published.
315+
if switcher_version != "dev":
316+
linkcheck_ignore.append(
317+
rf"https://github.com/ansys/pyansys-geometry/releases/download/v{__version__}/.*"
318+
) # noqa: E501
319+
linkcheck_ignore.append(
320+
f"https://github.com/ansys/pyansys-geometry/releases/tag/v{__version__}"
321+
) # noqa: E501
322+
312323
# User agent
313324
user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 Edg/123.0.2420.81" # noqa: E501
314325

326+
315327
# -- Declare the Jinja context -----------------------------------------------
316328
exclude_patterns = []
317329
BUILD_API = True if os.environ.get("BUILD_API", "true") == "true" else False

doc/source/getting_started/docker/windows_container.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,8 @@ There are two build modes:
112112
is being built.
113113

114114
* **Build from available binaries**: This mode builds the Docker image using
115-
the binaries available in the ``ansys/pyansys-geometry-binaries`` repository.
115+
the binaries available in the `ansys/pyansys-geometry-binaries <https://github.com/ansys/pyansys-geometry-binaries>`_ repository.
116116
If you do not have access to this repository, you can only use the first mode.
117-
Link to the binaries repository: https://github.com/ansys/pyansys-geometry-binaries/
118117

119118
Prerequisites
120119
~~~~~~~~~~~~~
@@ -159,7 +158,7 @@ Prior to building your image, follow these steps:
159158
* Download the `latest Windows Dockerfile <https://github.com/ansys/pyansys-geometry/blob/main/docker/windows/Dockerfile>`_.
160159

161160
* Download the `latest release artifacts for the Windows
162-
Docker container (ZIP file) for your version <https://github.com/ansys/pyansys-geometry-binaries/>`_.
161+
Docker container (ZIP file) for your version <https://github.com/ansys/pyansys-geometry-binaries>`_.
163162

164163
.. note::
165164

doc/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,4 @@ PyAnsys Geometry is a Python client library for the Ansys Geometry service.
7777
{% endif %}
7878
contributing
7979
assets
80+
changelog

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,11 @@ testpaths = ["tests"]
131131

132132
[tool.towncrier]
133133
directory = "doc/changelog.d"
134-
filename = "CHANGELOG.md"
135-
start_string = "<!-- towncrier release notes start -->\n"
136-
underlines = ["", "", ""]
134+
filename = "doc/source/changelog.rst"
137135
template = "doc/changelog.d/changelog_template.jinja"
138-
title_format = "## [{version}](https://github.com/ansys/pyansys-geometry/releases/tag/v{version}) - {project_date}"
139-
issue_format = "[#{issue}](https://github.com/ansys/pyansys-geometry/pull/{issue})"
136+
start_string = ".. towncrier release notes start\n"
137+
title_format = "`{version} <https://github.com/ansys/pyansys-geometry/releases/tag/v{version}>`_ - {project_date}"
138+
issue_format = "`#{issue} <https://github.com/ansys/pyansys-geometry/pull/{issue}>`_"
140139

141140
[[tool.towncrier.type]]
142141
directory = "added"

0 commit comments

Comments
 (0)