ddnet/ddnet-web

Make ddnet releases linkable

Zwelf opened this issue · 1 comments

Zwelf commented

I would like to link a specific changelog item from the wiki. https://ddnet.tw/downloads/#11.3.1 should jump to the changelog item of 11.3.1, but a id is necessary on the headline. Necessary change for this:

-<h3>DDNet 11.3.1</h3>
+<h3 id="11.3.1">DDNet 11.3.1</h3>
def- commented
:%s/<h3>DDNet \(.*\)<\/h3>/<h3 id="\1"><a href="#\1">DDNet \1<\/a><\/h3>/g
:%s/id="\([0-9]*\)\.\([0-9]*\)\.[0-9]*/id="\1.\2/g
:%s/href="#\([0-9]*\)\.\([0-9]*\)\.[0-9]*/href="#\1.\2/g