浏览代码

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