Best practices for Sphinx? #1147
-
Nanobind's docstring does not conform to the expected format for Sphinx (e.g. first line of doc is the function signature, not a function summary). Does anyone have an example of how they use nanobind with sphinx, or recommendations on best practices? Edit: The issue was actually with the way |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I am surprised to hear this. I use Sphinx with all my nanobind-based projects, and on my end it understands the format where the first N lines are overloads. So: further evidence needed, and I am also curious what you think the expected format is. |
Beta Was this translation helpful? Give feedback.
Some of the she sphinx
auto*
tools don't recognize nanobind functions because they are based on a custom typenb_func
instead of being a Python builtin or a C function.This should likely be raised with them at some point. What I usually do is to list each of the functions manually 🤷