summaryrefslogtreecommitdiff
path: root/docs/_ext
diff options
context:
space:
mode:
authorrebortg <github@ghlr.de>2021-02-15 20:43:53 +0100
committerrebortg <github@ghlr.de>2021-02-15 20:48:54 +0100
commit4a1d98fb71683ead80743b02a8ae7840732e6222 (patch)
tree1d131771d2e9b4ea24f9c8cba37a21c5165186b5 /docs/_ext
parent68bc5990bfb62a1720bac35660a61b740aabc519 (diff)
downloadvyos-documentation-4a1d98fb71683ead80743b02a8ae7840732e6222.tar.gz
vyos-documentation-4a1d98fb71683ead80743b02a8ae7840732e6222.zip
Releasenotes: change to proper date format, add comment
(cherry picked from commit 5c971e4bae2f7ae8d39caf0bce34b18298b1e3be)
Diffstat (limited to 'docs/_ext')
-rw-r--r--docs/_ext/releasenotes.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/docs/_ext/releasenotes.py b/docs/_ext/releasenotes.py
index 4bc05e1b..4db65c86 100644
--- a/docs/_ext/releasenotes.py
+++ b/docs/_ext/releasenotes.py
@@ -22,14 +22,14 @@ for project in projects.response['data']:
projects = {
'equuleus': {
'phid': 'PHID-PROJ-zu26ui4vbmvykpjtepij',
- 'name': 'VyOS 1.3 Equuleus',
+ 'name': '1.3 Equuleus',
'filename': 'docs/changelog/1.3.rst',
'tasks': [],
'releasenotes': []
},
'current': {
'phid': 'PHID-PROJ-m4utvy456e2shcprpq3b',
- 'name': 'VyOS 1.4 Sagitta',
+ 'name': '1.4 Sagitta',
'filename': 'docs/changelog/1.4.rst',
'tasks': [],
'releasenotes': []
@@ -71,7 +71,7 @@ for project in projects:
releasenote = {}
releasenote['type'] = task['fields']['subtype']
date = datetime.fromtimestamp(task['fields']['dateClosed'])
- releasenote['closedate'] = date.strftime('%Y%m%d')
+ releasenote['closedate'] = date.strftime('%Y-%m-%d')
releasenote['name'] = task['fields']['name']
releasenote['id'] = task['id']
#print(f"{project}: {task['fields']['status']} {task['id']}")
@@ -87,6 +87,12 @@ for project in projects:
rst_text += "#" * len(projects[project]['name'])
rst_text += "\n"
+ rst_text += "\n"
+ rst_text += "..\n"
+ rst_text += " Please don't add anything by hand.\n"
+ rst_text += " This file is managed by the script:\n"
+ rst_text += " _ext/releasenotes.py\n"
+
date = None
for rn in projects[project]['releasenotes']:
if date != rn['closedate']: