On Monday, 25 March 2019 13:14:53 UTC+1, Chris Wright wrote: > > Hi - I'm newish to sphinx. > > I need to create external / internal documentation from the same source. > > I tried using* .. only:: internal* in my source file, then *sphinx-build > -t internal -b html source build-internal* - but the -t is seemingly > ignored and everything is indexed. > > Any advice much appreciated. Thanks, Chris >
Did you put the internal-only content *as the content* to the only directive? E.g.: .. only:: internal My internal content. My common content. Should output "My common content." in any output, but "My internal content." should only be included with the -t option. I suspect you may not have indented the contents that you want to mark as internal-only. It won't apply to a whole file or something (it seems that you expect this, reading between the lines). Just tested this with 1.8.5 and the example above works for me. HTH -- You received this message because you are subscribed to the Google Groups "sphinx-users" 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 https://groups.google.com/group/sphinx-users. For more options, visit https://groups.google.com/d/optout.
