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
@@ -47,7 +47,9 @@ class Usecase:
:return: The appended element
:rtype: ifcopenshell.entity_instance.entity_instance
Example::
Example:
.. code:: python
# Programmatically generate a library. You could do this visually too.
library = ifcopenshell.api.run("project.create_file")
@@ -43,7 +43,9 @@ class Usecase:
:return: The new IfcRelDeclares relationship
:rtype: ifcopenshell.entity_instance.entity_instance
Example::
Example:
.. code:: python
# Programmatically generate a library. You could do this visually too.
library = ifcopenshell.api.run("project.create_file")
@@ -39,7 +39,9 @@ class Usecase:
:return: The created IFC file object.
:rtype: ifcopenshell.file.file
Example::
Example:
.. code:: python
# Start a new model.
model = ifcopenshell.api.run("project.create_file")
@@ -34,7 +34,9 @@ class Usecase:
:return: None
:rtype: None
Example::
Example:
.. code:: python
# Programmatically generate a library. You could do this visually too.
library = ifcopenshell.api.run("project.create_file")