Skip to content

Commit 8b82c91

Browse files
authored
Fix code block indentation for createScene function
Updated code block formatting for createScene function. This should fix the doc generation
1 parent fc75967 commit 8b82c91

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/sphinx/source/content/FirstSteps.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,9 @@ We first propose to add a visual grid, in order to see things more clearly. To d
166166
167167
Now, we create a new child node, in order to add the general configuration of the scene : required plugins (here SofaPython3) and other tools (like a system of axes).
168168

169-
.. code-block:: python
170-
def createScene(rootNode):
169+
.. code-block:: python
170+
171+
def createScene(rootNode):
171172
import SofaRuntime
172173
# Make sure to load all necessary libraries
173174
SofaRuntime.importPlugin("Sofa.Component.Visual")
@@ -182,6 +183,7 @@ Now, we create a new child node, in order to add the general configuration of th
182183
Finally, we add the sphere itself, which consists of two parts : the mechanical representation and the visual representation of the sphere:
183184

184185
.. code-block:: python
186+
185187
def createScene(rootNode):
186188
import SofaRuntime
187189
# Make sure to load all necessary libraries

0 commit comments

Comments
 (0)