You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.2 KiB

4 years ago
  1. #!/home/alpcentaur/ProjektA/PrototypeWebApp/venv/bin/python3.5
  2. # -*- coding: utf8 -*-
  3. # :Copyright: © 2015 Günter Milde.
  4. # :License: Released under the terms of the `2-Clause BSD license`_, in short:
  5. #
  6. # Copying and distribution of this file, with or without modification,
  7. # are permitted in any medium without royalty provided the copyright
  8. # notice and this notice are preserved.
  9. # This file is offered as-is, without any warranty.
  10. #
  11. # .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause
  12. #
  13. # Revision: $Revision: 7847 $
  14. # Date: $Date: 2015-03-17 18:30:47 +0100 (Di, 17 Mär 2015) $
  15. """
  16. A minimal front end to the Docutils Publisher, producing HTML 5 documents.
  17. The output also conforms to XHTML 1.0 transitional
  18. (except for the doctype declaration).
  19. """
  20. try:
  21. import locale # module missing in Jython
  22. locale.setlocale(locale.LC_ALL, '')
  23. except locale.Error:
  24. pass
  25. from docutils.core import publish_cmdline, default_description
  26. description = (u'Generates HTML 5 documents from standalone '
  27. u'reStructuredText sources '
  28. + default_description)
  29. publish_cmdline(writer_name='html5', description=description)