Sphinx, reStructuredText show/hide code snippets

前端 未结 5 772
慢半拍i
慢半拍i 2020-12-23 14:57

I\'ve been documenting a software package using Sphinx and reStructuredText.

Within my documents, there are some long code snippets. I want to be able to have them

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-23 15:20

    There is a very simplistic extension providing exactly that feature: https://github.com/scopatz/hiddencode

    It works rather well for me.

提交回复
热议问题