-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Automatic docs #465
Comments
I will try, but it may be huge change in code so maybe split it to some smaller tasks... |
agreed. can we go maybe one page at a time? otherwise there'll be merge conflicts everywhere. |
Just checking the PyTorch and they are using |
@Borda I strongly suggest switching to sphinx. |
About implementations, we can setup sphinx in some folder, while leaving the current mkdocs as it is. In this case there won't be much conflict. It would be nice if we maintain some guide for newcomers in mkdocs, while we maintain detailed api docs in sphinx. What do you think? Or perhaps we just move everything inside sphinx after the migration. |
I would like, just wait for @williamFalcon approval
I have just found this old issue mkdocs/mkdocs#20 which did not pleased me...
I know, I have created a few projects with Sphinx and also you can generate pdf documentation attached with each release...
Sounds good to me...
We do not remove the cookbook completely, it can stay there until all need sections move to docstrings...
the MkDocs is mainly just a config :]
I think that we would develop in a PR |
I don't see any reason to maintain both Sphinx and mkdocs in the long-term. Sphinx can read markdown (supposedly, I haven't tried it). We might even be able to load the current docs into Sphinx as an intermediate step. I'm in favor of transitioning to Sphinx, mainly for its ability to auto-generate API docs, but going through and fixing all of our docstrings is going to be a significant undertaking. To be clear, I think fixing docstrings is absolutely something we should do anyway, but let's not pretend this will be an easy switch. |
For sure we would stay just with one... I meant that the MD files in MkDOcs can be simply used in Sphinx
yes, it can handle even ipython notebooks (I have tested)
yes
I do agree |
|
As we're getting into this, we'll need to make a decision about docstring styles. It looks like what docstrings we have make some attempt at following the Sphinx native format, while PyTorch uses Google-style docstrings. I'm partial to the Google-style docstrings, as they're more human-readable. |
I was using similar to Sphinx, but a bit more compressed
|
I know it was proposed before and I tabled it but I think it's time to reconsider so docs can scale easier.
Let's use whatever PyTorch uses and do documentation in the code (i assume that's how it's done?).
Anyone want to take a stab at this? @Borda
The text was updated successfully, but these errors were encountered: