-
Notifications
You must be signed in to change notification settings - Fork 38
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
Docs #67
Docs #67
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Codecov Report
@@ Coverage Diff @@
## master #67 +/- ##
=======================================
Coverage 79.62% 79.62%
=======================================
Files 3 3
Lines 324 324
Branches 59 59
=======================================
Hits 258 258
Misses 43 43
Partials 23 23
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Hey @zmoon, first of all sorry for the late reply. I was just completely swamped with other projects. Is this PR ready for review or can I help with anything? |
Hi @jbusecke yeah I think it is ready for your initial review. I didn't do this yet:
I think I was waiting to see what you thought Also have to configure ReadTheDocs and add link to readme, etc., but can do that after you review the initial docs. |
Also, for the rotating globe examples, I think a dataset that covers the whole globe would be more exciting, maybe you have something in mind that would be easy to use? |
I think it would be nice to get started with a smaller example and then build on it with further PRs? I just activated RTD builds for PRs, but I am not sure if it will run if I just restart the GH actions (which I just did). |
It seems like it is not triggering. So I guess that is even more reason to merge this now and see how it looks haha. |
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 a ton @zmoon for all these changes. I really appreciate all the work you put into this (I only just now realized how much is fixed here 🤪).
I made a few suggestions. Once those are implemented I will build it locally and then merge?
# | ||
- pip | ||
- pip: | ||
- '-e ../' # xmovie |
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 am not sure about this part here. I would prefer to add a short contributor guide, with instructions on how to set up the env and then install xmovie with pip install -e .
, because this here might mess with RTD?
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.
The issue is that xmovie
needs to be installed or at least importable (for setuptools_scm to have worked) since I am loading the version from it. This is a pretty foolproof method. I can confirm it is valid Conda env spec and doesn't mess with RTD.
Xarray does the same thing.
I do think contributor guide with instructions for setting up the envs for normal work and docs work would be a good addition!
Yeah, I don't think it will until the config file is in the default branch. And then if you want to build for PRs you have to enable in your settings (Edit: now I see that you said earlier that you already did this). |
Ok yeah, future PR for changing or adding example makes sense, just wanted to mention it. |
Definitely did that, but I think I have encountered this before. Ill merge this once the changes are implemented. |
- more detailed install instructions - trim install instructions in readme
@jbusecke I think it is ready for you to check out the build locally and let me know what you think |
Just built it locally and it looks great! Ill merge this now and we can see how it looks on RTD |
Looks like it got |
Oh darn. I retriggered the build, but I am pretty sure it will fail again. Are we executing the notebooks on RTD? We might want to switch back to just pushing rendered notebooks...xmovie might be a bit resource hungry for the RTD resources? |
I also have the option to do this: But I am not quite sure about the implications. Do you have any experience with this @zmoon ? |
By default nbsphinx won't execute the nbs unless they are output-free. So we don't have to worry about that (they are stored in the repo with the outputs). That first failure was during the Conda env creation; it didn't even get to the docs build. And I see this time it has been stuck there for a while too. Given that we are not executing the nbs, maybe after #71 I can create a minimal I haven't tried the "Remove build environment for latest", but it doesn't sound like it would hurt anything, might as well try it. |
I think reducing the dependencies is a good thing, no matter what. We could also try to use mamba to solve this issue. I believe I have done that in another project of mine (Ill dig through some repos later). |
I put together an initial docs build, addressing #60 and #13.
xmovie-docs
for docs build placed inci/
To build the docs locally to check it out:
Remaining:
more docstrings?