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
@@ -60,7 +60,9 @@ class Usecase:
class.
:rtype: ifcopenshell.entity_instance.entity_instance
Example::
Example:
.. code:: python
# Add our own crew
crew = ifcopenshell.api.run("resource.add_resource", model, ifc_class="IfcCrewResource")
@@ -44,7 +44,9 @@ class Usecase:
:return: The newly created quantity depending on the IFC class
:rtype: ifcopenshell.entity_instance.entity_instance
Example::
Example:
.. code:: python
# Add our own crew
crew = ifcopenshell.api.run("resource.add_resource", model, ifc_class="IfcCrewResource")
@@ -33,7 +33,9 @@ class Usecase:
:return: The newly created IfcResourceTime
:rtype: ifcopenshell.entity_instance.entity_instance
Example::
Example:
.. code:: python
# Add our own crew
crew = ifcopenshell.api.run("resource.add_resource", model, ifc_class="IfcCrewResource")
@@ -45,7 +45,9 @@ class Usecase:
:return: The newly created IfcRelAssignsToResource
:rtype: ifcopenshell.entity_instance.entity_instance
Example::
Example:
.. code:: python
# Add our own crew
crew = ifcopenshell.api.run("resource.add_resource", model, ifc_class="IfcCrewResource")
@@ -31,7 +31,9 @@ class Usecase:
:return: None
:rtype: None
Example::
Example:
.. code:: python
# Add our own crew
crew = ifcopenshell.api.run("resource.add_resource", model, ifc_class="IfcCrewResource")
@@ -31,7 +31,9 @@ class Usecase:
:return: None
:rtype: None
Example::
Example:
.. code:: python
# Add our own crew
crew = ifcopenshell.api.run("resource.add_resource", model, ifc_class="IfcCrewResource")
@@ -34,7 +34,9 @@ class Usecase:
:return: None
:rtype: None
Example::
Example:
.. code:: python
# Add our own crew
crew = ifcopenshell.api.run("resource.add_resource", model, ifc_class="IfcCrewResource")
@@ -23,7 +23,9 @@ class Usecase:
def __init__(self, file, resource=None):
"""Removes a resource and all relationships
Example::
Example:
.. code:: python
# Add our own crew
crew = ifcopenshell.api.run("resource.add_resource", model, ifc_class="IfcCrewResource")
@@ -23,7 +23,9 @@ class Usecase:
def __init__(self, file, resource=None):
"""Removes the base quantity of a resource
Example::
Example:
.. code:: python
# Add our own crew
crew = ifcopenshell.api.run("resource.add_resource", model, ifc_class="IfcCrewResource")
@@ -31,7 +31,9 @@ class Usecase:
:return: The newly created IfcRelAssignsToResource
:rtype: ifcopenshell.entity_instance.entity_instance
Example::
Example:
.. code:: python
# Add our own crew
crew = ifcopenshell.api.run("resource.add_resource", model, ifc_class="IfcCrewResource")