]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - dotfiles2html/dotfiles2html.py
Add an alternate link to the plain text version.
[phdru.name/phdru.name.git] / dotfiles2html / dotfiles2html.py
index f13e4dcaa95ed9c8262ebdaa99d78cf0d27203c0..4d4d0165bdb7cd90165bbf88bc2a90857835bc44 100755 (executable)
@@ -1,5 +1,12 @@
 #! /usr/local/bin/python -O
 
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg BroytMann <phd@phd.pp.ru>"
+__copyright__ = "Copyright (C) 2004-2006 PhiloSoft Design"
+
+
 import os, shutil
 os.umask(0022) # octal; -rw-r--r--
 
@@ -27,6 +34,7 @@ def add_headers(fname, prev, next):
       html_file.write("#attr $Prev = \"%s.html\"\n" % prev)
    if next:
       html_file.write("#attr $Next = \"%s.html\"\n" % next)
+   html_file.write('#attr $alternates = (("text/plain", "Plain text version", "%s"),)' % fname)
    html_file.write("\n")
    html_file.write("#def body_html\n")
    html_file.write("#raw\n")