[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Automating the downloads web page

From: Julian Foad <julianfoad_at_apache.org>
Date: Fri, 25 Oct 2019 12:49:51 +0100

I'd like some suggestions or assistance.

Our tool 'release.py' can generate a block of HTML for the downloads
table for a new release:

[[[
$ release.py write-downloads 1.13.0
<p style=[...]>Apache Subversion 1.13.0</p>
<table class="centered">
[...]
   <td><a
href="[preferred]subversion/subversion-1.13.0.tar.bz2">subversion-1.13.0.tar.bz2</a></td>
[...]
</table>
]]]

How can we best insert this into 'downloads.html', at the right place?

So far, in my own tool 'svn-roll.sh' I have used some sed scripting to
search for the "right place" and replace text, but it is fragile and
incomplete: it works only as far as being provides a starting point for
manual editing.

I feel like we want either a scripted generation of the whole
'download.html' from a template, that we can re-run any time anything
changed and be sure it will DTRT; or else use dynamic inclusion within
'download.html' to fetch the relevant portions from somewhere. I feel
offline generation of a static HTML file is what we should prefer these
days. (At least relatively static, regarding inclusion of these tables;
right now I don't care if it will continue to use some dynamic elements
as well, such as CGI for mirror selection.)

Thoughts? Code?

- Julian
Received on 2019-10-25 13:49:53 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.