mesa
mesa copied to clipboard
All functions with @solara.component annotation missing on read the docs
Something weird is going on: all functions annotated with @solara.component are not included in the read-the-docs API overview. I have checked the error log on RTD (we need to some cleaning...., but that's a seperate issue). I can't find anything related to this. No idea what is going on.
Strange. @maartenbreddels, if I may ask, have you encountered this earlier by any chance?
No, that's strange indeed. Looking at this example it seems that the docstring is passed 'up' to the decorator.
My hunch is that the wrapper in solara.component should itself be annoted with functools.wraps to solve this problem. According to the docs "Without the use of this decorator factory, the name of the example function would have been 'wrapper', and the docstring of the original example() would have been lost."
Hey @quaquel, I would like to contribute to this issue. Could you assign it to me?
Hey @Edu92337, yeah you can start working on the issue but it would be helpful if you could list your approach beforehand.
In my understanding it's an upstream problem in Solara, so there is little we can do in MESA itself to fix the issue.