/scripts/rst2html.py

https://bitbucket.org/cistrome/cistrome-harvard/ · Python · 25 lines · 9 code · 7 blank · 9 comment · 1 complexity · 9fbce8e4637d06b97f20108dbf7a8f0e MD5 · raw file

  1. #!/usr/bin/env python
  2. # Author: David Goodger
  3. # Contact: goodger@users.sourceforge.net
  4. # Revision: $Revision: 1.2 $
  5. # Date: $Date: 2004/03/28 15:39:27 $
  6. # Copyright: This module has been placed in the public domain.
  7. """
  8. A minimal front end to the Docutils Publisher, producing HTML.
  9. """
  10. try:
  11. import locale
  12. locale.setlocale(locale.LC_ALL, '')
  13. except:
  14. pass
  15. from docutils.core import publish_cmdline, default_description
  16. description = ('Generates (X)HTML documents from standalone reStructuredText '
  17. 'sources. ' + default_description)
  18. publish_cmdline(writer_name='html', description=description)