Преглед изворни кода

update: api支持情况的文档没有生成链接

Wendal Chen пре 2 година
родитељ
комит
ddbda988ee
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      tools/make_doc_file.py

+ 2 - 2
tools/make_doc_file.py

@@ -69,7 +69,7 @@ def make(path,modules,index_text):
 
         for module in modules:
             name = module["module"]
-            doc.write("|[{}]({}.html)|`{}`".format(name, name, module["summary"]))
+            doc.write("|[{}]({}.md)|`{}`".format(name, name, module["summary"]))
             for bsp in bsp_header_list:
                 if len(module["tag"]) == 0 :
                     doc.write("|?")
@@ -79,7 +79,7 @@ def make(path,modules,index_text):
                 else:
                     doc.write("|X")
             doc.write("|\n")
-    
+        doc.close()
     doc = open(path+"index.rst", "a+",encoding='utf-8')
     doc.write(index_text)
     # 创建toctree