Skip to content

Commit 3930314

Browse files
committed
minor #18565 [Format] Add tabs directive (alexandre-daubois)
This PR was merged into the 5.4 branch. Discussion ---------- [Format] Add `tabs` directive I think it is worth mentioning `@weaverryan`'s tabs added here: symfony-tools/docs-builder#161 🙂 Commits ------- b61cb59 [Format] Add `tabs` directive
2 parents de9cd62 + b61cb59 commit 3930314

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

contributing/documentation/format.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,31 @@ Markup Format Use It to Display
124124
``php-standalone`` PHP code to be used in any PHP application using standalone Symfony components
125125
=================== ==============================================================================
126126

127+
Display Tabs
128+
~~~~~~~~~~~~
129+
130+
It is possible to display tabs in the documentation. Even though their display
131+
looks like configuration blocks, tabs can contain any type of content:
132+
133+
.. code-block:: rst
134+
135+
.. tabs:: UX Installation
136+
137+
.. tab:: Webpack Encore
138+
139+
Introduction to Webpack
140+
141+
.. code-block:: yaml
142+
143+
webpack:
144+
# ...
145+
146+
.. tab:: AssetMapper
147+
148+
Introduction to AssetMapper
149+
150+
Something else about AssetMapper
151+
127152
Adding Links
128153
~~~~~~~~~~~~
129154

0 commit comments

Comments
 (0)