Hi, Unfortunately, no such directive is not provided as built-in. AFAIK, you need to write own directive for that purpose. You can do it with `match_titles=True` option for nested_parse().
Thanks, Takeshi KOMIYA 2020年1月2日(木) 2:16 Libor Jelínek <ljeli...@virtage.com>: > > I'm looking at container:: directive. It does almost what I want - wraps its > content to <div>. Unfortunately container's allowed content are body elements > only (paragraphs, lists, ...). I need put inside <div> also sections (and > maybe other structural elements like topic or sidebar). > > For example trying put section into container > > .. container:: > :name: my-container-id > > My section title > ================ > > causes "WARNING: Unexpected section title.". > > Is there builtin or third-party directive that could contain both body and > structural elements? Or am I supposed to write such directive myself? > > -- > 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 sphinx-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sphinx-users/1e8f2568-a7f6-4dbb-addf-fd02df9387cc%40googlegroups.com. -- 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 sphinx-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/CAFmkQAMh7CZOt39CwYKzhogEj9fvs7fB3tc_LzT0s6CsVBwSEg%40mail.gmail.com.