{"id":44,"date":"2008-09-04T23:31:09","date_gmt":"2008-09-05T04:31:09","guid":{"rendered":"http:\/\/www.ryanburns.net\/blog\/?p=44"},"modified":"2008-09-04T23:31:09","modified_gmt":"2008-09-05T04:31:09","slug":"restructuredtext","status":"publish","type":"post","link":"http:\/\/www.ryanburns.net\/blog\/?p=44","title":{"rendered":"reStructuredText"},"content":{"rendered":"<p>It seems we&#8217;re always on the lookout for a workable inline code documentation system.\u00a0 The pros and cons of doing this are always fighting it out, with a significant con being that this tends towards overdocumentation.<\/p>\n<p>At any rate, I just read that the Python documentation switched over from LaTeX to <a href=\"http:\/\/docutils.sourceforge.net\/rst.html\">reStructuredText<\/a>. \u00a0 One of the common drawbacks of inline documentation is that some nasty tags are required to markup the text.\u00a0 reStructuredText avoids this problem by using quite intuitive underlining, indentation and numeric lists, such that the documentation text is formatted essentially as one would format it for normal plaintext readability.<\/p>\n<p>This is a <a href=\"http:\/\/docutils.sourceforge.net\/docutils\/statemachine.py\">sample python script<\/a> documented with\u00a0 reST. You can paste one of the docstrings into this <a href=\"http:\/\/www.hosting4u.cz\/jbar\/rest\/rest.html\">online renderer<\/a> to see the sample output.\u00a0 Rendering would normally be done with <a href=\"http:\/\/docutils.sourceforge.net\/index.html\">Docutils<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It seems we&#8217;re always on the lookout for a workable inline code documentation system.\u00a0 The pros and cons of doing this are always fighting it out, with a significant con being that this tends towards overdocumentation. At any rate, I just read that the Python documentation switched over from LaTeX to reStructuredText. \u00a0 One of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-44","post","type-post","status-publish","format-standard","hentry","category-coding"],"_links":{"self":[{"href":"http:\/\/www.ryanburns.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/44","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.ryanburns.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ryanburns.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ryanburns.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ryanburns.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=44"}],"version-history":[{"count":0,"href":"http:\/\/www.ryanburns.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/44\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.ryanburns.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=44"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ryanburns.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=44"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ryanburns.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}