vanilla icon indicating copy to clipboard operation
vanilla copied to clipboard

Missings docs (FloatingWindow, Window…)

Open justinpenner opened this issue 1 year ago • 3 comments

https://vanilla.robotools.dev/en/latest/objects/Window.html https://vanilla.robotools.dev/en/latest/objects/FloatingWindow.html

Most doc pages begin with the class constructor and some examples and descriptions, like the image below. This is missing from the Window and FloatingWindow doc pages linked above. It seems like these two classes are documented properly in the source code, so maybe there is a small syntax error preventing them from being pulled into the docs?

image

Additionally, I noticed two doc pages are completely empty:

https://vanilla.robotools.dev/en/latest/objects/Sheet.html https://vanilla.robotools.dev/en/latest/objects/List.html

justinpenner avatar Mar 22 '24 16:03 justinpenner

Would you be willing to contribute a PR?

justvanrossum avatar Mar 22 '24 16:03 justvanrossum

I'll take a closer look. I've never used Sphinx before, but I think I understand the gist of how it works (class/method defs and docstrings w/ markup are parsed into .rst format, then Sphinx generates .html doc pages).

justinpenner avatar Mar 22 '24 16:03 justinpenner

I suspect Window and FloatingWindow are being excluded due to their inheritance of NSObject. I noticed the Sphinx conf.py has a Mock class that seems to have a list of classes to be ignored. If that's where the problem lies, I'm not sure whether to remove NSObject from Mock.__all__, or if it would be enough to simply remove :inherited-members: from the autoclass declaration in Window.rst.

If anyone more knowledgeable of Sphinx can finish solving this, please do. Otherwise I'll come back to this later when I have time to clone the repo and figure out how to run Sphinx.

justinpenner avatar Mar 22 '24 18:03 justinpenner