Thread overview
Ddoc and struct members
Dec 14
n00nb
December 14
Hi all!

How do I generate documentation for struct members using ddoc?

I don't understand if there is a way to generate documentation for all the members without putting a '///' over every member
December 14
On 14/12/2017 3:16 AM, n00nb wrote:
> Hi all!
> 
> How do I generate documentation for struct members using ddoc?
> 
> I don't understand if there is a way to generate documentation for all the members without putting a '///' over every member

There isn't.
December 14
On Thursday, 14 December 2017 at 03:17:10 UTC, rikki cattermole wrote:
> On 14/12/2017 3:16 AM, n00nb wrote:
>> I don't understand if there is a way to generate documentation for all the members without putting a '///' over every member
>
> There isn't.

It doesn’t need to take any vertical space though:

“If the documentation comment appears on the same line to the right of a declaration, it applies to that.“ [1]

[1] https://dlang.org/spec/ddoc.html