Devel now contains the completed #1867: radically simplify the rst3 command.
I have removed the "Rst Command Reference" chapter from LeoDocs.leo and from Leo's web site. I will soon add a new section to the "Customizing Leo" chapter.
Is it already possible to reproduce Leo's own documentation using the current state of the new / revised rst3 command?
The current state of the new / revised rst3 command would break a lot of my outlines.I'm using rst-based outline templates, very close to the test-template, that I've attached.It did work w/o any problems until this last change. - Now it stopped to ...* honor '@rst-preformat' - and - it stopped to ...
* honor the 'default_path=./TL/2021/01/CWxx/' in '@rst-options'
On Fri, Apr 2, 2021 at 4:36 PM Edward K. Ream <edre...@gmail.com> wrote:> I have just created #1876: Honor @rst-preformat. It should be easy to fix.The ekr-rst-preformat branch contains the proposed fix. See PR #1877.
My primary document built with Sphinx without trouble as far as I can see. It has a tree with 15 @rst nodes, some of which are contain a @rst-no-head node. The built html files come to something over 500KB, so not huge but not a toy document, either. This tree does not call for any of the more complex things rst3 could apparently do, so it's not much of a test, I suppose. But I'm happy!
The ekr-rst-preformat branch contains the proposed fix. See PR #1877.Works like a charm. - Thanks a lot for the quick fix!
* The directory structure I've been using is "./ <type>/<year>/<month>/<week>".As far as I know, I can have only a single @settings tree per outline.Therefore, I don't see how this could work - unless - Leo is checking for / honoring 'default-path=..." - settings inside the @rst content tree?
Fine with me. - Let me know, when this new command is available in the 'devel' branch & I'll give it a try on some of my outlines.
I used the new command successfully on one outline. - It did convert everything properly ...
Is there already a command available in Leo, that inserts a given number of 'blank' characters before each of the copied lines?
Thanks for this info. - I'm happy with the way the conversion script is dealing with the changed "@rst-options / default path=..." handling.
I'm not (yet?) confident / really happy about the removal of the "@rst-preformat" option.The first one is a one-time conversion action & everything's taken care of for the users.For the second one, you're asking the users to perform more steps **every** time. - At least for me the workflow is not as smooth as before!
On Sun, Apr 4, 2021 at 1:27 PM Viktor Ransmayr <viktor....@gmail.com> wrote:
...
I'm not (yet?) confident / really happy about the removal of the "@rst-preformat" option.The first one is a one-time conversion action & everything's taken care of for the users.For the second one, you're asking the users to perform more steps **every** time. - At least for me the workflow is not as smooth as before!Imo, the new way is just simpler:- It's no easier to type @rst-preformat than @rst-no-head.- @rst-preformat is less flexible than usual because it can't create a headline.- Any node in an @rst-tree can contain preformatted text.- Adding a "::" and indenting following text is too easy to justify special headlines.I was happy to create the conversion script, but imo @rst-preformat is not needed for new writing.
@ @rst-optionsdefault_path=./TL/2021/01/CWxx/
@cin the @path body. - Did you consider removing the now 'useless' default_path' statement - or - the @rst-options section in general?
@ @rst-optionsdefault_path=./TL/2021/01/CWxx/
@cin the @path body. - Did you consider removing the now 'useless' default_path' statement - or - the @rst-options section in general?I did consider it, but the node might have other (now useless) settings. Rather than destroy potentially useful data, I chose to leave the nodes as they are. It should be no great inconvenience to remove the body text of those nodes. You could use a multi-line regex in a short script.
Thanks for your explanation. - At the moment I think I'll go a slightly different direction - and - will try create a customized version of the "convert-legacy-rst-outline" command provided by you.I'll report back here, if & when I have something that works for my outlines.