Use Sphinx-friendly formatting for overloaded functions documentation.
Sphinx doesn't allow sections inside the function documentation and gives tons of SEVERE warnings for them, so while just emphasizing the "Overload" header is not ideal, it is better than before because at least the string "Overload" itself appears in the Sphinx-generated output.
This commit is contained in:
parent
eaf63ba47d
commit
ea1d56da67
4 changed files with 9 additions and 26 deletions
|
|
@ -692,10 +692,8 @@ String *PyDocConverter::makeDocumentation(Node *n)
|
|||
for (int realOverloadCount = 0;
|
||||
realOverloadCount < (int) allDocumentation.size();
|
||||
realOverloadCount++) {
|
||||
concatDocString << generateDivider() << std::endl;
|
||||
concatDocString << "Overload " << (realOverloadCount + 1) << ":"
|
||||
concatDocString << "*Overload " << (realOverloadCount + 1) << ":*"
|
||||
<< std::endl;
|
||||
concatDocString << generateDivider();
|
||||
concatDocString << allDocumentation[realOverloadCount] << std::endl;
|
||||
}
|
||||
pyDocString = concatDocString.str();
|
||||
|
|
@ -744,9 +742,3 @@ String *PyDocConverter::makeDocumentation(Node *n)
|
|||
|
||||
return NewString("");
|
||||
}
|
||||
|
||||
std::string PyDocConverter::generateDivider()
|
||||
{
|
||||
static string dividerString(DOC_STRING_LENGTH, '-');
|
||||
return dividerString;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue