Use specific nilearn version for building all docs #434
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.
Reference issue
In #433 the version of nilearn used in the CI was updated to be the main branch and examples and code were changed to work with breaking changes in nilearn 0.9. However, old versions of MNE-NIRS do not work with this nilearn 0.9.
The doc system for MNE-NIRS builds the docs for all versions of the software when a change is made to main. However, all versions are built with the same dependencies. So, due to the change in #433 all previous versions of MNE-NIRS documentation are not building.
The reason all versions of the docs are built each time is so that the banners pointing you to the latest version are updated and so is the version dropdowns etc.
What does this implement/fix?
This PR changes the version of nilearn that the docs are built with to be the last release version. All versions of MNE-NIRS should work with nilearn 0.8.1
Additional information
This is not a sustainable change. I see a few options moving forward
Thoughts @larsoner ?