| 261 | === Adding description and keywords === |
| 262 | |
| 263 | Each module needs to have a description and at least 3 keywords. Here an example from general/g.list/main.c: |
| 264 | |
| 265 | {{{ |
| 266 | G_gisinit(argv[0]); |
| 267 | |
| 268 | module = G_define_module(); |
| 269 | G_add_keyword(_("general")); |
| 270 | G_add_keyword(_("map management")); |
| 271 | G_add_keyword(_("list")); |
| 272 | G_add_keyword(_("search")); |
| 273 | module->description = |
| 274 | _("Lists available GRASS data base files of " |
| 275 | "the user-specified data type optionally using the search pattern."); |
| 276 | }}} |
| 277 | |
| 278 | Notes: |
| 279 | * the **first** keyword is the module family (**g**.list belongs to "general") which go to the [https://grass.osgeo.org/grass74/manuals/general.html module family index] in the manual |
| 280 | * the **second** keyword is the overall topic which go to the [https://grass.osgeo.org/grass74/manuals/topics.html topic index] in the manual |
| 281 | * the **third* (and more) keyword is describing further keywords which go to the [https://grass.osgeo.org/grass74/manuals/keywords.html keyword index] in the manual |
| 282 | |
| 283 | These index manual pages are autogenerated during the build process of GRASS GIS. |