Skip to content

Commit

Permalink
added interleaved examples
Browse files Browse the repository at this point in the history
  • Loading branch information
shvmm authored Oct 21, 2024
1 parent 6759fb7 commit 4ea6dcb
Showing 1 changed file with 25 additions and 13 deletions.
38 changes: 25 additions & 13 deletions guides/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -258,30 +258,42 @@ adhere to the following order:
.. collapse:: Details
Something small enough to escape casual notice.
.. collapse:: Open
This section is expected to be open by default.
.. collapse:: A long code block
.. code-block:: python
print("Not really")
.. collapse:: Details

Something small enough to escape casual notice.

.. collapse:: Open
.. code-block:: rst
.. collapse:: Open
:open:

Check failure on line 269 in guides/contributing.rst

View workflow job for this annotation

GitHub Actions / build

Directive 'collapse' is not followed by an empty line. Please insert an empty line after guides/contributing.rst:269
This section is expected to be open by default.
.. collapse:: Open
:open:

Check failure on line 273 in guides/contributing.rst

View workflow job for this annotation

GitHub Actions / build

Directive 'collapse' is not followed by an empty line. Please insert an empty line after guides/contributing.rst:273
This section is expected to be open by default.

.. code-block:: rst
.. collapse:: A long code block
.. code-block:: yaml
# Sample configuration entry
switch:
- platform: gpio
name: "Relay #42"
pin: GPIOXX
.. collapse:: A long code block

.. code-block:: python
.. code-block:: yaml
print("Not really")
# Sample configuration entry
switch:
- platform: gpio
name: "Relay #42"
pin: GPIOXX
.. note::

Expand Down

0 comments on commit 4ea6dcb

Please sign in to comment.