As you know, File Exchange allows you to have your files hosted on GitHub. Suppose you wrote a nice README documentation, with examples, using a live script. Unfortunately, GitHub does not render and display your live script. You would need to rewrite your readme file as a markdown file.
Now, you won't have to rewrite your live scripts. Just use Michio's livescript-to-markdown entry. To be exact, it's actually
latex2markdown
, but live scripts can be easily exported to LaTeX so that's trivial.
It takes care of all (?) possible formating and components that can be included in a live script, including code, figure outputs, equations, lists, images, etc. Compare for yourself the readme file Michio created for his own entry:
Live Script version
,
Markdown version
.
这里的一个片段the side-by-side comparison.
As he says at the end of the readme file, I "hope it accelerates your MATLAB life!"
Give it a try and let us know what you think
here
or leave a
comment
for Michio.
댓글
댓글을 남기려면링크를 클릭하여 MathWorks 계정에 로그인하거나 계정을 새로 만드십시오.