diff options
| author | Xavier Morel <xmo@odoo.com> | 2018-07-24 12:06:13 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2018-07-24 12:06:13 +0200 |
| commit | a56372a4caa8b716ac0a4c36b3265ddce2d7b8d1 (patch) | |
| tree | 876be16ae875c3b99c871ee258dd6385f9c4e9c3 /doc/_extensions/autojsdoc/parser/jsdoc.py | |
| parent | 26fbf933877ddfdb32d00f2c62d4434193406492 (diff) | |
[FIX] various broken JS docstrings
Resulting in sphinx warnings or ill-formatted doc all the way to the
doc not building at all.
Diffstat (limited to 'doc/_extensions/autojsdoc/parser/jsdoc.py')
| -rw-r--r-- | doc/_extensions/autojsdoc/parser/jsdoc.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/_extensions/autojsdoc/parser/jsdoc.py b/doc/_extensions/autojsdoc/parser/jsdoc.py index 55ec998c94f..ff6d3196254 100644 --- a/doc/_extensions/autojsdoc/parser/jsdoc.py +++ b/doc/_extensions/autojsdoc/parser/jsdoc.py @@ -233,6 +233,12 @@ class ModuleDoc(NSDoc): vars['exports'] = self.exports return vars + def __str__(self): + s = super().__str__() + if self['sourcefile']: + s += " in file " + self['sourcefile'] + return s + class ClassDoc(NSDoc): namekey = 'class' @property |
