Skip to content

Commit

Permalink
change: API文档不再显示适配的模组型号
Browse files Browse the repository at this point in the history
  • Loading branch information
wendal committed Jan 15, 2025
1 parent f992dbe commit 1b1f846
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions tools/make_doc_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,18 +101,18 @@ def make(path,modules,index_text):
mdoc.write("# "+module["module"]+" - "+module["summary"]+"\n\n")

#支持的芯片
mdoc.write(get_tags(module["tag"]))
mdoc.write("\n\n")

if len(module["url"]) > 0:
mdoc.write("```{note}\n本页文档由[这个文件]("+module["url"]+")自动生成。如有错误,请提交issue或帮忙修改后pr,谢谢!\n```\n\n")

if len(module["demo"]) > 0:
mdoc.write("```{tip}\n本库有专属demo,[点此链接查看"+module["module"]+"的demo例子]("+module["demo"]+")\n```\n")
if len(module["video"]) > 0:
mdoc.write("```{tip}\n本库还有视频教程,[点此链接查看]("+module["video"]+")\n```\n\n")
else:
mdoc.write("\n")
# mdoc.write(get_tags(module["tag"]))
# mdoc.write("\n\n")

# if len(module["url"]) > 0:
# mdoc.write("```{note}\n本页文档由[这个文件]("+module["url"]+")自动生成。如有错误,请提交issue或帮忙修改后pr,谢谢!\n```\n\n")

# if len(module["demo"]) > 0:
# mdoc.write("```{tip}\n本库有专属demo,[点此链接查看"+module["module"]+"的demo例子]("+module["demo"]+")\n```\n")
# if len(module["video"]) > 0:
# mdoc.write("```{tip}\n本库还有视频教程,[点此链接查看]("+module["video"]+")\n```\n\n")
# else:
# mdoc.write("\n")

if len(module["usage"]) > 0:
mdoc.write("**示例**\n\n")
Expand Down

0 comments on commit 1b1f846

Please sign in to comment.