It's one of standard reST directives. Please refer the reference of
reST in details:
https://docutils.sourceforge.io/docs/ref/rst/directives.html#container

2020年2月1日(土) 12:37 Myne <[email protected]>:
>
> Were you able to find a directive like this? I would be interested to use it 
> as well.
>
> On Wednesday, January 1, 2020 at 9:16:10 AM UTC-8, Libor Jelínek wrote:
>>
>> 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 [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sphinx-users/7daadd6e-fac6-48f7-b39d-d946d7d6a380%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/CAFmkQAPWXec7d1St_1QO1XtUq3RLXFXYfDHBUQNCx1pmCCA7cw%40mail.gmail.com.

Reply via email to