提交 98856bfb 编写于 作者: F feilong

初始化章节 config.json

上级 429eaf82
.vscode
.idea
.DS_Store
__pycache__
*.pyc
*.zip
*.out
\ No newline at end of file
......@@ -5,7 +5,8 @@
"keywords": [
"访问网页数据的传递过程"
],
"children": []
"children": [],
"node_id": "network-90eb249a1a944545bec9375caa09b7ee"
}
},
{
......@@ -13,7 +14,8 @@
"keywords": [
"我国网络的发展的发展"
],
"children": []
"children": [],
"node_id": "network-f5d2f2b5a7624f7a95ff3e1ab2fa4fc5"
}
},
{
......@@ -24,8 +26,10 @@
"网络协议",
"资源共享"
],
"children": []
"children": [],
"node_id": "network-8a6a24c32e154eb396619dbbfbdab0e7"
}
}
]
],
"node_id": "network-e0ad5915797348a88f55399a18ca858d"
}
\ No newline at end of file
{
"type":"code_option",
"author":"鸡腿",
"source":"01.md",
"notebook_enable":false
"type": "code_option",
"author": "鸡腿",
"source": "01.md",
"notebook_enable": false,
"exercise_id": "79175f78dc784f67a8b3a31edeb575b6"
}
\ No newline at end of file
{
"keywords":["网络设备"],
"children": [
{
"常见的网络设备": {
"keywords": ["终端设备", "中间设备"],
"keywords": [
"终端设备",
"中间设备"
],
"children": [
{
"终端设备": {
"keywords": ["服务器", "主机", "手机", "PAD", "智能家居"],
"children": []
"keywords": [
"服务器",
"主机",
"手机",
"PAD",
"智能家居"
],
"children": [],
"node_id": "network-2aacb5a4f5a64677ace490d4373d7628"
}
},
{
"中间设备": {
"keywords": ["网卡", "集线器", "交换机", "无线路由器"],
"children": []
"keywords": [
"网卡",
"集线器",
"交换机",
"无线路由器"
],
"children": [],
"node_id": "network-42e9982de4334db79ea829662e90ea2f"
}
}
]
],
"node_id": "network-c83783f42f4d4fdcb71dd55d3087b7f0"
},
"常见的网络介质": {
"keywords": ["双绞线", "光纤", "同轴电缆", "无线电波"],
"keywords": [
"双绞线",
"光纤",
"同轴电缆",
"无线电波"
],
"children": [
{
"双绞线": {
......@@ -45,7 +68,8 @@
}
}
],
"export":[
"export": [
"01.json"
]
],
"node_id": "network-16b1ac6767d947f4b9cf1be248239823"
}
\ No newline at end of file
{
"node_id": "network-05cf5084bf4b4f8dbb7040d4d53efbfa",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-21e72df6dd5b40dcb57d2daabf9d87b2",
"keywords": []
}
\ No newline at end of file
{
"node_id": "network-8afe66fc4e1e4f539061de800a0a23bf",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-bac5e201cd3f471aa09aef6f6bd9dd6a",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-e7861382d8474d99b6c81866b3480346",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-9ca6243f54a446089eaf3a8f18dbdf5f",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-903c0a65059e41a88036c457f48d9351",
"keywords": []
}
\ No newline at end of file
{
"node_id": "network-93a232d0cf754e6b87dcdd6f43f8cbc8",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-f5b3ff50904c4fed949e58640a143cfe",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-1ed5189882a04d6da48dc84617427b65",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-59a5b62a972247948a07ffcf892b56c9",
"keywords": []
}
\ No newline at end of file
{
"node_id": "network-ec7441d074c1439285eab85cd1d35425",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-45e9640d996c42d685c497fa6604a764",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-770fb1807a7e4ef59c9f78e06685dd67",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-e7f2ac802a3e4ac785b5f94d4935dcae",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-44c32ade1eb24e328d84b0970a82c874",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-da956c02f676454e8bcaa50e3cfa8e06",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-5dd420ebd67146afa5219a44cd614a47",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-dd30314697c84cc1b696d77dd11aced9",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-60f0ba128ba74fa89c79e36884305783",
"keywords": []
}
\ No newline at end of file
{
"node_id": "network-8d8288ccd2b64a109c4f557efe592ac3",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-ab6bfd85ec3440dd89fea166da0be00c",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-772cd2af7db94508840e1441a7574877",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-cbc2f413286e40fcad470f79d0da9f1d",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-9d424643d20e4d6a8e563debaad8f21a",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-edb91111e5ff435cbcf23f5537866369",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-8dd155538a954267abe06242248a083e",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-1f93a31002cf4fe2924a8c513c4a4a5c",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-d32c188136234d198a3d27aaf251434f",
"keywords": []
}
\ No newline at end of file
{
"node_id": "network-74e3d2800f35424a8e98ce089f7c27c6",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-b9246efd155b47799dc02eb00175bd3d",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-85712193cdfa4d82bafaa0f4cd30e266",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-4a3481cb7b03425582b40d1e0d2e0d51",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-5e7027e23eec4c67a7de74e9ab2caba8",
"keywords": []
}
\ No newline at end of file
{
"node_id": "network-ae82cb15ba26426a91e8a1cb474328ae",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-bd22073e575c4d4ea1325760a3912954",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-14c66687e6e84ea68668d40b4cacd873",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-656828c7f31c4f72ad230b9e3191161d",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-66b95999ea2147c4945a1456eb3baaee",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-c554312da0e0433c974d1e489be231e2",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-94a13c6c52614895b92d569cb38b3c87",
"keywords": []
}
\ No newline at end of file
{
"node_id": "network-d41a109241504ac689c4180793d237fe",
"keywords": []
}
\ No newline at end of file
{
"node_id": "network-ae056a3111bf495687aad5e94fc72b6b",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-9f63af019f97456bbf2da57a02268d26",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-47c1720cca854491a63065893b444aa0",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-1c08cbe277804c9aa7d86a7cea45bb2b",
"keywords": []
}
\ No newline at end of file
{
"node_id": "network-86a74a86c4634c7f991963d8c39c8200",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-460e4f45b1dc4746a5e6d53df073d8f3",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-872fb874602d49aeaf479aa555f768f7",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-d6e6178da70c4c488b4e6137a6f4f039",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-bfec537cc4e74fc0bde6968570bb0bda",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-2bdf012b3e71446da96b483fb9b9cdc4",
"keywords": []
}
\ No newline at end of file
{
"node_id": "network-c2ad656b2d434cf2bddae5b67a54a30e",
"keywords": []
}
\ No newline at end of file
{
"node_id": "network-a4dd1c4a69364d6dba624adaeafbafcb",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-aa317ed09bf14c20bb86a1a08d5ec006",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-08302221308e40b38de8cf131dad13ad",
"keywords": []
}
\ No newline at end of file
{
"node_id": "network-5d740cb0d9a8459f88543a83b6c7c5e8",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-ca8d4d21ad474dfd83573e883cd821d5",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-f8fb04c24a4e4d4dad049a963e1acdba",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-8ef0493e96804c9aa6696c9c8c1ae3ca",
"keywords": []
}
\ No newline at end of file
{
"node_id": "network-40f0e24cb89b479c82163e686b1271c4",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-c0196e2fe2e846bc8a4c9bb338221528",
"keywords": [],
"children": [],
"export": []
}
\ No newline at end of file
{
"node_id": "network-c52d5bcef40f45c5bc8a3941c73d2750",
"keywords": []
}
\ No newline at end of file
{
"node_id": "network-fd72367657724abd93fd0e6c1b1584fc",
"keywords": []
}
\ No newline at end of file
{
"tree_name": "network",
"keywords": [],
"node_id": "network-7d5f6fdfd0b04e68aeebfb18474e4c4f"
}
\ No newline at end of file
此差异已折叠。
......@@ -300,7 +300,7 @@ class TreeWalker:
result = {
name: {
"node_id": config["node_id"],
"keywords": config["keywords"],
"keywords": config.get("keywords", []),
"children": config.get("children", [])
}
}
......@@ -375,6 +375,6 @@ class TreeWalker:
def check_section_keywords(self, full_path):
config = self.ensure_section_config(full_path)
if not config.get("keywords", []):
self.logger.error(f"节点 [{full_path}] 的关键字为空,请修改配置文件写入关键字")
sys.exit(1)
# if not config.get("keywords", []):
# self.logger.error(f"节点 [{full_path}] 的关键字为空,请修改配置文件写入关键字")
# sys.exit(1)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册