-
Notifications
You must be signed in to change notification settings - Fork 303
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
Fixing contributing.rst access on windows systems #2890
Fixing contributing.rst access on windows systems #2890
Conversation
Pull Request Test Coverage Report for Build 10602559011Details
💛 - Coveralls |
Hi everyone, In this PR, I have mainly focused on modifying the At this point, if you try to run the pre-commit checks, the end-of-file checker will add a This behavior confuses the ReadTheDocs build workflow entirely, likely because it runs on Linux and attempts to read a link source such as The solution I’ve implemented here is to avoid using a symlink altogether and instead rely on the RST With this change, the ReadTheDocs build seems to work fine, and access to the So, I’m now marking this PR as ready for review. Of course, please let me know if you think there’s anything that should be changed before it can be merged. Thanks 🙏! |
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 this effort. And thanks for letting us know this causes issues on Windows. I have another suggestion based on something I've seen in other projects and something I've done in my own projects. What if we move the contents of /CONTRIBUTING.rst
to the doc/source/dev_guide/CONTRIBUTING.rst
file? Then replace the contents of /CONTRIBUTING.rst
with a simple sentence like "See for information on contributing".
This has a couple benefits:
- Everything rendered in the docs is in the
docs/
sub-directory. - We could potentially use all the rendering tricks provided by sphinx and our configuration of our sphinx documentation. The user should typically only see the final result on the readthedocs website.
Thoughts?
Hi @djhoese , Thanks for your review and feedback on this PR. Concerning your request for change above, I also think it's a good idea to keep all the sources for the doc generation self-contained in the doc/ folder. Now, from a "github perspective", I think the /CONTRIBUTING.rst file is the most important one; and this is the target that will be used at different locations on github, for instance just at the bottom of this page ;-). And I would say that "contribution guidelines" are most of the time used by developers while doing some work: so there is also a good chance this /CONTRIBUTING.rst file will be accessed regularly for reference. That's why I would suggest providing an actual link to the rendered guidelines in this file, so something like that in the end:
Note: I also considered using the rst include statement there (ie. => I have prepared another test branch on this, updating the two CONTRIBUTING.rst files accordingly (https://github.com/roche-emmanuel/satpy/tree/moving_contributing_rst). If this sounds OK to you then I can proceed with merging that other branch into this one (Or should I wait for the review from Martin before introducing more changes on this PR anyway ? Please let me know in this case) |
@roche-emmanuel you definitely don't have to wait for me to continue :) |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2890 +/- ##
=======================================
Coverage 96.05% 96.05%
=======================================
Files 370 370
Lines 54320 54320
=======================================
Hits 52177 52177
Misses 2143 2143
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Hi @djhoese , I have now merged the changes discussed above on this branch. Please let me know if you think this should be done differently when you get a chance to review this update. Thanks 😉🙏! |
I believe the README link was created a long time ago when either we assumed that GitHub didn't find a README with a filename extension or it didn't actually work so we needed it. It doesn't look necessary anymore so I'm good with the removal. |
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.
Looks good to me. @mraspaud any last comments before this is merged?
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!
This is a simple pull request to validate the changes automatically introduced with the precommit checks and fix the readthedocs automatic build accordingly.
AUTHORS.md
if not there already