-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs.oneflow.org 自动检查任务 #465
Comments
基本情况
解决问题
|
问题解决2面对 https://github.com/Oneflow-Inc/oneflow-documentation/blob/master/cn/docs/cookies/amp.md 这样的文档,虽然之前的代码块都是能以正确的顺序拼接并运行通过,但是最后一块的代码是需要被放入之前的指定行数来运行的额外代码,这一点是通过语言说明的,ci机无法轻易变通 粗略想到的解决方法有二:
|
相信基础的背景和功能已经有所了解,现在在展开工作中,要考虑具体的和业务逻辑问题:
因此,建议把如何设置哪些 codeblock 要跳过、什么是预期结果这些功能,以某种方式,留给用户。比如配置文件。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docs.oneflow.org 没有自动检查,还在依赖手工方式检查
最终目标是让 docs.oneflow.org 可以做代码的自动检查。分两步走:
提供一个可以本地运行的脚本,检测 oneflow-documentation 仓库里的代码是否都能正常运行
写个程序,能提取指定markdown文件里的代码块,并运行代码块,并返回是否出错的信息
在以上基础上,继续考虑如何方便 markdown 的作者,如何方便配置程序运行的实际结果和期待结果(不急)
把那个脚本加入到 CI 中(很简单,需要和其它同事沟通,到底谁加)
背景:起步可以参考之前我 fork 和魔改的一个代码:doombeaker/mkcodes: Extract python code from markdown file into python file (github.com)
定时间:
1.1 1 周之内完成,记得开一个 issue,记录自己的经验和进度
1.2 待定
The text was updated successfully, but these errors were encountered: