On Tuesday, October 29, 2013 10:04:19 AM UTC-5, Edward K. Ream wrote: > > The tutorial is at http://leoeditor.com/tutorial-rst3.html > > It would be very helpful if those with little or no experience with Leo's > rst3 command try to follow the tutorial and report any problems, roadblocks > or confusions here. Thanks! > > Edward > When going through the summary section of the tutorial on rst3, I noticed that there was supposed to be a make-sphinx button in LeoDocs.leo but could find none. In looking for discussion of that button in this group, I noticed some complaints, but don't know if it has been deprecated. Whether it has or not, one of the posts from EKR had a copy of the code which I placed in my outline. Running it produced the error AttributeError: 'Commands' object has no attribute 'setComplexCommand' -------------------- line 6: g.cls() * line 7: c.setComplexCommand('make-sphinx') line 8: if c.isChanged(): line 9: c.save() As far as I am concerned, running this from within Leo would be great. I have both docutils and Sphinx installed on my Mint 17 system. Thanks for this great tool, and for any help you may render. The code found for the button was: @language python import os trace = True g.cls() c.setComplexCommand('make-sphinx') if c.isChanged(): c.save() aList = c.rstCommands.rst3() if aList: path = g.os_path_finalize_join(g.app.loadDir,'..','doc','html') os.chdir(path) if len(aList) > 1: g.execute_shell_commands('make clean',trace=trace) g.execute_shell_commands('make html',trace=trace) fn = aList[0].h.strip() if len(aList) == 1 else 'leo_toc.html' fn = g.os_path_finalize_join(path,'_build','html',g.os_path_basename(fn)) if g.os_path_exists(fn): # Don't wait for this command to exit! g.execute_shell_commands(['&%s' % (fn)],trace=trace) Show trimmed content Click here to Reply Previous Previous Page *1* NextNext
-- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
