From 336baeee5ef0a0eb98cd99ee73efc93f30d856fc Mon Sep 17 00:00:00 2001 From: John Mandereau Date: Mon, 19 Feb 2007 15:33:25 +0100 Subject: [PATCH] Add .htaccess for content negotiation with documentation index --- buildscripts/www_post.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/buildscripts/www_post.py b/buildscripts/www_post.py index a8dc9b9ce0..09ae7b80fb 100644 --- a/buildscripts/www_post.py +++ b/buildscripts/www_post.py @@ -72,6 +72,12 @@ for t in targets: p = mirrortree.new_link_path (os.path.normpath (os.readlink (l)), os.path.dirname (l), strip_re) os.symlink (p, strip_file_name[t] (l)) +# need this for content negotiation with documentation index +if 'online' in targets: + f = open (os.path.join (target_pattern % 'online', 'Documentation/.htaccess'), 'w') + f.write ('#.htaccess\nDirectoryIndex index\n') + f.close () + add_html_footer.build_pages_dict (html_files) for t in targets: sys.stderr.write ("Processing HTML pages for %s target...\n" % t) -- 2.39.2