Make syntax highlighting explicit in docs

This commit is contained in:
Dion Moult
2023-01-10 10:16:28 +11:00
parent 66e067d1ce
commit c8ba96cde8
236 changed files with 753 additions and 251 deletions
@@ -36,7 +36,9 @@ class Usecase:
:return: The new IfcRelFillsElement relationship
:rtype: ifcopenshell.entity_instance.entity_instance
Example::
Example:
.. code:: python
# A bit of preparation, let's create some geometric contexts since
# we want to create some geometry for our wall and opening.
@@ -54,7 +54,9 @@ class Usecase:
:return: The new IfcRelVoidsElement relationship
:rtype: ifcopenshell.entity_instance.entity_instance
Example::
Example:
.. code:: python
# A bit of preparation, let's create some geometric contexts since
# we want to create some geometry for our wall and opening.
@@ -30,7 +30,9 @@ class Usecase:
:return: None
:rtype: None
Example::
Example:
.. code:: python
# Create a wall
wall = ifcopenshell.api.run("root.create_entity", model, ifc_class="IfcWall")
@@ -32,7 +32,9 @@ class Usecase:
:return: None
:rtype: None
Example::
Example:
.. code:: python
# Create an oprhaned opening. Note that an orphaned opening is
# invalid, as an opening can only exist when voiding another