[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
buildpages script for www.gnu.org/software/hurd
From: |
Reinhard Mueller |
Subject: |
buildpages script for www.gnu.org/software/hurd |
Date: |
22 Jan 2004 00:24:33 +0100 |
Hi all,
As announced, here is a proof of concept for a bash script to build the
HTML pages for hurd.gnu.org, as well as some sample files on how it
would be used.
The idea is, that the src/ directory contains:
* header.html - the header that is included at the very start of every
English page, including the menu and all such stuff.
* header.de.html - the header that is included at the very start of
every German page, including the menu and all such stuff
* header.??.html - the header that is included at the very start of
every page in language ??
* footer[.??].html - the footer of HTML pages
* <pagename>[.??].html - the content of the page <pagename> in the given
language, for example whatsnew.de.html or whatsnew.html for English.
The "buildpage" script rebuilds a single page from the building blocks
in the src directory.
The "buildpages" script rebuilds all pages of which the building blocks
are available in the src directory.
Special treatment: If the header or the footer contain the string "<!--
Languages -->", that part is replaced by a (GNU webpage style) list of
links to all languages in which the respective page is available. The
"buildpage" scripts automagically checks which other languages are
available for a given page and only generates links to translations that
really exist.
Still todo: some special treatment for the <TITLE> tag.
Comments are welcome. Please tell me if you think this is worth
developing further.
And yes, I really believe you can do *anything* in a shell script :-)
Thanks,
Reinhard
buildpages.tar.gz
Description: GNU Zip compressed data
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
- buildpages script for www.gnu.org/software/hurd,
Reinhard Mueller <=