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
adding sphinx doc #1287
base: devel
Are you sure you want to change the base?
adding sphinx doc #1287
Conversation
It would be great to add a github action to build the docs. Have you tried the numpydoc plugin yet? |
Certainly, I will do so as soon as we settle on the appropriate workflow.
I could use this file in the github action to ensure that all future commits will not decrease the documentation coverage. |
Yes, I definitely think this would be useful |
I'm not sure how you want to take this into account? I suspect it was done so long ago that it needs redoing anyway. As I remember it the old docs were in the docs folder, but most of the code in there uses bad practices or doesn't work |
I don't have a strong preference for any of these. They all seem fine, I don't think it's worth coming up with our own. |
I'm not sure what I am looking at here. |
Okay then! |
Exactly, althought |
Ah, that sounds very useful as an action! |
The coverage actually reports the objects that were not included by the
In this example from with this commit, all the modules, classes, methods, functions ... have their section in the html files but most of it still needs work. The docstring style used throughout pyccel is not consistent and most of the docstrings are not consistent with the numpydoc style nor the google style. One such inconsistency is the use of In addition, some of the examples provided in the docstrings do not actually work. running |
I suggest we break this down into manageable sub issues. In theory we have been trying to use numpy doc string styles but @yguclu is the only person who actually checks for this in PRs, and we don't usually insist for small functions. What does google doc style look like? I suggest we proceed as follows:
|
I think it is important to understand why these classes/functions are ignored. This is a big commit though so I'm not sure where exactly you are fixing the problem. Can you link me to it so I can try and find what they have in common |
Sure. To start with, running
now we make the docs with
|
Here is the link to Google docstring style. This extension supports both numpy and google styles. The main difference is the naming os the sections |
How can I view the generated pages? Do I need to clone the repo and checkout the branch or can I see them via a link? |
At the moment, the pages are not hosted. thus you need to clone the repo and you will find them in |
@jalalium Did you ever look into this? Do you remember the name of the extension? |
Yes, here it is. It works with the |
Yes please :) |
@jalalium Do you happen to still have the command that you were using to generate these docs? The doc coverage has increased quite a lot since January so hopefully the results should be improved. It would be good to add the command to the PR somewhere too as we will need it when we are ready to do something permanent with this |
This commit aims to add the autogenerated sphinx documention. a build has already been performed to generate html pages. At this point, each module has its own separate page.