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
@@ -39,7 +39,9 @@ class Usecase:
:return: The newly created IfcArbitraryClosedProfileDef
:rtype: ifcopenshell.entity_instance.entity_instance
Example::
Example:
.. code:: python
# A 10mm by 100mm rectangle, such that might be used as a wooden
# skirting board or kick plate.
@@ -34,7 +34,9 @@ class Usecase:
:return: The newly created element depending on the specified ifc_class.
:rtype: ifcopenshell.entity_instance.entity_instance
Example::
Example:
.. code:: python
circle = ifcopenshell.api.run("profile.add_parameterized_profile", model,
ifc_class="IfcCircleProfileDef")
@@ -31,7 +31,9 @@ class Usecase:
:return: None
:rtype: None
Example::
Example:
.. code:: python
circle = ifcopenshell.api.run("profile.add_parameterized_profile", model,
ifc_class="IfcCircleProfileDef")
@@ -26,7 +26,9 @@ class Usecase:
:return: None
:rtype: None
Example::
Example:
.. code:: python
circle = ifcopenshell.api.run("profile.add_parameterized_profile", model,
ifc_class="IfcCircleProfileDef")