@@ -78,7 +78,7 @@ A sphinx extension for creating panels in a grid layout or as drop-downs.
7878Installation
7979============
8080
81- You can install `sphinx-panels ` with `pip `:
81+ You can install `` sphinx-panels `` with `` pip ` `:
8282
8383.. code-block :: bash
8484
@@ -118,15 +118,15 @@ Panels Usage
118118Grid Layout
119119-----------
120120
121- Panels are split by three or more `- ` characters.
121+ Panels are split by three or more `` - ` ` characters.
122122The layout of panels is then set by using the bootstrap classes.
123123Default classes for all panels may be set in the directive options,
124124then panel specific classes can be added at the start of each panel.
125125
126126By default the new classes will override those set previously
127127(as defaults or in the top level options),
128- but starting the option value with `+ ` will make the classes additive.
129- For example the following options will set the first panel's card to have both the `shadow ` and `bg-info ` classes:
128+ but starting the option value with `` + ` ` will make the classes additive.
129+ For example the following options will set the first panel's card to have both the `` shadow `` and `` bg-info ` ` classes:
130130
131131.. code-block :: rst
132132
@@ -184,7 +184,7 @@ Card Layout
184184-----------
185185
186186Each panel contains a card, which can itself contain a header and/or footer,
187- split by three or more `^^^ ` and `+++ ` respectively.
187+ split by three or more `` ^^^ `` and `` +++ ` ` respectively.
188188
189189.. seealso ::
190190
@@ -256,9 +256,9 @@ You can add your own CSS (see
256256`the html_css_files option <https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_css_files >`_)
257257but it is advised you use the built-in bootstrap classes:
258258
259- - `Card colouring <https://getbootstrap.com/docs/4.0/utilities/colors/ >`_ contextual classes: `bg-primary `, `bg-success `, `bg-info `, `bg-warning `, `bg-danger `, `bg-secondary `, `bg-dark ` and `bg-light `.
260- - `Padding and margins <https://getbootstrap.com/docs/4.0/utilities/spacing/ >`_: `border-0 `, `p-2 `, `m-2 `, ---
261- - `Text alignment <https://getbootstrap.com/docs/4.0/utilities/text/#text-alignment >`_: `text-justify `, `text-left `, `text-center `, `text-right `
259+ - `Card colouring <https://getbootstrap.com/docs/4.0/utilities/colors/ >`_ contextual classes: `` bg-primary `` , `` bg-success `` , `` bg-info `` , `` bg-warning `` , `` bg-danger `` , `` bg-secondary`, `` bg-dark `` and `` bg-light ` `.
260+ - `Padding and margins <https://getbootstrap.com/docs/4.0/utilities/spacing/ >`_: `` border-0 `` , `` p-2 `` , `` m-2 ` `, ---
261+ - `Text alignment <https://getbootstrap.com/docs/4.0/utilities/text/#text-alignment >`_: `` text-justify `` , `` text-left `` , `` text-center `` , `` text-right ` `
262262
263263.. code-block :: rst
264264
@@ -511,7 +511,7 @@ If the drop-down has no title assigned, it will display an ellipsis, which is hi
511511 My Content
512512
513513The overarching container, title banner and body panel can all be styled by assigning classes.
514- Adding `+ ` at the start appends the classes to any default ones.
514+ Adding `` + ` ` at the start appends the classes to any default ones.
515515
516516.. code-block :: rst
517517
@@ -564,6 +564,23 @@ Adding the ``animate`` option will trigger an animation when the content of the
564564
565565 Current available inputs: ``fade-in ``, ``fade-in-slide-down ``
566566
567+ Div Directive
568+ =============
569+
570+ The ``div `` directive is the same as the `container directive <https://docutils.sourceforge.io/docs/ref/rst/directives.html#container >`_,
571+ but does not add a ``container `` class in HTML outputs, which is incompatible with Bootstrap CSS:
572+
573+ .. code-block :: rst
574+
575+ .. div:: text-primary
576+
577+ hallo
578+
579+ .. div :: text-primary
580+
581+ hallo
582+
583+
567584Combined Example
568585================
569586
0 commit comments