On 10/25/2009 05:50 AM, zeliboba wrote: > great! what is "live doc converter" btw?
See docHTMLProcessor.py in $SAGE_ROOT/local/lib/python/site-packages/sagenb/notebook/ Also, look at twist.py's WorksheetFile.render(), which uses the processor to convert a static HTML doc page into an editable worksheet. doc_page_html = open(self.docpath).read() from docHTMLProcessor import SphinxHTMLProcessor doc_page = SphinxHTMLProcessor().process_doc_html(doc_page_html) title = extract_title(doc_page_html).replace('—','--') doc_page = title + '\nsystem:sage\n\n' + doc_page W = doc_worksheet() W.edit_save(doc_page) --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---