Skip to content

Commit 5d042af

Browse files
author
Stefan Cyliax
committed
Doc: added code highlighting to specification
Signed-off-by: Stefan Cyliax <stefan.cyliax@asam.net>
1 parent 5876499 commit 5d042af

10 files changed

Lines changed: 12 additions & 20 deletions

doc/misc/example.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The following example shows the content of a `modelDescription.xml` file that satisfies OSMP requirements.
44
The example describes a sensor model FMU with one input, one output, and no additional features:
55

6-
[source,xml]
6+
[source,xml,linenums]
77
----
88
<?xml version="1.0" encoding="UTF-8"?>
99
<fmiModelDescription

doc/setup/build_install_example.adoc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,56 +21,48 @@ Demonstrates a simple C network proxy that can send and receive OSI data via TCP
2121

2222
. Clone the OSMP repository.
2323
+
24-
[source]
2524
----
2625
git clone https://github.com/OpenSimulationInterface/osi-sensor-model-packaging.git
2726
----
2827
+
2928
. Switch to the OSMP repository.
3029
+
31-
[source]
3230
----
3331
cd osi-sensor-model-packaging
3432
----
3533
+
3634
. Update and initialize the OSI submodule.
3735
+
38-
[source]
3936
----
4037
git submodule update --init
4138
----
4239
+
4340
. Switch to the `examples/` directory.
4441
+
45-
[source]
4642
----
4743
cd examples
4844
----
4945
+
5046
. Create a new directory called `build/`.
5147
+
52-
[source]
5348
----
5449
mkdir -p build
5550
----
5651
+
5752
. Switch to the `build/` directory.
5853
+
59-
[source]
6054
----
6155
cd build
6256
----
6357
+
6458
. Run _cmake_ in the parent directory.
6559
+
66-
[source]
6760
----
6861
cmake ..
6962
----
7063
+
7164
. Run _cmake_ build.
7265
+
73-
[source]
7466
----
7567
cmake --build .
7668
----

doc/spec/ground_truth_init_parameters.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This allows a model to do expensive map calculations only once during initializa
1313

1414
Ground truth initialization paramters shall be named with the following prefix:
1515

16-
[source]
16+
[source,protobuf]
1717
----
1818
OSMPGroundTruthInit
1919
----

doc/spec/sensor_data_inputs.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Sensor data inputs shall be named with the following prefix:
66

7-
[source]
7+
[source,protobuf]
88
----
99
OSMPSensorDataIn
1010
----

doc/spec/sensor_data_outputs.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Sensor data outputs shall be named with the following prefix:
66

7-
[source]
7+
[source,protobuf]
88
----
99
OSMPSensorDataOut
1010
----

doc/spec/sensor_view_input_configuration.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ Before exiting initialization mode, the simulation environment then sets this co
1010

1111
Sensor view input configurations shall be named with the following prefix:
1212

13-
[source]
13+
[source,protobuf]
1414
----
1515
OSMPSensorViewInConfig
1616
----
1717

1818
Sensor view input configuration requests shall be named with the following prefix:
1919

20-
[source]
20+
[source,protobuf]
2121
----
2222
OSMPSensorViewInConfigRequest
2323
----

doc/spec/sensor_view_inputs.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Sensor view inputs shall be named with the following prefix:
66

7-
[source]
7+
[source,protobuf]
88
----
99
OSMPSensorViewIn
1010
----

doc/spec/sensor_view_outputs.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Sensor view outputs shall be named with the following prefix:
66

7-
[source]
7+
[source,protobuf]
88
----
99
OSMPSensorViewOut
1010
----

doc/spec/traffic_command_inputs.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ This makes it possible to control the traffic participant behavior using scenari
77

88
Traffic command inputs shall be named with the following prefix:
99

10-
[source]
10+
[source,protobuf]
1111
----
12-
`OSMPTrafficCommandIn`
12+
OSMPTrafficCommandIn
1313
----
1414

1515
**Rules**

doc/spec/traffic_update_outputs.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Traffic update outputs are present in traffic participant models.
66

77
Traffic update outputs shall be named with the following prefix:
88

9-
[source]
9+
[source,protobuf]
1010
----
11-
`OSMPTrafficUpdateOut`
11+
OSMPTrafficUpdateOut
1212
----
1313

1414
**Rules**

0 commit comments

Comments
 (0)