Skip to content

Commit

Permalink
Skip generation of .xhtml redirect stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfletch committed Dec 28, 2019
1 parent 5f206da commit e81584a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions directdocs/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,6 @@ def main():
data = stream.render('html')
open( os.path.join(OUTPUT_DIRECTORY,'index.html'), 'w').write( data )
base = 'index.html'
old_file = os.path.join(OUTPUT_DIRECTORY,'index.xhtml')
open( old_file, 'w' ).write(REDIRECT%locals())

for name,section in sorted(ref.sections.items()):
output_file = os.path.join( OUTPUT_DIRECTORY,ref.url(section))
Expand All @@ -351,9 +349,6 @@ def main():
open(
output_file, 'wb'
).write( data )
old_file = os.path.splitext( output_file )[0] + '.xhtml'
base = ref.url( section )
open( old_file, 'w' ).write(REDIRECT%locals())


# Now store out references for things which want to do Python: refsect
Expand Down

0 comments on commit e81584a

Please sign in to comment.