]> git.phdru.name Git - phdru.name/phdru.name.git/commitdiff
Add an alternate link to the plain text version.
authorOleg Broytman <phd@phdru.name>
Thu, 30 Mar 2006 20:39:41 +0000 (20:39 +0000)
committerOleg Broytman <phd@phdru.name>
Thu, 30 Mar 2006 20:39:41 +0000 (20:39 +0000)
git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@44 7bb0bf08-9e0d-0410-b083-99cee3bf18b8

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")