未验证 提交 216c7f8d 编写于 作者: T Tink_Y 提交者: GitHub

Merge pull request #452 from tink2123/delete_en2zh_1

delete en2zn link
...@@ -86,7 +86,6 @@ class DocGenerator(object): ...@@ -86,7 +86,6 @@ class DocGenerator(object):
:noindex: :noindex:
'''.format(self.module_name, name)) '''.format(self.module_name, name))
self._print_cn_ref(name)
def print_method(self, name): def print_method(self, name):
self._print_ref_(name) self._print_ref_(name)
...@@ -95,7 +94,6 @@ class DocGenerator(object): ...@@ -95,7 +94,6 @@ class DocGenerator(object):
:noindex: :noindex:
'''.format(self.module_name, name)) '''.format(self.module_name, name))
self._print_cn_ref(name)
def _print_header_(self, name, dot, is_title): def _print_header_(self, name, dot, is_title):
dot_line = dot * len(name) dot_line = dot * len(name)
...@@ -111,9 +109,6 @@ class DocGenerator(object): ...@@ -111,9 +109,6 @@ class DocGenerator(object):
def _print_ref_(self, name): def _print_ref_(self, name):
self.stream.write(".. _api_{0}_{1}:\n\n".format("_".join( self.stream.write(".. _api_{0}_{1}:\n\n".format("_".join(
self.module_name.split(".")), name)) self.module_name.split(".")), name))
def _print_cn_ref(self, name):
self.stream.write("Read Chinese Version: :ref:`cn_api_{0}_{1}`\n\n".format("_".join(
self.module_name.split(".")),name))
def main(): def main():
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册