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
@@ -55,7 +55,9 @@ class Usecase:
:return: The newly created IfcLibraryInformation
:rtype: ifcopenshell.entity_instance.entity_instance
Example::
Example:
.. code:: python
ifcopenshell.api.run("library.add_library", model, name="Brickschema")
"""
@@ -38,7 +38,9 @@ class Usecase:
:return: The newly created IfcLibraryReference element
:rtype: ifcopenshell.entity_instance.entity_instance
Example::
Example:
.. code:: python
library = ifcopenshell.api.run("library.add_library", model, name="Brickschema")
@@ -35,7 +35,9 @@ class Usecase:
:return: The IfcRelAssociatesLibrary relationship entity
:rtype: ifcopenshell.entity_instance.entity_instance
Example::
Example:
.. code:: python
library = ifcopenshell.api.run("library.add_library", model, name="Brickschema")
@@ -31,7 +31,9 @@ class Usecase:
:return: None
:rtype: None
Example::
Example:
.. code:: python
library = ifcopenshell.api.run("library.add_library", model, name="Brickschema")
ifcopenshell.api.run("library.edit_library", model, library=library,
@@ -31,7 +31,9 @@ class Usecase:
:return: None
:rtype: None
Example::
Example:
.. code:: python
library = ifcopenshell.api.run("library.add_library", model, name="Brickschema")
# Let's create a reference to a single AHU in our Brickschema dataset
@@ -29,7 +29,9 @@ class Usecase:
:return: None
:rtype: None
Example::
Example:
.. code:: python
library = ifcopenshell.api.run("library.add_library", model, name="Brickschema")
ifcopenshell.api.run("library.remove_library", model, library=library)
@@ -29,7 +29,9 @@ class Usecase:
:return: None
:rtype: None
Example::
Example:
.. code:: python
library = ifcopenshell.api.run("library.add_library", model, name="Brickschema")
reference = ifcopenshell.api.run("library.add_reference", model, library=library)
@@ -30,7 +30,9 @@ class Usecase:
:return: None
:rtype: None
Example::
Example:
.. code:: python
library = ifcopenshell.api.run("library.add_library", model, name="Brickschema")