From 8b82c910c4b2cb64b961af63b994d0aa05f71410 Mon Sep 17 00:00:00 2001 From: Hugo Date: Tue, 24 Feb 2026 20:35:33 +0100 Subject: [PATCH] Fix code block indentation for createScene function Updated code block formatting for createScene function. This should fix the doc generation --- docs/sphinx/source/content/FirstSteps.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/sphinx/source/content/FirstSteps.rst b/docs/sphinx/source/content/FirstSteps.rst index b3eddfd35..a0b9ad014 100644 --- a/docs/sphinx/source/content/FirstSteps.rst +++ b/docs/sphinx/source/content/FirstSteps.rst @@ -166,8 +166,9 @@ We first propose to add a visual grid, in order to see things more clearly. To d 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). -.. code-block:: python - def createScene(rootNode): +.. code-block:: python + + def createScene(rootNode): import SofaRuntime # Make sure to load all necessary libraries 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 Finally, we add the sphere itself, which consists of two parts : the mechanical representation and the visual representation of the sphere: .. code-block:: python + def createScene(rootNode): import SofaRuntime # Make sure to load all necessary libraries