-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOC]: Format function signatures #2339
Comments
After some investigation, there is supposedly a Sphinx-level config sphinx_conf_py_extra = """
cpp_maximum_signature_line_length = 20
""" added to the
However, it is not currently widely available:
Waiting to hear back when it might be usable in "public" and then will first try updating to see if that improves things on its own. |
Replies from Andrew:
and
So unfortunately I am not sure that a "full" short-term solution would be available, since checking in the newer versions to public repos is not permissible. There might be some CSS tricks to play. |
OK this small CSS change will offer some relief /* Newlines (\a) and spaces (\20) before each parameter */
dl.cpp.function .sig-param::before {
content: "\a\20\20\20\20";
white-space: pre;
}
/* Newline after the last parameter (so the closing bracket is on a new line) */
dl.cpp.function dt em.sig-param:last-of-type::after {
content: "\a";
white-space: pre;
} |
Per offline discussion I will investigate building the docs with "plain" sphinx, so that the version of sphinx can be updated, and relevant options can be enabled directly via standard |
A JIRA ticket is open with repo_docs to address the template parameter formatting: https://jirasw.nvidia.com/browse/OMPE-34506 |
Is this a duplicate?
Is this for new documentation, or an update to existing docs?
New
Describe the incorrect/future/missing documentation
After transitioning to Sphinx-based documentation, we've lost formatting of function signatures along with the majority of syntax highlighting. This makes reading reference documentation an actual challenge:
We should investigate if there's any way to a) format function signatures to at least get each parameter on a new line, b) return syntax highlighting.
If this is a correction, please provide a link to the incorrect documentation. If this is a new documentation request, please link to where you have looked.
No response
The text was updated successfully, but these errors were encountered: