Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
CSDN 技术社区
skill_tree_dotnet
提交
b7ce0d39
S
skill_tree_dotnet
项目概览
CSDN 技术社区
/
skill_tree_dotnet
通知
30
Star
6
Fork
4
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
2
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
skill_tree_dotnet
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
2
Issue
2
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
b7ce0d39
编写于
12月 30, 2021
作者:
L
luxin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add keywords_must and keywords_forbid
上级
15539b61
变更
46
显示空白变更内容
内联
并排
Showing
46 changed file
with
372 addition
and
108 deletion
+372
-108
data/1..NET初阶/1.入门/1.Hello World/config.json
data/1..NET初阶/1.入门/1.Hello World/config.json
+4
-1
data/1..NET初阶/1.入门/2.简介/config.json
data/1..NET初阶/1.入门/2.简介/config.json
+4
-1
data/1..NET初阶/1.入门/3.体系结构组件/config.json
data/1..NET初阶/1.入门/3.体系结构组件/config.json
+4
-1
data/1..NET初阶/1.入门/4..NET类库/config.json
data/1..NET初阶/1.入门/4..NET类库/config.json
+4
-1
data/1..NET初阶/1.入门/5..NET Standard概述/config.json
data/1..NET初阶/1.入门/5..NET Standard概述/config.json
+4
-1
data/1..NET初阶/1.入门/config.json
data/1..NET初阶/1.入门/config.json
+4
-1
data/1..NET初阶/2.C#语法/1.编写第一个C#代码/config.json
data/1..NET初阶/2.C#语法/1.编写第一个C#代码/config.json
+4
-1
data/1..NET初阶/2.C#语法/2.C#文本值和变量/config.json
data/1..NET初阶/2.C#语法/2.C#文本值和变量/config.json
+4
-1
data/1..NET初阶/2.C#语法/3.C#字符串格式设置/config.json
data/1..NET初阶/2.C#语法/3.C#字符串格式设置/config.json
+4
-1
data/1..NET初阶/2.C#语法/4.C#数字运算操作/config.json
data/1..NET初阶/2.C#语法/4.C#数字运算操作/config.json
+4
-1
data/1..NET初阶/2.C#语法/5.使用C#从.NET类库调用方法/config.json
data/1..NET初阶/2.C#语法/5.使用C#从.NET类库调用方法/config.json
+4
-1
data/1..NET初阶/2.C#语法/6.C# 中使用 if-elseif-else 分支判断/config.json
.../1..NET初阶/2.C#语法/6.C# 中使用 if-elseif-else 分支判断/config.json
+4
-1
data/1..NET初阶/2.C#语法/7.C# 数组和 foreach 语句/config.json
data/1..NET初阶/2.C#语法/7.C# 数组和 foreach 语句/config.json
+4
-1
data/1..NET初阶/2.C#语法/8.C# 编码规范/config.json
data/1..NET初阶/2.C#语法/8.C# 编码规范/config.json
+4
-1
data/1..NET初阶/2.C#语法/config.json
data/1..NET初阶/2.C#语法/config.json
+4
-1
data/1..NET初阶/3.C#特性/1.C#3.0特性/config.json
data/1..NET初阶/3.C#特性/1.C#3.0特性/config.json
+4
-1
data/1..NET初阶/3.C#特性/2.C#4.0特性/config.json
data/1..NET初阶/3.C#特性/2.C#4.0特性/config.json
+4
-1
data/1..NET初阶/3.C#特性/3.C#5.0特性/config.json
data/1..NET初阶/3.C#特性/3.C#5.0特性/config.json
+4
-1
data/1..NET初阶/3.C#特性/4.C#6.0特性/config.json
data/1..NET初阶/3.C#特性/4.C#6.0特性/config.json
+4
-1
data/1..NET初阶/3.C#特性/5.C#7.0特性/config.json
data/1..NET初阶/3.C#特性/5.C#7.0特性/config.json
+4
-1
data/1..NET初阶/3.C#特性/6.C#8.0特性/config.json
data/1..NET初阶/3.C#特性/6.C#8.0特性/config.json
+4
-1
data/1..NET初阶/3.C#特性/7.C#9.0特性/config.json
data/1..NET初阶/3.C#特性/7.C#9.0特性/config.json
+4
-1
data/1..NET初阶/3.C#特性/8.C#10.0功能/config.json
data/1..NET初阶/3.C#特性/8.C#10.0功能/config.json
+4
-1
data/1..NET初阶/3.C#特性/config.json
data/1..NET初阶/3.C#特性/config.json
+4
-1
data/1..NET初阶/config.json
data/1..NET初阶/config.json
+4
-1
data/2..NET中阶/1.ASP.NET Core应用/1.Razor应用/config.json
data/2..NET中阶/1.ASP.NET Core应用/1.Razor应用/config.json
+4
-1
data/2..NET中阶/1.ASP.NET Core应用/2.MVC/config.json
data/2..NET中阶/1.ASP.NET Core应用/2.MVC/config.json
+4
-1
data/2..NET中阶/1.ASP.NET Core应用/3.Blazor应用/config.json
data/2..NET中阶/1.ASP.NET Core应用/3.Blazor应用/config.json
+4
-1
data/2..NET中阶/1.ASP.NET Core应用/4.Web API应用/config.json
data/2..NET中阶/1.ASP.NET Core应用/4.Web API应用/config.json
+4
-1
data/2..NET中阶/1.ASP.NET Core应用/5.Minimal API 应用/config.json
data/2..NET中阶/1.ASP.NET Core应用/5.Minimal API 应用/config.json
+4
-1
data/2..NET中阶/1.ASP.NET Core应用/config.json
data/2..NET中阶/1.ASP.NET Core应用/config.json
+4
-1
data/2..NET中阶/2.桌面应用/1.WinForm/config.json
data/2..NET中阶/2.桌面应用/1.WinForm/config.json
+4
-1
data/2..NET中阶/2.桌面应用/2.WPF/config.json
data/2..NET中阶/2.桌面应用/2.WPF/config.json
+4
-1
data/2..NET中阶/2.桌面应用/3. UWP/config.json
data/2..NET中阶/2.桌面应用/3. UWP/config.json
+4
-1
data/2..NET中阶/2.桌面应用/config.json
data/2..NET中阶/2.桌面应用/config.json
+4
-1
data/2..NET中阶/3.MAUI跨平台移动应用/config.json
data/2..NET中阶/3.MAUI跨平台移动应用/config.json
+4
-1
data/2..NET中阶/4.机器学习应用/config.json
data/2..NET中阶/4.机器学习应用/config.json
+4
-1
data/2..NET中阶/5.游戏应用/config.json
data/2..NET中阶/5.游戏应用/config.json
+4
-1
data/2..NET中阶/6.云原生应用/config.json
data/2..NET中阶/6.云原生应用/config.json
+4
-1
data/2..NET中阶/config.json
data/2..NET中阶/config.json
+4
-1
data/3..NET高阶/1. Dapr应用/config.json
data/3..NET高阶/1. Dapr应用/config.json
+4
-1
data/3..NET高阶/2.Web进阶应用/config.json
data/3..NET高阶/2.Web进阶应用/config.json
+4
-1
data/3..NET高阶/config.json
data/3..NET高阶/config.json
+4
-1
data/config.json
data/config.json
+3
-1
data/tree.json
data/tree.json
+132
-44
src/tree.py
src/tree.py
+65
-20
未找到文件。
data/1..NET初阶/1.入门/1.Hello World/config.json
浏览文件 @
b7ce0d39
...
@@ -9,5 +9,7 @@
...
@@ -9,5 +9,7 @@
"export"
:
[
"export"
:
[
"HelloWorld.json"
"HelloWorld.json"
],
],
"title"
:
"Hello World"
"title"
:
"Hello World"
,
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/1..NET初阶/1.入门/2.简介/config.json
浏览文件 @
b7ce0d39
...
@@ -7,5 +7,7 @@
...
@@ -7,5 +7,7 @@
],
],
"export"
:
[
"export"
:
[
"Intro.json"
"Intro.json"
]
],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/1..NET初阶/1.入门/3.体系结构组件/config.json
浏览文件 @
b7ce0d39
...
@@ -7,5 +7,7 @@
...
@@ -7,5 +7,7 @@
"children"
:
[],
"children"
:
[],
"export"
:
[
"export"
:
[
"Standard.json"
"Standard.json"
]
],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/1..NET初阶/1.入门/4..NET类库/config.json
浏览文件 @
b7ce0d39
...
@@ -8,5 +8,7 @@
...
@@ -8,5 +8,7 @@
"children"
:
[],
"children"
:
[],
"export"
:
[
"export"
:
[
"Lib.json"
"Lib.json"
]
],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/1..NET初阶/1.入门/5..NET Standard概述/config.json
浏览文件 @
b7ce0d39
...
@@ -6,5 +6,7 @@
...
@@ -6,5 +6,7 @@
"children"
:
[],
"children"
:
[],
"export"
:
[
"export"
:
[
"StandardQuery.json"
"StandardQuery.json"
]
],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/1..NET初阶/1.入门/config.json
浏览文件 @
b7ce0d39
{
{
"node_id"
:
"csharp-e2aeed39b8d5434581176882e1838aa5"
,
"node_id"
:
"csharp-e2aeed39b8d5434581176882e1838aa5"
,
"keywords"
:
[]
"keywords"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/1..NET初阶/2.C#语法/1.编写第一个C#代码/config.json
浏览文件 @
b7ce0d39
...
@@ -6,5 +6,7 @@
...
@@ -6,5 +6,7 @@
"children"
:
[],
"children"
:
[],
"export"
:
[
"export"
:
[
"HelloWorld2.json"
"HelloWorld2.json"
]
],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/1..NET初阶/2.C#语法/2.C#文本值和变量/config.json
浏览文件 @
b7ce0d39
...
@@ -10,5 +10,7 @@
...
@@ -10,5 +10,7 @@
"export"
:
[
"export"
:
[
"String.json"
,
"String.json"
,
"Variable.json"
"Variable.json"
]
],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/1..NET初阶/2.C#语法/3.C#字符串格式设置/config.json
浏览文件 @
b7ce0d39
...
@@ -7,5 +7,7 @@
...
@@ -7,5 +7,7 @@
"export"
:
[
"export"
:
[
"Format.json"
,
"Format.json"
,
"StringFormatting.json"
"StringFormatting.json"
]
],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/1..NET初阶/2.C#语法/4.C#数字运算操作/config.json
浏览文件 @
b7ce0d39
...
@@ -7,5 +7,7 @@
...
@@ -7,5 +7,7 @@
"children"
:
[],
"children"
:
[],
"export"
:
[
"export"
:
[
"Calc.json"
"Calc.json"
]
],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/1..NET初阶/2.C#语法/5.使用C#从.NET类库调用方法/config.json
浏览文件 @
b7ce0d39
...
@@ -6,5 +6,7 @@
...
@@ -6,5 +6,7 @@
"children"
:
[],
"children"
:
[],
"export"
:
[
"export"
:
[
"Guess.json"
"Guess.json"
]
],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/1..NET初阶/2.C#语法/6.C# 中使用 if-elseif-else 分支判断/config.json
浏览文件 @
b7ce0d39
...
@@ -7,5 +7,7 @@
...
@@ -7,5 +7,7 @@
"export"
:
[
"export"
:
[
"Guard.json"
,
"Guard.json"
,
"Switch.json"
"Switch.json"
]
],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/1..NET初阶/2.C#语法/7.C# 数组和 foreach 语句/config.json
浏览文件 @
b7ce0d39
...
@@ -8,5 +8,7 @@
...
@@ -8,5 +8,7 @@
"children"
:
[],
"children"
:
[],
"export"
:
[
"export"
:
[
"Loop.json"
"Loop.json"
]
],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/1..NET初阶/2.C#语法/8.C# 编码规范/config.json
浏览文件 @
b7ce0d39
...
@@ -7,5 +7,7 @@
...
@@ -7,5 +7,7 @@
"children"
:
[],
"children"
:
[],
"export"
:
[
"export"
:
[
"Comments.json"
"Comments.json"
]
],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/1..NET初阶/2.C#语法/config.json
浏览文件 @
b7ce0d39
{
{
"node_id"
:
"csharp-29be47be65ab45a1afa37ac2f2fdccc9"
,
"node_id"
:
"csharp-29be47be65ab45a1afa37ac2f2fdccc9"
,
"keywords"
:
[]
"keywords"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/1..NET初阶/3.C#特性/1.C#3.0特性/config.json
浏览文件 @
b7ce0d39
...
@@ -9,5 +9,7 @@
...
@@ -9,5 +9,7 @@
"扩展方法"
"扩展方法"
],
],
"children"
:
[],
"children"
:
[],
"export"
:
[]
"export"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/1..NET初阶/3.C#特性/2.C#4.0特性/config.json
浏览文件 @
b7ce0d39
...
@@ -7,5 +7,7 @@
...
@@ -7,5 +7,7 @@
"动态查找"
"动态查找"
],
],
"children"
:
[],
"children"
:
[],
"export"
:
[]
"export"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/1..NET初阶/3.C#特性/3.C#5.0特性/config.json
浏览文件 @
b7ce0d39
...
@@ -8,5 +8,7 @@
...
@@ -8,5 +8,7 @@
"绑定运算符,:=:"
"绑定运算符,:=:"
],
],
"children"
:
[],
"children"
:
[],
"export"
:
[]
"export"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/1..NET初阶/3.C#特性/4.C#6.0特性/config.json
浏览文件 @
b7ce0d39
...
@@ -14,5 +14,7 @@
...
@@ -14,5 +14,7 @@
"表达式方法体"
"表达式方法体"
],
],
"children"
:
[],
"children"
:
[],
"export"
:
[]
"export"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/1..NET初阶/3.C#特性/5.C#7.0特性/config.json
浏览文件 @
b7ce0d39
...
@@ -20,5 +20,7 @@
...
@@ -20,5 +20,7 @@
"只读引用"
"只读引用"
],
],
"children"
:
[],
"children"
:
[],
"export"
:
[]
"export"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/1..NET初阶/3.C#特性/6.C#8.0特性/config.json
浏览文件 @
b7ce0d39
...
@@ -9,5 +9,7 @@
...
@@ -9,5 +9,7 @@
"接口成员的默认实现"
"接口成员的默认实现"
],
],
"children"
:
[],
"children"
:
[],
"export"
:
[]
"export"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/1..NET初阶/3.C#特性/7.C#9.0特性/config.json
浏览文件 @
b7ce0d39
...
@@ -13,5 +13,7 @@
...
@@ -13,5 +13,7 @@
"非破坏性变化"
"非破坏性变化"
],
],
"children"
:
[],
"children"
:
[],
"export"
:
[]
"export"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/1..NET初阶/3.C#特性/8.C#10.0功能/config.json
浏览文件 @
b7ce0d39
...
@@ -17,5 +17,7 @@
...
@@ -17,5 +17,7 @@
"文件范围的 namespace"
"文件范围的 namespace"
],
],
"children"
:
[],
"children"
:
[],
"export"
:
[]
"export"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/1..NET初阶/3.C#特性/config.json
浏览文件 @
b7ce0d39
{
{
"node_id"
:
"csharp-a0968f78949448b7948a6a207b1d3262"
,
"node_id"
:
"csharp-a0968f78949448b7948a6a207b1d3262"
,
"keywords"
:
[]
"keywords"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/1..NET初阶/config.json
浏览文件 @
b7ce0d39
{
{
"node_id"
:
"csharp-ce2781d4e5344ae7b5b82f34c5fcaed2"
,
"node_id"
:
"csharp-ce2781d4e5344ae7b5b82f34c5fcaed2"
,
"keywords"
:
[]
"keywords"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/2..NET中阶/1.ASP.NET Core应用/1.Razor应用/config.json
浏览文件 @
b7ce0d39
...
@@ -4,5 +4,7 @@
...
@@ -4,5 +4,7 @@
"Razor"
"Razor"
],
],
"children"
:
[],
"children"
:
[],
"export"
:
[]
"export"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/2..NET中阶/1.ASP.NET Core应用/2.MVC/config.json
浏览文件 @
b7ce0d39
...
@@ -4,5 +4,7 @@
...
@@ -4,5 +4,7 @@
".NET MVC"
".NET MVC"
],
],
"children"
:
[],
"children"
:
[],
"export"
:
[]
"export"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/2..NET中阶/1.ASP.NET Core应用/3.Blazor应用/config.json
浏览文件 @
b7ce0d39
...
@@ -4,5 +4,7 @@
...
@@ -4,5 +4,7 @@
".NET Blazor"
".NET Blazor"
],
],
"children"
:
[],
"children"
:
[],
"export"
:
[]
"export"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/2..NET中阶/1.ASP.NET Core应用/4.Web API应用/config.json
浏览文件 @
b7ce0d39
...
@@ -4,5 +4,7 @@
...
@@ -4,5 +4,7 @@
".NET Web API"
".NET Web API"
],
],
"children"
:
[],
"children"
:
[],
"export"
:
[]
"export"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/2..NET中阶/1.ASP.NET Core应用/5.Minimal API 应用/config.json
浏览文件 @
b7ce0d39
...
@@ -4,5 +4,7 @@
...
@@ -4,5 +4,7 @@
".NET Minimal API"
".NET Minimal API"
],
],
"children"
:
[],
"children"
:
[],
"export"
:
[]
"export"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/2..NET中阶/1.ASP.NET Core应用/config.json
浏览文件 @
b7ce0d39
{
{
"node_id"
:
"csharp-f788d93e151e4f0ca4f1f2f809da584a"
,
"node_id"
:
"csharp-f788d93e151e4f0ca4f1f2f809da584a"
,
"keywords"
:
[]
"keywords"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/2..NET中阶/2.桌面应用/1.WinForm/config.json
浏览文件 @
b7ce0d39
...
@@ -4,5 +4,7 @@
...
@@ -4,5 +4,7 @@
"WinFrom开发"
"WinFrom开发"
],
],
"children"
:
[],
"children"
:
[],
"export"
:
[]
"export"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/2..NET中阶/2.桌面应用/2.WPF/config.json
浏览文件 @
b7ce0d39
...
@@ -4,5 +4,7 @@
...
@@ -4,5 +4,7 @@
"WPF开发"
"WPF开发"
],
],
"children"
:
[],
"children"
:
[],
"export"
:
[]
"export"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/2..NET中阶/2.桌面应用/3. UWP/config.json
浏览文件 @
b7ce0d39
...
@@ -4,5 +4,7 @@
...
@@ -4,5 +4,7 @@
"UWP开发"
"UWP开发"
],
],
"children"
:
[],
"children"
:
[],
"export"
:
[]
"export"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/2..NET中阶/2.桌面应用/config.json
浏览文件 @
b7ce0d39
{
{
"node_id"
:
"csharp-7f969ccd70e048c99f8699b52cb1b744"
,
"node_id"
:
"csharp-7f969ccd70e048c99f8699b52cb1b744"
,
"keywords"
:
[]
"keywords"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/2..NET中阶/3.MAUI跨平台移动应用/config.json
浏览文件 @
b7ce0d39
{
{
"node_id"
:
"csharp-119e018d28074c5f99ff3288a70f5e95"
,
"node_id"
:
"csharp-119e018d28074c5f99ff3288a70f5e95"
,
"keywords"
:
[]
"keywords"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/2..NET中阶/4.机器学习应用/config.json
浏览文件 @
b7ce0d39
{
{
"node_id"
:
"csharp-d779ab6fdf9d44f6ae18e0126665b9c0"
,
"node_id"
:
"csharp-d779ab6fdf9d44f6ae18e0126665b9c0"
,
"keywords"
:
[]
"keywords"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/2..NET中阶/5.游戏应用/config.json
浏览文件 @
b7ce0d39
{
{
"node_id"
:
"csharp-f00a308a6b5e4dfdbda247f8ab924bde"
,
"node_id"
:
"csharp-f00a308a6b5e4dfdbda247f8ab924bde"
,
"keywords"
:
[]
"keywords"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/2..NET中阶/6.云原生应用/config.json
浏览文件 @
b7ce0d39
{
{
"node_id"
:
"csharp-4e9dd748b8b24a9180948c53d649cb86"
,
"node_id"
:
"csharp-4e9dd748b8b24a9180948c53d649cb86"
,
"keywords"
:
[]
"keywords"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/2..NET中阶/config.json
浏览文件 @
b7ce0d39
{
{
"node_id"
:
"csharp-e931f114f5f44d53878989744c1f5e99"
,
"node_id"
:
"csharp-e931f114f5f44d53878989744c1f5e99"
,
"keywords"
:
[]
"keywords"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/3..NET高阶/1. Dapr应用/config.json
浏览文件 @
b7ce0d39
{
{
"node_id"
:
"csharp-96369fdba7914281b33829b2ad1272da"
,
"node_id"
:
"csharp-96369fdba7914281b33829b2ad1272da"
,
"keywords"
:
[]
"keywords"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/3..NET高阶/2.Web进阶应用/config.json
浏览文件 @
b7ce0d39
{
{
"node_id"
:
"csharp-f977fca66f044f05964ae467369a9e2a"
,
"node_id"
:
"csharp-f977fca66f044f05964ae467369a9e2a"
,
"keywords"
:
[]
"keywords"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/3..NET高阶/config.json
浏览文件 @
b7ce0d39
{
{
"node_id"
:
"csharp-abf1bc85e96749d5a8c6a6a32f95d804"
,
"node_id"
:
"csharp-abf1bc85e96749d5a8c6a6a32f95d804"
,
"keywords"
:
[]
"keywords"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/config.json
浏览文件 @
b7ce0d39
{
{
"tree_name"
:
"csharp"
,
"tree_name"
:
"csharp"
,
"keywords"
:
[],
"keywords"
:
[],
"node_id"
:
"csharp-f436d19758c84b0bb741e51f1f839c24"
"node_id"
:
"csharp-f436d19758c84b0bb741e51f1f839c24"
,
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
\ No newline at end of file
data/tree.json
浏览文件 @
b7ce0d39
...
@@ -21,7 +21,9 @@
...
@@ -21,7 +21,9 @@
"dotnet new"
,
"dotnet new"
,
"程序入口"
"程序入口"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -32,7 +34,9 @@
...
@@ -32,7 +34,9 @@
".NET"
,
".NET"
,
"跨平台"
"跨平台"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -42,7 +46,9 @@
...
@@ -42,7 +46,9 @@
".NET Standard"
,
".NET Standard"
,
".NET 实现"
".NET 实现"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -53,7 +59,9 @@
...
@@ -53,7 +59,9 @@
".NET 类库"
,
".NET 类库"
,
".NET 标准库"
".NET 标准库"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -62,10 +70,14 @@
...
@@ -62,10 +70,14 @@
"keywords"
:
[
"keywords"
:
[
".NET Standard 版本"
".NET Standard 版本"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
}
}
]
],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -79,7 +91,9 @@
...
@@ -79,7 +91,9 @@
"keywords"
:
[
"keywords"
:
[
"C# HelloWorld"
"C# HelloWorld"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -91,7 +105,9 @@
...
@@ -91,7 +105,9 @@
"C# 整型"
,
"C# 整型"
,
"C# 基本类型"
"C# 基本类型"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -100,7 +116,9 @@
...
@@ -100,7 +116,9 @@
"keywords"
:
[
"keywords"
:
[
"C# 字符串格式化"
"C# 字符串格式化"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -110,7 +128,9 @@
...
@@ -110,7 +128,9 @@
"C# 数字运算符"
,
"C# 数字运算符"
,
"C# 四则运算"
"C# 四则运算"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -119,7 +139,9 @@
...
@@ -119,7 +139,9 @@
"keywords"
:
[
"keywords"
:
[
".NET 基础类库"
".NET 基础类库"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -128,7 +150,9 @@
...
@@ -128,7 +150,9 @@
"keywords"
:
[
"keywords"
:
[
"C# 分支判断"
"C# 分支判断"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -139,7 +163,9 @@
...
@@ -139,7 +163,9 @@
"foreach"
,
"foreach"
,
"斐波那契数列"
"斐波那契数列"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -149,10 +175,14 @@
...
@@ -149,10 +175,14 @@
"C# 编码规范"
,
"C# 编码规范"
,
"C# 注释"
"C# 注释"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
}
}
]
],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -171,7 +201,9 @@
...
@@ -171,7 +201,9 @@
"对象与集合初始化器"
,
"对象与集合初始化器"
,
"扩展方法"
"扩展方法"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -183,7 +215,9 @@
...
@@ -183,7 +215,9 @@
"命名参数和可选参数"
,
"命名参数和可选参数"
,
"动态查找"
"动态查找"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -196,7 +230,9 @@
...
@@ -196,7 +230,9 @@
"支持null类型运算"
,
"支持null类型运算"
,
"绑定运算符,:=:"
"绑定运算符,:=:"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -215,7 +251,9 @@
...
@@ -215,7 +251,9 @@
"在集合初始化器中使用扩展的Add方法"
,
"在集合初始化器中使用扩展的Add方法"
,
"表达式方法体"
"表达式方法体"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -240,7 +278,9 @@
...
@@ -240,7 +278,9 @@
"占位符"
,
"占位符"
,
"只读引用"
"只读引用"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -254,7 +294,9 @@
...
@@ -254,7 +294,9 @@
"Switch 表达式"
,
"Switch 表达式"
,
"接口成员的默认实现"
"接口成员的默认实现"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -272,7 +314,9 @@
...
@@ -272,7 +314,9 @@
"不可变性"
,
"不可变性"
,
"非破坏性变化"
"非破坏性变化"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -294,13 +338,19 @@
...
@@ -294,13 +338,19 @@
"CallerArgumentExpression"
,
"CallerArgumentExpression"
,
"文件范围的 namespace"
"文件范围的 namespace"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
}
}
]
],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
}
}
]
],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -319,7 +369,9 @@
...
@@ -319,7 +369,9 @@
"keywords"
:
[
"keywords"
:
[
"Razor"
"Razor"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -328,7 +380,9 @@
...
@@ -328,7 +380,9 @@
"keywords"
:
[
"keywords"
:
[
".NET MVC"
".NET MVC"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -337,7 +391,9 @@
...
@@ -337,7 +391,9 @@
"keywords"
:
[
"keywords"
:
[
".NET Blazor"
".NET Blazor"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -346,7 +402,9 @@
...
@@ -346,7 +402,9 @@
"keywords"
:
[
"keywords"
:
[
".NET Web API"
".NET Web API"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -355,10 +413,14 @@
...
@@ -355,10 +413,14 @@
"keywords"
:
[
"keywords"
:
[
".NET Minimal API"
".NET Minimal API"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
}
}
]
],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -372,7 +434,9 @@
...
@@ -372,7 +434,9 @@
"keywords"
:
[
"keywords"
:
[
"WinFrom开发"
"WinFrom开发"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -381,7 +445,9 @@
...
@@ -381,7 +445,9 @@
"keywords"
:
[
"keywords"
:
[
"WPF开发"
"WPF开发"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -390,41 +456,55 @@
...
@@ -390,41 +456,55 @@
"keywords"
:
[
"keywords"
:
[
"UWP开发"
"UWP开发"
],
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
}
}
]
],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
"MAUI跨平台移动应用"
:
{
"MAUI跨平台移动应用"
:
{
"node_id"
:
"csharp-119e018d28074c5f99ff3288a70f5e95"
,
"node_id"
:
"csharp-119e018d28074c5f99ff3288a70f5e95"
,
"keywords"
:
[],
"keywords"
:
[],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
"机器学习应用"
:
{
"机器学习应用"
:
{
"node_id"
:
"csharp-d779ab6fdf9d44f6ae18e0126665b9c0"
,
"node_id"
:
"csharp-d779ab6fdf9d44f6ae18e0126665b9c0"
,
"keywords"
:
[],
"keywords"
:
[],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
"游戏应用"
:
{
"游戏应用"
:
{
"node_id"
:
"csharp-f00a308a6b5e4dfdbda247f8ab924bde"
,
"node_id"
:
"csharp-f00a308a6b5e4dfdbda247f8ab924bde"
,
"keywords"
:
[],
"keywords"
:
[],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
"云原生应用"
:
{
"云原生应用"
:
{
"node_id"
:
"csharp-4e9dd748b8b24a9180948c53d649cb86"
,
"node_id"
:
"csharp-4e9dd748b8b24a9180948c53d649cb86"
,
"keywords"
:
[],
"keywords"
:
[],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
}
}
]
],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
...
@@ -436,19 +516,27 @@
...
@@ -436,19 +516,27 @@
" Dapr应用"
:
{
" Dapr应用"
:
{
"node_id"
:
"csharp-96369fdba7914281b33829b2ad1272da"
,
"node_id"
:
"csharp-96369fdba7914281b33829b2ad1272da"
,
"keywords"
:
[],
"keywords"
:
[],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
},
},
{
{
"Web进阶应用"
:
{
"Web进阶应用"
:
{
"node_id"
:
"csharp-f977fca66f044f05964ae467369a9e2a"
,
"node_id"
:
"csharp-f977fca66f044f05964ae467369a9e2a"
,
"keywords"
:
[],
"keywords"
:
[],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
}
}
]
],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
}
}
]
],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
}
}
\ No newline at end of file
src/tree.py
浏览文件 @
b7ce0d39
...
@@ -2,10 +2,10 @@ import json
...
@@ -2,10 +2,10 @@ import json
import
logging
import
logging
import
os
import
os
import
re
import
re
import
subprocess
import
sys
import
sys
import
uuid
import
uuid
import
re
import
re
import
git
id_set
=
set
()
id_set
=
set
()
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
...
@@ -14,15 +14,31 @@ handler = logging.StreamHandler(sys.stdout)
...
@@ -14,15 +14,31 @@ handler = logging.StreamHandler(sys.stdout)
formatter
=
logging
.
Formatter
(
'%(asctime)s - %(levelname)s - %(message)s'
)
formatter
=
logging
.
Formatter
(
'%(asctime)s - %(levelname)s - %(message)s'
)
handler
.
setFormatter
(
formatter
)
handler
.
setFormatter
(
formatter
)
logger
.
addHandler
(
handler
)
logger
.
addHandler
(
handler
)
repo
=
git
.
Repo
(
"."
)
def
user_name
():
def
search_author
(
author_dict
,
username
):
return
repo
.
config_reader
().
get_value
(
"user"
,
"name"
)
for
key
in
author_dict
:
names
=
author_dict
[
key
]
if
username
in
names
:
return
key
return
username
def
user_name
(
md_file
,
author_dict
):
ret
=
subprocess
.
Popen
([
"git"
,
"log"
,
md_file
],
stdout
=
subprocess
.
PIPE
)
lines
=
list
(
map
(
lambda
l
:
l
.
decode
(),
ret
.
stdout
.
readlines
()))
author_lines
=
[]
for
line
in
lines
:
if
line
.
startswith
(
'Author'
):
author_lines
.
append
(
line
.
split
(
' '
)[
1
])
author_nick_name
=
author_lines
[
-
1
]
return
search_author
(
author_dict
,
author_nick_name
)
def
load_json
(
p
):
def
load_json
(
p
):
with
open
(
p
,
'r'
)
as
f
:
with
open
(
p
,
'r'
,
encoding
=
"utf-8"
)
as
f
:
return
json
.
loads
(
f
.
read
())
return
json
.
loads
(
f
.
read
())
...
@@ -77,7 +93,18 @@ def check_export(base, cfg):
...
@@ -77,7 +93,18 @@ def check_export(base, cfg):
class
TreeWalker
:
class
TreeWalker
:
def
__init__
(
self
,
root
,
tree_name
,
title
=
None
,
log
=
None
):
def
__init__
(
self
,
root
,
tree_name
,
title
=
None
,
log
=
None
,
authors
=
None
,
enable_notebook
=
None
,
ignore_keywords
=
False
):
self
.
ignore_keywords
=
ignore_keywords
self
.
authors
=
authors
if
authors
else
{}
self
.
enable_notebook
=
enable_notebook
self
.
name
=
tree_name
self
.
name
=
tree_name
self
.
root
=
root
self
.
root
=
root
self
.
title
=
tree_name
if
title
is
None
else
title
self
.
title
=
tree_name
if
title
is
None
else
title
...
@@ -89,7 +116,9 @@ class TreeWalker:
...
@@ -89,7 +116,9 @@ class TreeWalker:
root_node
=
{
root_node
=
{
"node_id"
:
root
[
"node_id"
],
"node_id"
:
root
[
"node_id"
],
"keywords"
:
root
[
"keywords"
],
"keywords"
:
root
[
"keywords"
],
"children"
:
[]
"children"
:
[],
"keywords_must"
:
root
[
"keywords_must"
],
"keywords_forbid"
:
root
[
"keywords_forbid"
]
}
}
self
.
tree
[
root
[
"tree_name"
]]
=
root_node
self
.
tree
[
root
[
"tree_name"
]]
=
root_node
self
.
load_levels
(
root_node
)
self
.
load_levels
(
root_node
)
...
@@ -144,6 +173,8 @@ class TreeWalker:
...
@@ -144,6 +173,8 @@ class TreeWalker:
"node_id"
:
config
[
"node_id"
],
"node_id"
:
config
[
"node_id"
],
"keywords"
:
config
[
"keywords"
],
"keywords"
:
config
[
"keywords"
],
"children"
:
[],
"children"
:
[],
"keywords_must"
:
config
[
"keywords_must"
],
"keywords_forbid"
:
config
[
"keywords_forbid"
]
}
}
}
}
...
@@ -195,6 +226,8 @@ class TreeWalker:
...
@@ -195,6 +226,8 @@ class TreeWalker:
"tree_name"
:
self
.
name
,
"tree_name"
:
self
.
name
,
"keywords"
:
[],
"keywords"
:
[],
"node_id"
:
self
.
gen_node_id
(),
"node_id"
:
self
.
gen_node_id
(),
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
dump_json
(
config_path
,
config
,
exist_ok
=
True
,
override
=
True
)
dump_json
(
config_path
,
config
,
exist_ok
=
True
,
override
=
True
)
else
:
else
:
...
@@ -224,7 +257,9 @@ class TreeWalker:
...
@@ -224,7 +257,9 @@ class TreeWalker:
if
not
os
.
path
.
exists
(
config_path
):
if
not
os
.
path
.
exists
(
config_path
):
config
=
{
config
=
{
"node_id"
:
self
.
gen_node_id
(),
"node_id"
:
self
.
gen_node_id
(),
"keywords"
:
[]
"keywords"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[]
}
}
dump_json
(
config_path
,
config
,
exist_ok
=
True
,
override
=
True
)
dump_json
(
config_path
,
config
,
exist_ok
=
True
,
override
=
True
)
else
:
else
:
...
@@ -290,6 +325,8 @@ class TreeWalker:
...
@@ -290,6 +325,8 @@ class TreeWalker:
"node_id"
:
config
[
"node_id"
],
"node_id"
:
config
[
"node_id"
],
"keywords"
:
config
[
"keywords"
],
"keywords"
:
config
[
"keywords"
],
"children"
:
[],
"children"
:
[],
"keywords_must"
:
config
[
"keywords_must"
],
"keywords_forbid"
:
config
[
"keywords_forbid"
]
}
}
}
}
return
num
,
result
return
num
,
result
...
@@ -301,7 +338,9 @@ class TreeWalker:
...
@@ -301,7 +338,9 @@ class TreeWalker:
name
:
{
name
:
{
"node_id"
:
config
[
"node_id"
],
"node_id"
:
config
[
"node_id"
],
"keywords"
:
config
[
"keywords"
],
"keywords"
:
config
[
"keywords"
],
"children"
:
config
.
get
(
"children"
,
[])
"children"
:
config
.
get
(
"children"
,
[]),
"keywords_must"
:
config
[
"keywords_must"
],
"keywords_forbid"
:
config
[
"keywords_forbid"
]
}
}
}
}
# if "children" in config:
# if "children" in config:
...
@@ -318,7 +357,8 @@ class TreeWalker:
...
@@ -318,7 +357,8 @@ class TreeWalker:
continue
continue
mfile
=
base
+
".json"
mfile
=
base
+
".json"
meta_path
=
os
.
path
.
join
(
section_path
,
mfile
)
meta_path
=
os
.
path
.
join
(
section_path
,
mfile
)
self
.
ensure_exercises_meta
(
meta_path
,
source
)
md_file
=
os
.
path
.
join
(
section_path
,
e
)
self
.
ensure_exercises_meta
(
meta_path
,
source
,
md_file
)
export
=
config
.
get
(
"export"
,
[])
export
=
config
.
get
(
"export"
,
[])
if
mfile
not
in
export
and
self
.
name
!=
"algorithm"
:
if
mfile
not
in
export
and
self
.
name
!=
"algorithm"
:
export
.
append
(
mfile
)
export
.
append
(
mfile
)
...
@@ -339,7 +379,7 @@ class TreeWalker:
...
@@ -339,7 +379,7 @@ class TreeWalker:
else
:
else
:
id_set
.
add
(
exercise
[
"exercise_id"
])
id_set
.
add
(
exercise
[
"exercise_id"
])
def
ensure_exercises_meta
(
self
,
meta_path
,
source
):
def
ensure_exercises_meta
(
self
,
meta_path
,
source
,
md_file
):
_
,
mfile
=
os
.
path
.
split
(
meta_path
)
_
,
mfile
=
os
.
path
.
split
(
meta_path
)
meta
=
None
meta
=
None
if
os
.
path
.
exists
(
meta_path
):
if
os
.
path
.
exists
(
meta_path
):
...
@@ -354,13 +394,14 @@ class TreeWalker:
...
@@ -354,13 +394,14 @@ class TreeWalker:
if
"source"
not
in
meta
:
if
"source"
not
in
meta
:
meta
[
"source"
]
=
source
meta
[
"source"
]
=
source
if
"author"
not
in
meta
:
if
"author"
not
in
meta
:
meta
[
"author"
]
=
user_name
()
meta
[
"author"
]
=
user_name
(
md_file
,
self
.
authors
)
if
"type"
not
in
meta
:
if
"type"
not
in
meta
:
meta
[
"type"
]
=
"code_options"
meta
[
"type"
]
=
"code_options"
if
meta
is
None
:
if
meta
is
None
:
meta
=
{
meta
=
{
"type"
:
"code_options"
,
"type"
:
"code_options"
,
"author"
:
user_name
(
),
"author"
:
user_name
(
md_file
,
self
.
authors
),
"source"
:
source
,
"source"
:
source
,
"notebook_enable"
:
self
.
default_notebook
(),
"notebook_enable"
:
self
.
default_notebook
(),
"exercise_id"
:
uuid
.
uuid4
().
hex
"exercise_id"
:
uuid
.
uuid4
().
hex
...
@@ -368,12 +409,16 @@ class TreeWalker:
...
@@ -368,12 +409,16 @@ class TreeWalker:
dump_json
(
meta_path
,
meta
,
True
,
True
)
dump_json
(
meta_path
,
meta
,
True
,
True
)
def
default_notebook
(
self
):
def
default_notebook
(
self
):
if
self
.
enable_notebook
is
not
None
:
return
self
.
enable_notebook
if
self
.
name
in
[
"python"
,
"java"
,
"c"
]:
if
self
.
name
in
[
"python"
,
"java"
,
"c"
]:
return
True
return
True
else
:
else
:
return
False
return
False
def
check_section_keywords
(
self
,
full_path
):
def
check_section_keywords
(
self
,
full_path
):
if
self
.
ignore_keywords
:
return
config
=
self
.
ensure_section_config
(
full_path
)
config
=
self
.
ensure_section_config
(
full_path
)
if
not
config
.
get
(
"keywords"
,
[]):
if
not
config
.
get
(
"keywords"
,
[]):
self
.
logger
.
error
(
f
"节点 [
{
full_path
}
] 的关键字为空,请修改配置文件写入关键字"
)
self
.
logger
.
error
(
f
"节点 [
{
full_path
}
] 的关键字为空,请修改配置文件写入关键字"
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录