Skip to content

Commit e6b41d3

Browse files
authored
Find newest release notes (#156)
* bazel: remove redundant import bazelrc from home is included by default unless explicitly defined otherwise * docs: find newest release notes always newest release notes linked
1 parent 772e515 commit e6b41d3

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

.bazelrc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,3 @@ coverage --combined_report=lcov
7979

8080
# user specific overrides (like proxy settings)
8181
try-import %workspace%/user.bazelrc
82-
83-
# Try import setting from home (CI setup-bazel action for caching uses this to provide proper args like --disk-cache)
84-
try-import ~/.bazelrc

docs/index.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,23 @@
1515
Reference Integration Documentation
1616
===================================
1717

18-
Newest Release Notes: :need:`doc__score_v06_release_note`
18+
Newest Release Notes
19+
--------------------
1920

21+
.. needlist::
22+
import re
2023

24+
all_release_notes = []
25+
26+
for need in needs:
27+
if "wp__platform_sw_release_note" in need["realizes"]:
28+
all_release_notes.append(need)
29+
30+
newest_release_note = max(all_release_notes, key=lambda s: int(re.search(r'v(\d+)', s["id"]).group(1)))
31+
results = [newest_release_note]
32+
33+
Explore the documentation
34+
-------------------------
2135
.. toctree::
2236
:caption: Software Components
2337
:titlesonly:

0 commit comments

Comments
 (0)