From a56372a4caa8b716ac0a4c36b3265ddce2d7b8d1 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 24 Jul 2018 12:06:13 +0200 Subject: [FIX] various broken JS docstrings Resulting in sphinx warnings or ill-formatted doc all the way to the doc not building at all. --- doc/_extensions/autojsdoc/parser/jsdoc.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc/_extensions/autojsdoc/parser/jsdoc.py') 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 -- cgit v1.2.3