From 1f645e345c37853e53f2fd29e578ed7d6278b884 Mon Sep 17 00:00:00 2001 From: feilong Date: Wed, 21 Sep 2022 00:44:16 +0800 Subject: [PATCH] add build doc --- build.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/build.md b/build.md index 38c72f6..ae9e8c8 100644 --- a/build.md +++ b/build.md @@ -40,7 +40,15 @@ if __name__ == '__main__': ├── main.py └── requirements.txt ``` -6. 阅读 `README.md` -7. 提交项目到git仓库: `git add .` + `git commit -m "init"` + `git push` -8. 到技能森林仓库的「技能树孵化器」问题里,提交你的项目地址。https://gitcode.net/csdn/skill_tree/-/issues/17 -9. 找到你的伙伴,持续按照 README 的介绍持续构建技能树,构建足够好后,在技能森林仓库提交一个申请上线的 issue。https://gitcode.net/csdn/skill_tree/-/issues \ No newline at end of file +6.现在,请修改`main.py`,将初始化代码改为构建索引的模式: + ```python +from skill_tree.tree import TreeWalker + +if __name__ == '__main__': + walker = TreeWalker("data", "test", "Test", ignore_keywords=True) + walker.walk() # 构建索引模式 +``` +7. 阅读 `README.md` +8. 提交项目到git仓库: `git add .` + `git commit -m "init"` + `git push` +9. 到技能森林仓库的「技能树孵化器」问题里,提交你的项目地址。https://gitcode.net/csdn/skill_tree/-/issues/17 +10. 找到你的伙伴,持续按照 README 的介绍持续构建技能树,构建足够好后,在技能森林仓库提交一个申请上线的 issue。https://gitcode.net/csdn/skill_tree/-/issues \ No newline at end of file -- GitLab