Skip to content

Commit b215c3a

Browse files
fix code blocks
1 parent 93451a0 commit b215c3a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/tutorials.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ Fork and clone repository
10001000

10011001
First, let's fork the ODM repo, and checkout a new branch locally that will function as our development branch.
10021002

1003-
.. code-block:: bash
1003+
:: bash
10041004
git checkout -b my_clever_new_change
10051005
# Switched to a new branch 'my_clever_new_change'
10061006

@@ -1009,7 +1009,7 @@ Set up local NodeODM docker instance
10091009

10101010
Next, we will set up a NodeODM instance with a locally mounted volume that points to our development branch of ODM
10111011

1012-
.. code-block:: bash
1012+
:: bash
10131013
docker run -d --restart unless-stopped -p 3000:3000 -v /path/to/cloned/ODM/repository/data:/code opendronemap/nodeodm
10141014

10151015
Modify code
@@ -1027,22 +1027,22 @@ Connect to NodeODM instance
10271027

10281028
Let us find out our container name, in case we forgot:
10291029

1030-
.. code-block:: bash
1030+
:: bash
10311031
docker ps
10321032
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
10331033
c997a4c5611b opendronemap/nodeodm "/usr/bin/node /var/…" 2 minutes ago Up 2 minutes 0.0.0.0:3000->3000/tcp, :::3000->3000/tcp affectionate_yalow
10341034

10351035
Now that we know the container name, we will connect to that instance using docker exec as follows:
10361036

1037-
.. code-block:: bash
1037+
:: bash
10381038
docker exec -it affectionate_yalow bash
10391039

10401040
Install and use changes
10411041
-----------------------
10421042

10431043
Let us get the environment prepared for our testing:
10441044

1045-
.. code-block:: bash
1045+
:: bash
10461046
root@c997a4c5611b:/var/www# cd /code
10471047
./configure.sh installruntimedepsonly
10481048
mkdir /code/SuperBuild/build
@@ -1051,7 +1051,7 @@ Let us get the environment prepared for our testing:
10511051

10521052
Next we can rebuild Ceres.
10531053

1054-
.. code-block:: bash
1054+
:: code-block:: bash
10551055
cmake ../.
10561056
make -j$(nproc) ceres
10571057
...

0 commit comments

Comments
 (0)