diff options
Diffstat (limited to 'sandbox/gschwant/docfactory/createdoc.py')
-rw-r--r-- | sandbox/gschwant/docfactory/createdoc.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/sandbox/gschwant/docfactory/createdoc.py b/sandbox/gschwant/docfactory/createdoc.py deleted file mode 100644 index 6f57dec48..000000000 --- a/sandbox/gschwant/docfactory/createdoc.py +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env python - -""" -:author: Dr. Gunnar Schwant -:contact: g.schwant@gmx.de -:version: 0.2.1 -""" - -import glob, os, webbrowser -from docutils.core import publish_cmdline - -def convert(): - for file in glob.glob('*.txt'): - htmlfile = '%s.html' % os.path.splitext(file)[0] - print '%s --> %s' % (file, htmlfile) - publish_cmdline(writer_name='html', - argv = [file, htmlfile]) - -if __name__=='__main__': - print '\nGenerating HTML ...\n' - convert() - os.chdir('doc') - convert() - print '\nOpen doc/index.html with default webbrowser ...\n' - webbrowser.open('index.html') |