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
@@ -62,7 +62,9 @@ class Usecase:
:return: The added IfcClassification element
:rtype: ifcopenshell.entity_instance.entity_instance
Example::
Example:
.. code:: python
# Option 1: adding a custom clasification from scratch
ifcopenshell.api.run("classification.add_classification", model,
@@ -84,7 +84,9 @@ class Usecase:
:return: The newly added IfcClassificationReference
:rtype: ifcopenshell.entity_instance.entity_instance
Example::
Example:
.. code:: python
# Option 1: adding and assigning a new reference from scratch
wall_type = model.by_type("IfcWallType")[0]
@@ -31,7 +31,9 @@ class Usecase:
:return: None
:rtype: None
Example::
Example:
.. code:: python
classification = model.by_type("IfcClassification")[0]
# Change the name of the classification system to "Foo"
@@ -31,7 +31,9 @@ class Usecase:
:return: None
:rtype: None
Example::
Example:
.. code:: python
reference = model.by_type("IfcClassification")[0]
# Change the name of the reference to "Foo"
@@ -30,7 +30,9 @@ class Usecase:
:return: None
:rtype: None
Example::
Example:
.. code:: python
classification = model.by_type("IfcClassification")[0]
ifcopenshell.api.run("classification.remove_classification", model,
@@ -33,7 +33,9 @@ class Usecase:
:return: None
:rtype: None
Example::
Example:
.. code:: python
wall_type = model.by_type("IfcWallType")[0]
classification = ifcopenshell.api.run("classification.add_classification",