Re: @adoc not honouring path expressions in headline?

2021-01-21 Thread tbp1...@gmail.com
On Thursday, January 21, 2021 at 5:29:51 PM UTC-5 jkn wrote: > On Thursday, January 21, 2021 at 5:41:58 PM UTC tbp1...@gmail.com wrote: > >> It works for me :) That is, the text of all the child nodes of the @rst >> node gets included in the single rst file that *rst3* outputs and the >>

Re: @adoc not honouring path expressions in headline?

2021-01-21 Thread jkn
On Thursday, January 21, 2021 at 5:41:58 PM UTC tbp1...@gmail.com wrote: > It works for me :) That is, the text of all the child nodes of the @rst > node gets included in the single rst file that *rst3* outputs and the > node headlines become subtitles. > It depends what you mean by the

Re: @adoc not honouring path expressions in headline?

2021-01-21 Thread tbp1...@gmail.com
On Thursday, January 21, 2021 at 12:41:58 PM UTC-5 tbp1...@gmail.com wrote: > ... The script looks like this: > > import os > > cmd = ('py -m sphinx -C ' > '-D master_doc=xxx-rst ' > '-D source_suffix=.txt ' > '-D html_theme=sphinx_rtd_theme ' # Omit for a default theme > '-D "project=RST

Re: @adoc not honouring path expressions in headline?

2021-01-21 Thread tbp1...@gmail.com
It works for me :) That is, the text of all the child nodes of the @rst node gets included in the single rst file that *rst3* outputs and the node headlines become subtitles. However, you don't have to use a path expression, even if it is in an @path node. You can use an ordinary path for

Re: @adoc not honouring path expressions in headline?

2021-01-21 Thread jkn
> If @rst is including the entire path in the file name, you can put the @rst node under an @path node. Hmm, I tried that - the file gets written with the correct pathname (location and filename) when the rst3 command is run - but the output is incorrect. No child nodes seem to be being used.

Re: @adoc not honouring path expressions in headline?

2021-01-21 Thread jkn
On Thursday, January 21, 2021 at 2:38:25 PM UTC tbp1...@gmail.com wrote: > For an @rst node, the *rst3* command adds a *.txt* extension to every > filename. Maybe there is a setting to change this, I don't know. Yes, I saw that - I wasn't wild about it but I can live with that for now.

Re: @adoc not honouring path expressions in headline?

2021-01-21 Thread tbp1...@gmail.com
For an @rst node, the *rst3* command adds a *.txt* extension to every filename. Maybe there is a setting to change this, I don't know. Sphinx is happy working with **.txt* files, as long as you tell it to in the Sphinx configuration. If @rst is including the entire path in the file name,

Re: @adoc not honouring path expressions in headline?

2021-01-21 Thread Edward K. Ream
On Thu, Jan 21, 2021 at 7:16 AM jkn wrote: > > Hi Edward > I am looking at switching from occasionally creating documents via > AsciiDoc, to via ReStructuredText instead (my new company uses ResT, sphinx > etc, which is nice). > > I am used to using 'path expressions' in the headline for an

@adoc not honouring path expressions in headline?

2021-01-21 Thread jkn
Hi Edward I am looking at switching from occasionally creating documents via AsciiDoc, to via ReStructuredText instead (my new company uses ResT, sphinx etc, which is nice). I am used to using 'path expressions' in the headline for an @adoc file: @adoc