Skip to content

Commit

Permalink
Add tutorial to index and use \image commands
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
azeey committed Sep 27, 2023
1 parent 9fc70ca commit 2c79db3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ configure_file(${CMAKE_SOURCE_DIR}/tutorials.md.in ${CMAKE_BINARY_DIR}/tutorials
gz_create_docs(
API_MAINPAGE_MD "${CMAKE_BINARY_DIR}/api.md"
TUTORIALS_MAINPAGE_MD "${CMAKE_BINARY_DIR}/tutorials.md"
IMAGE_PATH_DIRS "${CMAKE_SOURCE_DIR}/tutorials/files"
TAGFILES
"${GZ-MATH_DOXYGEN_TAGFILE} = ${GZ-MATH_API_URL}"
)
Expand Down
1 change: 1 addition & 0 deletions tutorials.md.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Gazebo @GZ_DESIGNATION_CAP@ library and how to use the library effectively.

1. \subpage install "Installation"
2. \subpage cppgetstarted "C++ Get Started"
3. \subpage messagegeneration "Message Generation"

## License

Expand Down
6 changes: 3 additions & 3 deletions tutorials/message_generation.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ place to make the messages usable across the Gazebo stack.
To begin with, each message definition is passed through the `gz_msgs_protoc`
function:

![gz_msgs_protoc](files/gz_msgs_protoc.svg)
\image html files/gz_msgs_protoc.svg

For each file:

Expand All @@ -102,7 +102,7 @@ scripts and executables:
After individual message files have been generated, all of the definitions
are grouped and processed via `gz_msgs_factory`

![gz_msgs_factory](files/gz_msgs_factory.svg)
\image html files/gz_msgs_factory.svg

For the collection, `gz_msgs_factory` generates:

Expand Down Expand Up @@ -220,7 +220,7 @@ This allow for the messages to be used without any sort of reflection/introspect
Include the headers and interact with the messages using the generated
bindings according to the [language guide](https://protobuf.dev/reference/cpp/cpp-generated/)

```c++
```cpp
#include <gz/custom_msgs/baz.pb.h>

int main(int argc, char** argv)
Expand Down

0 comments on commit 2c79db3

Please sign in to comment.