Skip to content
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

feat: add whatsnew options #583

Open
wants to merge 88 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 84 commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
7ebb547
fix: add code
Revathyvenugopal162 Oct 15, 2024
4bdd038
fix: update the html files
Revathyvenugopal162 Oct 15, 2024
9873691
fix: update the events
Revathyvenugopal162 Oct 15, 2024
307315f
fix: update the styles
Revathyvenugopal162 Oct 15, 2024
1b1fd86
fix: update
Revathyvenugopal162 Oct 15, 2024
4f61280
fix: update the styles
Revathyvenugopal162 Oct 29, 2024
d56e39e
fix: update the styles
Revathyvenugopal162 Oct 29, 2024
9450df6
Merge branch 'main' into fix/whatsnew
Revathyvenugopal162 Oct 31, 2024
1534c65
chore: adding changelog file 574.miscellaneous.md [dependabot-skip]
pyansys-ci-bot Oct 31, 2024
e9cd3b7
Merge branch 'main' into fix/whatsnew
Revathyvenugopal162 Oct 31, 2024
3e555eb
test: whatsnew
Revathyvenugopal162 Nov 4, 2024
0a7ea4f
fix: testing
Revathyvenugopal162 Nov 4, 2024
97b05ce
fix more template
Revathyvenugopal162 Nov 5, 2024
e53147a
fix: add whatsnew
Revathyvenugopal162 Nov 7, 2024
17a853b
fix: add the release notes
Revathyvenugopal162 Nov 7, 2024
7272126
fix: spacing
Revathyvenugopal162 Nov 7, 2024
123ad83
Merge branch 'main' into fix/whatsnew
Revathyvenugopal162 Nov 7, 2024
f93e3f0
Merge branch 'fix/whatsnew' into fix/jinja-template-testing
Revathyvenugopal162 Nov 7, 2024
3a53b08
fix: whatsnew
Revathyvenugopal162 Nov 7, 2024
282c04c
chore: adding changelog file 583.documentation.md [dependabot-skip]
pyansys-ci-bot Nov 7, 2024
0db35d3
fix: vale
Revathyvenugopal162 Nov 7, 2024
8aa794c
Merge branch 'fix/jinja-template-testing' of https://github.com/ansys…
Revathyvenugopal162 Nov 7, 2024
302efaa
fix: vale
Revathyvenugopal162 Nov 7, 2024
24efa32
fix: header levels
Revathyvenugopal162 Nov 12, 2024
968d0c2
Merge branch 'main' into fix/jinja-template-testing
Revathyvenugopal162 Nov 13, 2024
4b587e2
fix: test with style
Revathyvenugopal162 Nov 13, 2024
9428fa9
fix: add templates
Revathyvenugopal162 Nov 13, 2024
c7dfd61
Merge branch 'fix/jinja-template-testing' of https://github.com/ansys…
Revathyvenugopal162 Nov 13, 2024
7bc10be
fix: cleanup the code
Revathyvenugopal162 Nov 15, 2024
6a1333b
Merge branch 'main' into fix/jinja-template-testing
Revathyvenugopal162 Nov 15, 2024
3ba40c1
fix: checkout the repo
Revathyvenugopal162 Nov 15, 2024
ed58f53
Merge branch 'fix/jinja-template-testing' of https://github.com/ansys…
Revathyvenugopal162 Nov 15, 2024
0659f57
chore: adding changelog file 583.documentation.md [dependabot-skip]
pyansys-ci-bot Nov 15, 2024
67d4468
Update pyproject.toml
Revathyvenugopal162 Nov 15, 2024
b0b9d5c
Apply suggestions from code review
Revathyvenugopal162 Nov 18, 2024
e942c61
fix: update templates and remove releasenote.rst
Revathyvenugopal162 Nov 18, 2024
e8b8d60
Merge branch 'fix/jinja-template-testing' of https://github.com/ansys…
Revathyvenugopal162 Nov 18, 2024
a598183
fix: update underline
Revathyvenugopal162 Nov 18, 2024
122c850
fix: rename whatsnew_contents o whatsnew
Revathyvenugopal162 Nov 18, 2024
a9951a2
Merge branch 'main' into fix/jinja-template-testing
Revathyvenugopal162 Dec 6, 2024
c01c80d
feat: update the template
Revathyvenugopal162 Dec 11, 2024
5bb7efa
only change changelog format in template & parse docs in __init__ file
klmcadams Dec 16, 2024
3398094
clean up code
klmcadams Dec 16, 2024
0bb5cd3
add whatsnew.yml
klmcadams Dec 17, 2024
a492272
fix: add the doctree read
Revathyvenugopal162 Dec 17, 2024
5037b72
Merge branch 'fix/jinja-template-testing' of https://github.com/ansys…
Revathyvenugopal162 Dec 17, 2024
3323868
add minor version section titles
klmcadams Dec 17, 2024
cb62c4a
add what's new sections under corresponding minor versions
klmcadams Dec 17, 2024
e40315b
add dropdowns to whatsnew sections
klmcadams Dec 19, 2024
819adcd
literal block testing
klmcadams Dec 20, 2024
ce304bb
add code blocks to whatsnew dropdowns
klmcadams Jan 6, 2025
34e4e57
create separate function for code block generation & fix loop
klmcadams Jan 7, 2025
f603187
fix next(iterator) issue and rename function
klmcadams Jan 10, 2025
8c397e9
adjust code block and paragraph generation & update whatsnew.yml file
klmcadams Jan 14, 2025
ddaa4dc
handle all paragraph lines within fill_paragraph and update whatsnew.yml
klmcadams Jan 14, 2025
427f728
add comments and docstrings to functions
klmcadams Jan 14, 2025
ac518b6
add example strings for code that could be confusing
klmcadams Jan 14, 2025
f1ccdeb
add line specifying which version the fragment is available in
klmcadams Jan 14, 2025
1448b4a
Merge branch 'main' into fix/jinja-template-testing
klmcadams Jan 15, 2025
ab2bc8a
add PyYAML dependency to doc & changelog
klmcadams Jan 15, 2025
dc89dc6
chore: adding changelog file 583.miscellaneous.md [dependabot-skip]
pyansys-ci-bot Jan 15, 2025
d9373ee
update init header and fix link in whatsnew.yml
klmcadams Jan 15, 2025
2a627e6
adjust what's new sidebar
klmcadams Jan 16, 2025
2ab588a
fix license file?
klmcadams Jan 16, 2025
6114083
Merge branch 'main' into fix/jinja-template-testing
Revathyvenugopal162 Jan 17, 2025
01a24b5
fix: change the sidebar
Revathyvenugopal162 Jan 17, 2025
1a519e9
parse version sections more concisely
klmcadams Jan 17, 2025
b24c784
Add documentation for the what's new option
klmcadams Jan 20, 2025
4d795b4
fix doc build errors?
klmcadams Jan 20, 2025
ac9232a
skip whatsnew functions if section dne in conf.py
klmcadams Jan 20, 2025
df70429
don't filter number of content in what's new sidebar by default
klmcadams Jan 21, 2025
e58455f
check if assets is defined
klmcadams Jan 21, 2025
dadd212
check if page_assets are defined
klmcadams Jan 21, 2025
150b3f3
move changelog jinja template changes to other PR
klmcadams Jan 21, 2025
0ad5d33
remove whatsnew.yml
klmcadams Jan 21, 2025
ec2a109
don't lstrip lines within dictionary curly brackets
klmcadams Jan 21, 2025
f360156
require whatsnew & changelog file names and sidebar pages
klmcadams Jan 21, 2025
4116691
take local path for changelog & whatsnew files
klmcadams Jan 21, 2025
f0ab9e5
remove whatsnew config from conf.py
klmcadams Jan 21, 2025
c752b7f
fix adding whatsnew sidebar
klmcadams Jan 21, 2025
536f014
execute functions if whatsnew options exist in conf.py
klmcadams Jan 22, 2025
0284e84
chore: adding changelog file 583.maintenance.md [dependabot-skip]
pyansys-ci-bot Jan 22, 2025
8a9288d
add docstrings to functions
klmcadams Jan 22, 2025
9910f35
Merge branch 'fix/jinja-template-testing' of https://github.com/ansys…
klmcadams Jan 22, 2025
73cb5f5
add .gitattributes file
klmcadams Jan 27, 2025
7b0afff
try to fix line endings in conf.py
klmcadams Jan 27, 2025
151c8c0
fix line endings in __init__ file
klmcadams Jan 27, 2025
548f25f
apply suggestion
klmcadams Jan 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,19 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: "Setup python"
uses: actions/setup-python@v5
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}

- name: "Checkout repo"
uses: actions/checkout@v4

- name: "Install dependencies"
run: |
python -m pip install --upgrade pip
pip install -e .[changelog]
jorgepiloto marked this conversation as resolved.
Show resolved Hide resolved

- uses: ansys/actions/doc-changelog@v8
if: ${{ github.event_name == 'pull_request' }}
with:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ repos:
- id: check-github-workflows

- repo: https://github.com/ansys/pre-commit-hooks
rev: v0.4.4
rev: v0.5.1
hooks:
- id: add-license-headers
files: '(src|doc/source/examples)/.*\.(py)'
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/583.maintenance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
feat: add whatsnew options
34 changes: 17 additions & 17 deletions doc/changelog.d/changelog_template.jinja
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{% if sections[""] %}
{% for category, val in definitions.items() if category in sections[""] %}

{{ definitions[category]['name'] }}
{% set underline = '^' * definitions[category]['name']|length %}
{{ underline }}

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

{% endfor %}
{% else %}
No significant changes.


{% endif %}
{% if sections[""] %}
{% for category, val in definitions.items() if category in sections[""] %}
{{ definitions[category]['name'] }}
{% set underline = '^' * definitions[category]['name']|length %}
{{ underline }}
{% for text, values in sections[""][category].items() %}
- {{ text }} {{ values|join(', ') }}
{% endfor %}
{% endfor %}
{% else %}
No significant changes.
{% endif %}
Binary file added doc/source/_static/whatsnew_section.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/source/_static/whatsnew_sidebar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions doc/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@

.. _ref_release_notes:

Release notes
#############

This document contains the release notes for the project.

.. vale off

.. towncrier release notes start
Expand Down
Loading
Loading