-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Add guide for requirements from #3636 #4212
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
Conversation
The original PR got confused about files changes. I cherry picked these from the history. Hopefully this is most of the changes Closes #3636
I think we've discussed most of the content changes at this point. I guess we're mostly concerned with if these files look the same as the original. A quick glance looks like things are okay though. |
- Documenting multiple packages | ||
- setup.py not in root directory | ||
|
||
See :ref:`faq_document_package_not_at_root` |
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.
We can use the autosectionlabel feature here
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'm not too concerned with the content, I'm not that author here
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.
Agree with Santos here so we have most of our docs using the same pattern. The ref would look like:
:ref:`faq:Can I document a python package that is not at the root of my repository?`
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.
This looks good.
I just made some comments to be considered but I don't want to block on them.
|
||
Using the YAML configuration file | ||
--------------------------------- | ||
The recommended approach for specifying a pip requirements file is to use a readthedocs.yml file. |
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'd use `readthedocs.yml` here (quotes for code)
|
||
|
||
.. _`pip user guide`: : https://pip.pypa.io/en/stable/user_guide/#requirements-files | ||
.. _`conda and environment.yml`: : https://conda.io/docs/user-guide/tasks/manage-environments.html |
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.
are these :
duplicated here?
- Documenting multiple packages | ||
- setup.py not in root directory | ||
|
||
See :ref:`faq_document_package_not_at_root` |
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.
Agree with Santos here so we have most of our docs using the same pattern. The ref would look like:
:ref:`faq:Can I document a python package that is not at the root of my repository?`
Additional Uses | ||
~~~~~~~~~~~~~~~ | ||
- Documenting multiple packages | ||
- setup.py not in root directory |
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 don't really understand this section. I think it would be better if an introduction paragraph is added instead of just a two item list with a link.
.. code-block:: yaml | ||
|
||
conda: | ||
file: environment.yml |
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.
There are some weird spaces here: probably tabs mixed with spaces.
Cleaned this up and should be merge ready. |
The original PR got confused about files changes. I cherry picked these from the
history. Hopefully this is most of the changes
Closes #3636