tudat-team / tudat-space

An introduction and guide to tudat-space.
https://tudat-space.readthedocs.io
15 stars 17 forks source link

Use submodule for example notebooks #148

Closed larshinueber closed 2 months ago

larshinueber commented 2 months ago

This PR replaces the local jupyter notebooks for the examples shown on the website with the tudatpy-examples repo as a submodule. Changes made:

If there is any feedback on the approach (see #109 for the issue and https://github.com/tudat-team/tudatpy-examples/issues/13#issuecomment-2298717242 for the proposed workflow) please let me know!

Before merging

Please review and merge #145 first, as this branch builds on top of this

DominicDirkx commented 2 months ago

This looks good! Great to have this in there as a submodule :) One small note: the README should be updated to reflect the fact that the submodules should be initialized after pulling this repo, using (or similar): git submodule update --init --recursive

Another question: has this been tested with the online build on readthedocs?

larshinueber commented 2 months ago

Hi Dominic,

Thanks for the feedback, I just added the submodule instructions to the README in https://github.com/tudat-team/tudat-space/pull/148/commits/beeae9a3548d3b1cd24071f60d321dd186821f62 :)

Unfortunately I haven't tested the online build yet, I couldn't figure out how to trigger the doc builds manually for versions other than the latest and stable release. Does this need to be initiated from the readthedocs website?

DominicDirkx commented 2 months ago

Thanks! On the readthedocs website, you can trigger the build of any branch (I think), to test if it works. I'll have a look at it in the coming days (so many pull requests to go through! :) )

DominicDirkx commented 2 months ago

Tested: https://docs.tudat.space/en/feature-examples-submodule/index.html Works like a charm :)

larshinueber commented 2 months ago

Great to see this working as intended :) Do you have any hints on how to trigger the build manually on readthedocs? I couldn't find a way, maybe this is only possible for maintainers on readthedocs?

DominicDirkx commented 2 months ago

I have an option 'activate a version' here:

https://readthedocs.org/projects/tudat-space/versions/

Where I can trigger a build for any branch or tag

larshinueber commented 2 months ago

Oh I see, I'm missing this option:

image

Nothing of concern of course, maybe we could add this to the developer docs :)