This won't work :)
When I have inclusions within the included files they are different when
included by toctree vs include. And I want to be able to change this
behaviour quickly.
Kind regards,
Jelke van Hoorn
Op vrijdag 14 februari 2014 13:11:06 UTC+1 schreef Luc Saffre:
>
> If they are included, then they become one html page ("document") and
> you don't want them to be in the toctree. You can use the standard
> docutils directive to add a local table of contents:
>
> .. contents::
> :depth: 2
>
> .. include:: foo/1.rst
> .. include:: foo/2.rst
> .. include:: foo/3.rst
>
>
> HTH,
>
> Luc
>
>
> On 14/02/14 13:20, Jelke v. Hoorn wrote:
> > Hi,
> >
> > I have a lot of small rst files which are includes for example by:
> >
> > .. toctree::
> > :glob:
> > foo/*
> >
> > as the contents of these files are small the resulting html consists of
> > a lot of small pages.
> > I would like to have the options to specify in the toc tree that the
> > html builder (or any builder that creates separate linked output files)
> > should include the contents of named files instead of linking to them.
> > Something like:
> >
> > .. toctree::
> > :glob:
> > :include:
> > foo/*
> >
> >
> > I can't find such option, when it is not available i would like to
> > request this feature :)
> >
> > I understand this is not straight forward as the relative paths are
> > different and these should be accounted for.
> > Lets say there is a foo/bar.rst which links to foo/bar.xml by
> >
> > .. include:: bar.xml
> >
> > which would be
> >
> > .. include:: foo/bar.xml
> >
> > when bar.rst was included by an include directive instead of the
> toctree.
> >
> >
> > Kind regards,
> > Jelke van Hoorn
> >
> > --
> > 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] <javascript:>.
> > To post to this group, send email to
> > [email protected]<javascript:>.
>
> > Visit this group at http://groups.google.com/group/sphinx-users.
> > For more options, visit https://groups.google.com/groups/opt_out.
>
>
--
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 http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/groups/opt_out.