-
Notifications
You must be signed in to change notification settings - Fork 35
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
Added readthedocs config for documentation #339
Conversation
Hi @SagiPolaczek , Please let me know if anything is required on this. Thank you! |
@rakesh9177 Awesome, thanks! And sorry for the delay, had to be afk for couple of days. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again!
Two comments:
- The
mypy
workflow fails. You can (hopefully) see it here. Minor changes indocs/source/conf.py
are required. - While the landing page looks good, the others are empty. For example fuse package. This in contrast to other libraries, for example causallib where their landing page looks good but also other submodule have the same format (example).
Do you know what's the reason? Anything to change in our formatting? Or we need to play with the settings of readthedocs
(I compared them and it looks the same to me).
Hi @SagiPolaczek , Thanks for the review, I updated the conf.py file as per mypy. The landing page for modules requires a Readme.md file within each module package. we can do this by including the path of readme.md file in rst files. Thanks again! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rakesh9177 Thanks for addressing it! Great job! :)
Few comments:
- As for your question, it can be under
fuse.dl
(to match theREADME.md
file location and the script you added inconf.py
). - I pointed for some changes in the
conf.py
. I see that the script adds a pointer to theREADME.md
file for each.rst
one. Currently it looks like we walk on the wrong path. - There are more format & typing issues. My suggestion is to use pre-commit hooks - it will automatically do the format changes it can, and will enforce you to match the
mypy
typing format.
In order to do so just runpre-commit install
(firstpip install
the package of course).
Thank you for the review and tips @SagiPolaczek ! There are two ways to add readme file to rst file. 1)Manually add text like ".. mdinclude:: ../../fuse/dl/README.md" to rst files I am not sure why we would want to delete the below code because it is being appended to rst files when doing and os.walk() But If we want to use approach 1, we can remove all that code in conf.py which automatically links Readme to rst files. Thanks! |
@rakesh9177 My bad, I wasn't clear enough - I meant to delete the comment(s) and the actual code. Thanks for verifying that :) That's not a must, I just like don't like artifacts from previous changes. And thanks for the explanation! That's clear now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome @rakesh9177 , thanks again!
Lets wrap it up with the following:
- Uncomment the function in
conf.py
(again, my bad for not being clear enough). - Make sure it works OK. (I'll also try to rebuild the entire docs once it's done).
After those we'll be ready to merge.
Thanks again and wish you an happy new year!
Thanks @rakesh9177 ! FYI, I've opened an account on readthedocs, but before launching the repo's website I need to get permissions from my org admin. |
Great @SagiPolaczek , I have no plans to add extra changes. Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
@rakesh9177 Thanks for your contribution :) |
Readthedocs is configures, whenever a commit happens, it will update the docs automatically, make sure to update the readme.md file if new instructions are needed.
Please create an account on readthedocs and add your repo to publish the docs