Skip to content

Commit

Permalink
Add documentation about generating a Markdown documentation (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmauch authored Jul 24, 2023
1 parent 1a832bc commit 98d006a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Additionally, dynamic parameters and custom validation are made easy.
* Declaring, Getting, Validating, and Updating handled by generated code
* Dynamic ROS 2 Parameters made easy
* Custom user specified validator functions
* Automatically create documentation of parameters

## Basic Usage
1. [Create YAML parameter codegen file](#create-yaml-parameter-codegen-file)
Expand Down Expand Up @@ -158,6 +159,7 @@ when using `gmock` test library.
* [Dynamic Parameters](#dynamic-parameters)
* [Example Project](#example-project)
* [Generated code output](#generated-code-output)
* [Generate markdown documentation](#generate-markdown-documentation)

### Cpp namespace
The root element of the YAML file determines the namespace used in the generated C++ code.
Expand Down Expand Up @@ -450,6 +452,16 @@ class ParamListener {
```
The structure of the `Params` struct and the logic for declaring and updating parameters is generated from a YAML file specification.

### Generate markdown documentation

Using generate_parameter_library you can generate a Markdown-file for your `parameters.yaml` file.
```
generate_parameter_library_markdown --input_yaml examples/cpp/src/parameters.yaml --output_markdown_file parameters.md
```
This will generate a file `parameters.md` in the current folder that contains a markdown
representation of the `parameters.yaml` file that you can directly include into your documentation.
# FAQ
Q. What happens if I declare a parameter twice? Will I get an error at runtime?
Expand Down

0 comments on commit 98d006a

Please sign in to comment.