sphinx_gallery.gen_rst#

reST 檔案產生器。

藉由迭代 Python 範例檔案來產生範例的 rst 檔案。

產生圖片的檔案應以「plot」開頭。

函式#

sphinx_gallery.gen_rst.codestr2rst(codestr, lang='python', lineno=None)[原始碼]#

從程式碼字串傳回 reStructuredText 程式碼區塊。