Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
Include final year on x axis but no extra vertical line
  • Loading branch information
hugovk committed Jan 22, 2023
commit ceb57918d0c87db89b976fb20ebbb1db356e8285
2 changes: 1 addition & 1 deletion _tools/generate_release_cycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def format_year(year: int) -> str:
SCALE=SCALE,
diagram_width=DIAGRAM_WIDTH,
diagram_height=(len(self.sorted_versions) + 2) * LINE_HEIGHT,
years=range(first_date.year, last_date.year),
years=range(first_date.year, last_date.year + 1),
LINE_HEIGHT=LINE_HEIGHT,
versions=list(reversed(self.sorted_versions)),
today=dt.datetime.strptime(today, "%Y-%m-%d").date(),
Expand Down
2 changes: 2 additions & 0 deletions _tools/release_cycle_template.svg.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
>
{{ format_year(year) }}
</text>
{% if not loop.last %}
<line
class="release-cycle-year-line"
x1="{{ year_to_x(year + 1) * SCALE }}"
Expand All @@ -38,6 +39,7 @@
y2="{{ (diagram_height - LINE_HEIGHT) * SCALE }}"
font-size="{{ SCALE }}"
/>
{% endif %}
{% endfor %}

{% for version in versions %}
Expand Down
9 changes: 9 additions & 0 deletions include/release-cycle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.