Просмотр исходного кода

update: 接口文档也加上emoji

chenxuuu 3 лет назад
Родитель
Сommit
3d0681e509
2 измененных файлов с 3 добавлено и 3 удалено
  1. 2 2
      tools/documentGenerator.py
  2. 1 1
      tools/sys_pub.py

+ 2 - 2
tools/documentGenerator.py

@@ -55,7 +55,7 @@ s = io.open(snippet_path,"w")
 s.write(json.dumps(snippet))
 s.write(json.dumps(snippet))
 s.close()
 s.close()
 
 
-make_doc_file.make("../../luatos-wiki/api/",modules,"LuatOS-SOC接口文档\n"+
+make_doc_file.make("../../luatos-wiki/api/",modules,"🍴 LuatOS-SOC接口文档\n"+
                                                     "==============\n\n"+
                                                     "==============\n\n"+
                                                     "请点击左侧列表,查看各个接口。如需搜索,请直接使用搜索框进行搜索。\n\n"+
                                                     "请点击左侧列表,查看各个接口。如需搜索,请直接使用搜索框进行搜索。\n\n"+
                                                     ".. toctree::\n\n")
                                                     ".. toctree::\n\n")
@@ -66,7 +66,7 @@ make_doc_file.make("../../luatos-wiki/api/",modules,"LuatOS-SOC接口文档\n"+
 modules = api_get.get_modules(api_get.get_file_list([source_path+"/../script/libs"]))
 modules = api_get.get_modules(api_get.get_file_list([source_path+"/../script/libs"]))
 modules.extend(api_get.get_modules(api_get.get_file_list([source_path+"/../script/libs"],".lua"),"--[[","]]"))
 modules.extend(api_get.get_modules(api_get.get_file_list([source_path+"/../script/libs"],".lua"),"--[[","]]"))
 
 
-make_doc_file.make("../../luatos-wiki/api/libs/",modules,"社区库接口文档\n"+
+make_doc_file.make("../../luatos-wiki/api/libs/",modules,"🥢 社区库接口文档\n"+
                                                         "==============\n\n"+
                                                         "==============\n\n"+
                                                         "请点击左侧列表,查看各个接口。如需搜索,请直接使用搜索框进行搜索。\n\n"+
                                                         "请点击左侧列表,查看各个接口。如需搜索,请直接使用搜索框进行搜索。\n\n"+
                                                         ".. toctree::\n\n")
                                                         ".. toctree::\n\n")

+ 1 - 1
tools/sys_pub.py

@@ -135,7 +135,7 @@ for file in file_list:
 ##################  接口数据提取完毕  ##################
 ##################  接口数据提取完毕  ##################
 
 
 doc = open("../../luatos-wiki/api/sys_pub.md", "a+",encoding='utf-8')
 doc = open("../../luatos-wiki/api/sys_pub.md", "a+",encoding='utf-8')
-doc.write("# sys系统消息\n")
+doc.write("# 📮 sys系统消息\n")
 doc.write("\n\n")
 doc.write("\n\n")
 doc.write("此处列举了LuatOS框架中自带的系统消息列表\n\n")
 doc.write("此处列举了LuatOS框架中自带的系统消息列表\n\n")
 doc.write("\n\n")
 doc.write("\n\n")