py2docfx 0.1.7rc1720171__py3-none-any.whl → 0.1.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,6 +11,7 @@ import return_type_utils
11
11
  from docutils import nodes
12
12
  from sphinx import addnodes
13
13
  from sphinx.addnodes import desc_signature,desc_content
14
+ from sphinx.util import logging
14
15
  from sphinx.util.docfields import _is_single_paragraph
15
16
  from collections import OrderedDict
16
17
  from nodes import remarks
@@ -25,6 +26,8 @@ ATTRIBUTE_TYPE = 'attribute'
25
26
  types_contain_constructor = {CLASS_TYPE, EXCEPTION_TYPE}
26
27
  types_contain_attributes = {CLASS_TYPE, EXCEPTION_TYPE}
27
28
 
29
+ logger = logging.getLogger(__name__)
30
+
28
31
  def translator(app, docname, doctree):
29
32
 
30
33
  transform_node = app.docfx_transform_node
@@ -64,8 +67,7 @@ def translator(app, docname, doctree):
64
67
  module = node[0].attributes['module']
65
68
  full_name = node[0].attributes['fullname']
66
69
  except KeyError as e:
67
- print(
68
- "[docfx_yaml] There maybe some syntax error in docstring near: " + node.astext())
70
+ logger.error("There maybe some syntax error in docstring near: " + node.astext())
69
71
  raise e
70
72
 
71
73
  uid = '{module}.{full_name}'.format(module=module, full_name=full_name)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py2docfx
3
- Version: 0.1.7rc1720171
3
+ Version: 0.1.8
4
4
  Summary: A package built based on Sphinx which download source code package and generate yaml files supported by docfx.
5
5
  Author: Microsoft Corporation
6
6
  License: MIT License
@@ -67,7 +67,7 @@ py2docfx/docfx_yaml/parameter_utils.py,sha256=zGSIQrUfbXf9PUK-W_1K83Uo5Zk797Zlze
67
67
  py2docfx/docfx_yaml/process_doctree.py,sha256=Ve5kYoxmsJ-lq_UvfB5fldN87Nrtlm0APF0IGHWCrYg,17663
68
68
  py2docfx/docfx_yaml/return_type_utils.py,sha256=nmdCUOvwdYk2jF6RqmOvU6gjXmXUTPUeCqyHPdKZNUQ,7483
69
69
  py2docfx/docfx_yaml/settings.py,sha256=JQZNwFebczl-zn8Yk2taAGANRi-Hw8hywtDWxqXXFyQ,373
70
- py2docfx/docfx_yaml/translator.py,sha256=li20Sdu-j1V7oK1iaxWw9mo0KSJOlh4FLSnwmu6UxBQ,25912
70
+ py2docfx/docfx_yaml/translator.py,sha256=IXxrOEF2L1gZjGciimyrNHRHQUf1Xy3vr2UUR5i2vyM,25961
71
71
  py2docfx/docfx_yaml/utils.py,sha256=m5jC_qP2NKqzUx_z0zgZ-HAmxQdNTpJYKkL_F9vGeII,1555
72
72
  py2docfx/docfx_yaml/write_utils.py,sha256=q5qoYWw6GVDV8a3E8IxcSLWnN9sAer42VFRgadHBkgk,305
73
73
  py2docfx/docfx_yaml/writer.py,sha256=BQ02TshJM7O53_n07i_DJ-WtI7PYNyBJ2OLzivq4iiA,35037
@@ -123,7 +123,7 @@ py2docfx/docfx_yaml/tests/roots/test-writer-uri/conf.py,sha256=avcbnIOV2mlGQwhMQ
123
123
  py2docfx/docfx_yaml/tests/roots/test-writer-versions/code_with_version_directives.py,sha256=UuizbrJPaG_PcaH18BvbI9KQevOaLd4SslpnzMSqcrE,1030
124
124
  py2docfx/docfx_yaml/tests/roots/test-writer-versions/conf.py,sha256=SCEKrm9VigArfdgf-GAieJD-40d0ctT6urmGIjFOZLM,404
125
125
  py2docfx/docfx_yaml/tests/utils/test_utils.py,sha256=d0OYSUQ6NyoZx5mlLdNGGNhiNmmQhjVT4hQ6jY3VE_M,3383
126
- py2docfx-0.1.7rc1720171.dist-info/METADATA,sha256=39sfKM40cLRFLEA19clc6CP8GnQR6EMT4plgHM5fFCU,599
127
- py2docfx-0.1.7rc1720171.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
128
- py2docfx-0.1.7rc1720171.dist-info/top_level.txt,sha256=5dH2uP81dczt_qQJ38wiZ-gzoVWasfiJALWRSjdbnYU,9
129
- py2docfx-0.1.7rc1720171.dist-info/RECORD,,
126
+ py2docfx-0.1.8.dist-info/METADATA,sha256=JqqrC37XuXJJpC2IeIMtl3Jgcsd03ZSanT_X_tvCisg,590
127
+ py2docfx-0.1.8.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
128
+ py2docfx-0.1.8.dist-info/top_level.txt,sha256=5dH2uP81dczt_qQJ38wiZ-gzoVWasfiJALWRSjdbnYU,9
129
+ py2docfx-0.1.8.dist-info/RECORD,,