nim-lang / Nim

Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
https://nim-lang.org
Other
16.58k stars 1.47k forks source link

c2nim, nim doc and doxygen #13638

Open FedericoCeratto opened 4 years ago

FedericoCeratto commented 4 years ago

Sometimes C sources processed by c2nim contain doxygen syntax e.g.:

## @mainpage My project
## @section intro_sec Introduction
## @param[in] flags Special options for this operation.

We could either have c2nim detect and strip them away or do it manually, but this is a bit wasteful because such comments are useful.

Alternative, nim doc could detect them and hide them from the output, as a first step.

In future, nim doc could use such comments to change HTML styling around sections, parameters and so on.

Partially related to #12353 #4517

timotheecour commented 4 years ago

related: