gooderp18绿色标准版
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.

34 satır
1.1KB

  1. #!C:\odoobuild\WinPy64\python-3.12.3.amd64\python.exe
  2. # :Copyright: © 2015 Günter Milde.
  3. # :License: Released under the terms of the `2-Clause BSD license`_, in short:
  4. #
  5. # Copying and distribution of this file, with or without modification,
  6. # are permitted in any medium without royalty provided the copyright
  7. # notice and this notice are preserved.
  8. # This file is offered as-is, without any warranty.
  9. #
  10. # .. _2-Clause BSD license: https://opensource.org/licenses/BSD-2-Clause
  11. #
  12. # Revision: $Revision: 9021 $
  13. # Date: $Date: 2022-03-04 16:54:22 +0100 (Fr, 04. Mär 2022) $
  14. """
  15. A minimal front end to the Docutils Publisher, producing HTML 5 documents.
  16. The output is also valid XML.
  17. """
  18. try:
  19. import locale # module missing in Jython
  20. locale.setlocale(locale.LC_ALL, '')
  21. except locale.Error:
  22. pass
  23. from docutils.core import publish_cmdline, default_description
  24. description = ('Generates HTML5 documents from standalone '
  25. 'reStructuredText sources.\n'
  26. + default_description)
  27. publish_cmdline(writer_name='html5', description=description)
上海开阖软件有限公司 沪ICP备12045867号-1