You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As SimpleITK Notebooks has now a ReadTheDocs page, we can use this issue to think about the infrastructure for converting the notebooks for the documentation.
The situation is the following:
Notebooks are stored in SimpleITK-Notebooks/Python/
but for the readthedocs, they need to be copied to SimpleITK-Notebooks/docs/source
I think it is possible to add the SimpleITK-Notebooks/Python as a source folder for sphinx.
Executing all notebooks locally on my machine took me about 30 minutes (I did not stop the time, just approx), , the free plan of the readthedocs page offers 15 minutes build time, so I think notebooks have to build locally for each release.
Pre rendered and empty notebooks take only a few minutes to be rendered, and also empty notebooks that are rendered to empty notebooks at readthedocs also go quickly.
That's why I see the following scenario:
At InsightSoftwareConsortium/SimpleITK-Notebooks can be a new branch called "readthedocs", where pre-executed notebooks are living.
Also, there will be the master branch, that contains the non-executed notebooks.
I highly recommend keeping the "build from pull request" option from readthedocs active, as it will give a preview of new added notebooks to this repo on the simpleitk-notebooks.readthedocs.io website and formatting issues can be quickly checked. Of course, the cells won't be executed there, but for finding basic formatting issues, that will be enough.
Then, once in a while, all notebooks from master can be copied to the readthedocs branch (before that, all previous notebooks on the readthedocs branch will be deleted) and rendered locally with the newest version of sitk. These will be then commited to the readthedocs remote branch. As soon as the page simpleitk-notebooks.readthedocs.io looks good, the notebook publisher can add a tag to the branch with a new release:
And readthedocs will know, that there is a most recent stable version, while older versions will be still kept available.
In the readthedocs settings, we can also adjust that the master branch is hidden, and that the readthedocs branch is the default for visitors of the documentation.
The most important document for sphinx, the index.rst file will have a section like this.
Renaming for new added notebooks should happen manually, right?
But I think it would be also possible to automate this.
As SimpleITK Notebooks has now a ReadTheDocs page, we can use this issue to think about the infrastructure for converting the notebooks for the documentation.
The situation is the following:
Notebooks are stored in
SimpleITK-Notebooks/Python/
but for the readthedocs, they need to be copied to
SimpleITK-Notebooks/docs/source
I think it is possible to add the
SimpleITK-Notebooks/Python
as a source folder for sphinx.Executing all notebooks locally on my machine took me about 30 minutes (I did not stop the time, just approx), , the free plan of the readthedocs page offers 15 minutes build time, so I think notebooks have to build locally for each release.
Pre rendered and empty notebooks take only a few minutes to be rendered, and also empty notebooks that are rendered to empty notebooks at readthedocs also go quickly.
That's why I see the following scenario:
At InsightSoftwareConsortium/SimpleITK-Notebooks can be a new branch called "readthedocs", where pre-executed notebooks are living.
Also, there will be the master branch, that contains the non-executed notebooks.
I highly recommend keeping the "build from pull request" option from readthedocs active, as it will give a preview of new added notebooks to this repo on the simpleitk-notebooks.readthedocs.io website and formatting issues can be quickly checked. Of course, the cells won't be executed there, but for finding basic formatting issues, that will be enough.
Then, once in a while, all notebooks from master can be copied to the readthedocs branch (before that, all previous notebooks on the readthedocs branch will be deleted) and rendered locally with the newest version of sitk. These will be then commited to the readthedocs remote branch. As soon as the page simpleitk-notebooks.readthedocs.io looks good, the notebook publisher can add a tag to the branch with a new release:
And readthedocs will know, that there is a most recent stable version, while older versions will be still kept available.
In the readthedocs settings, we can also adjust that the master branch is hidden, and that the readthedocs branch is the default for visitors of the documentation.
The most important document for sphinx, the index.rst file will have a section like this.
Renaming for new added notebooks should happen manually, right?
But I think it would be also possible to automate this.
The text was updated successfully, but these errors were encountered: