fix readthedocs and cython dependency #1211
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
During the release process of nnabla v1.36.0, we found the python package conflict for Readthedocs build environment, referred as #1207. This PR do fix the conflict and the documents are generated correctly. But after the release finished, the document is found that fail in switching between different version by the click button. User could only switch by manually modifying the URL.
The reason for this issue is also caused by python build environment. As the Sphinx is upgraded(though limited to be lower than 7), the sphinx-rtd-theme is still kept to be 0.4.3. This won't cause build error, however, would still cause such incompatibility. So in this PR, sphinx-rtd-theme is also upgraded.
For version <= 1.0.0, sphinx-rtd-theme shows no dependency requirement. For version <=1.1.1, >1.0, it requires sphinx >=1.6, <6. For version >=1.2.0, it requires sphinx >=1.6, <7. So we choose to limit sphinx-rtd-theme>=1.2.
In addition, the current CIs are blocked by the cython v3.0.0 which was released at 17th July.
This cause several Cython compile error during nnabla build, so we temporally limit the Cython version.