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
Improve documentation on contributing to documentation #8082
Conversation
Hi @cocobennett , thanks for your interest in contributing to Read the Docs! I notice that this PR is still marked as draft, so let us know when it's ready to receive feedback. Also, I noticed that the branch contains a spurious merge commit, I think it would be better if you |
Thanks @astrojuanlu, you're welcome and I'm happy to help! Right now, I'm trying to figure out how to contribute locally so I can write up those instructions and will let you know! And great tip, thank you. I will rebase instead |
@astrojuanlu Actually, if you could help me, I am having one issue. I've followed the instructions here https://docs.readthedocs.io/en/stable/development/install.html (including the read-only settings) |
when editing the policy you need to leave the "prefix" field empty and click on add. After your first build you'll see that there is another bucket named "media" and you'll need to do the same. We should make this more clear with a screenshot maybe |
Thank you, that worked! Now I'm one step closer. Not sure if the problem was me or the documentation, probably me :D |
7b03a74
to
524245c
Compare
Moving this to Ready for Review because I've added basic instructions for both in the UI and locally, as well as rebased correctly. I need help in step 2 of the local instructions as I myself don't know how to get from http://community.dev.readthedocs.io/ to my development version of the documentation. Thanks! |
Hey there, I'd really like to help contribute here for myself and other newcomers. I'm trying to figure out how to find my development version of the docs after getting I've tried clicking the "Documentation" link at the very bottom but this leads to me the actual live documentation I've also tried guessing various urls based on the url generated from this PR itself, which is
Any tips would be appreciated. |
By the way, I opened #8090 to clarify the MinIO settings, I agree they're confusing. |
I wonder if the links on the footer should be relative instead of absolute.
You'd need to follow some extra steps that, to my knowledge, are not documented yet:
In my opinion, these steps should be in https://docs.readthedocs.io/en/stable/development/install.html#set-up-your-environment, as a way to do an end-to-end test to check if everything worked. cc @readthedocs/core |
Sounds good to me! I'd add a section after "Set up your environment" communicating this and making sure that everything is working as expected. |
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.
Left a couple of comments, but I think this is a step in the right direction!
Thanks for the review and for the instructions @astrojuanlu ! I'm not sure which steps should be in "Setup your Environment" vs what steps should be listed in the file I'm editing here, so I've added them all to the current file for now. Maybe just the first step to ensure logging in as admin/admin works? I ran into another issue though, both this link (http://read-the-docs.community.dev.readthedocs.io/en/latest/) and the "View Docs" button in the UI both lead me to this page instead of the documentation |
I believe this is another Minio permissions issue. You need to do the same thing for the |
Done for the night. Hit a roadblock with a bunch of pip installs not found in the |
Indeed,
This is essentially what `tox -e docs` does:
The Line 31 in db24ee1
and there was some previous discussion about what would be the best way to do this: #7037 (comment) It would be interesting to analyze if we are already in a position to simplify this. 1 it's easier if run from Python 3.7, because |
EDIT: Just figured out the 3.7 python hint, and I'm running later than that. Please disregard below. I will retry tonight with python 3.7 Thanks! In a clean venv, I ran
|
Even with a python3.6 environment, I ran
Maybe using the UI should be good enough if contributors don't setup the full stack? |
Beware! For some reason, I think your |
Thanks for the hint @astrojuanlu , that was the issue!!! I ran the pip commands separately since tox was using 3.8 and that worked for me :) I'm ready for the final review now. Thanks for all the fast feedback! |
requirements/testing.txt
Outdated
@@ -17,7 +17,7 @@ execnet==1.8.0 | |||
# supported platform. | |||
# mercurial-scm.org/wiki/SupportedPythonVersions | |||
# (Pinned to 4.4.2 since what we need for testing is still useful) | |||
Mercurial==4.4.2 # pyup: ignore | |||
# Mercurial==4.4.2 # pyup: ignore |
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.
For some reason, this kept failing, but everything else worked when I commented it out. I'm sure this is used elsewhere so I know this should be handled a better way
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! I left a suggestion to use sphinx-autobuild
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 for sticking with us! Sorry you had to setup the whole RTD instance with docker when it wasn't needed.
No problem! I learned a lot. So happy to see this through :) |
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.
I think this is definitely an improvement, and I'm happy that it sparked a couple of useful conversations (#8090, #8108). Thanks a lot @cocobennett!
pip install -r requirements/testing.txt | ||
pip install -r requirements/docs.txt |
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.
Shouldn't we walk the user through the steps to create a virtualenv for this?
.. prompt:: bash | ||
|
||
cd readthedocs.org | ||
pip install -r requirements/testing.txt |
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.
Do we need requirements/testing.txt
to work on the docs?
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.
At the moment they're needed, yes. Otherwise some dependencies are missing.
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.
(It's up to debate whether we should organize our dependencies in a better way, or improve the naming of the requirements files, see #7037 (comment))
Fixes #8042