onury / docma

A powerful tool to easily generate beautiful HTML documentation from JavaScript (JSDoc), Markdown and HTML files.
https://onury.io/docma
MIT License
334 stars 34 forks source link

Prevent "parent" description being used for properties when empty #89

Open OmgImAlexis opened 5 years ago

OmgImAlexis commented 5 years ago

The other properties on the object with a description are fine, it's just the ones without one that're the issue.

/**
 * Global variables
 *
 * @typedef Core~Var
 * @type Object
 * 
 * @property {boolean} bindMgt

This is a part of my jsdoc.json from docma --debug.

{
    "description": "Global variables",
    "kind": "typedef",
    "name": "Var",
    "type": {
        "names": [
            "Object"
        ]
    },
    "properties": [{
        "type": {
            "names": [
                "boolean"
            ]
        },
        "name": "bindMgt"
    }]
}

This is the output. Screen Shot 2019-08-26 at 5 01 58 pm