Update release notes link for new website
On the new website the URL is:
https://www.gerritcodereview.com/2.14.html
instead of:
https://www.gerricodereview.com/releases/2.14.md
Remove the /releases/ path and replace .md with .html.
Also the patch release anchors named "#2.14.1" no longer work and are
replaced with "#2141". Strip the dots out when generating the anchor.
Change-Id: I866aa3e2036bb379849ac4b341a9fccffa4f2855
diff --git a/release-announcement-template.txt b/release-announcement-template.txt
index 2702f57..e2df6df 100644
--- a/release-announcement-template.txt
+++ b/release-announcement-template.txt
@@ -1,7 +1,7 @@
Gerrit version {{ data.version }} is now available.{% if data.summary %} {{ data.summary }} {% endif %}Please see the release notes for details.
Release Notes:
-https://www.gerritcodereview.com/releases/{{ data.version.major }}.md{% if data.version.patch %}#{{ data.version.patch }}{% endif %}
+https://www.gerritcodereview.com/{{ data.version.major }}.html{% if data.version.patch %}#{{ data.version.patch }}{% endif %}
Documentation:
http://gerrit-documentation.storage.googleapis.com/Documentation/{{ data.version }}/index.html
diff --git a/release-announcement.py b/release-announcement.py
index a9fd935..7b74770 100755
--- a/release-announcement.py
+++ b/release-announcement.py
@@ -73,7 +73,7 @@
parts = version.split('.')
if len(parts) > 2:
self.major = ".".join(parts[:2])
- self.patch = version
+ self.patch = version.replace(".", "")
else:
self.major = version
self.patch = None