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
Update requirement sphinx-book-theme to ~=1.0.0 #1953
Update requirement sphinx-book-theme to ~=1.0.0 #1953
Conversation
1ab5ef8
to
07f2df2
Compare
|
My understanding is that in general, for releasing conda packages it's best to not depend on RCs and instead to have not only all dependencies be unpinned, but also to point to final releases (I'm not an expert in the topic, so others can correct this if I'm missing something). Under that assumption, then big 👍 for this - I'd much rather deploy jbook once this is merged, as it will remove the last rc-only pin and thus make deployments a lot easier (and we may also get a clean conda package to go along :) |
Tests The produced file contained: <input class="toctree-checkbox" id="toctree-checkbox-1" name="toctree-checkbox-1" type="checkbox"/>
<label class="toctree-toggle" for="toctree-checkbox-1">
<i class="fa-solid fa-chevron-down">
</i>
</label>
<ul>
<li class="toctree-l2">
<a class="reference internal" href="subfolder/asubpage.html">
Asubpage
</a>
</li>
</ul> and the saved files contain <input class="toctree-checkbox" id="toctree-checkbox-1" name="toctree-checkbox-1" type="checkbox">
<label class="toctree-toggle" for="toctree-checkbox-1">
<i class="fa-solid fa-chevron-down">
</i>
</label>
<ul>
<li class="toctree-l2">
<a class="reference internal" href="subfolder/asubpage.html">
Asubpage
</a>
</li>
</ul>
</input> The difference is the I could change the saved file to fix the CI but is it the right thing to do? |
Maybe the simplest syntax to use would be I do suspect some of the regression tests will need to be updated since the HTML structure changed. We will also need to update some of the documentation as it's now out of date I think. |
|
For sure this 👍
I would suggest essentially this comes down to, whether you feel jupyter-book is responsible for stability or the user is. If it is changed, I would suggest it should be made very clear, in places like https://jupyterbook.org/en/stable/start/overview.html#install-jupyter-book, that it is the users' responsibility to create e.g. lock files, to ensure their book builds are stable But anyhow, I'll leave you guys to it 😄 |
(And yeh, there is also this related question of whether people should be using the same python environment for jupyter-book and jupyter kernels; #1898 (comment)) |
Excellent question @chrisjsewell, thanks - thinking about it this way gives me something to discuss with our Stat 159 students - pinging @facusapienza21 so we don't forget :) My take on this is that libraries should be flexible in leaving as few pins as possible, so as to allow packages to be more easily combined in new ways, even if some of them prove to have problems. But users should be stricter in their own workflows, and use environments with more explicit control of at least the key libraries they rely on. So I'd vote for jbook (and similar) to minimize pins/constraints as much as possible. keeping it to avoiding things known to simply not work together, but particularly not constraining against future evolution. And users should be the ones specifying their working versions for a given project. Yes, this does leave open the door for users to occasionally find a combination that packages that in practice doesn't work, but I think that's easier to handle, whereas the "environment simply can't be installed" tends to be a hard wall that they can't get past. |
I would note, that perhaps the original intention of jupyter-book was to be an application and not a library, i.e. then it would hard pin everything. The other thing to note is that, complimentary to relaxed pinning etc, is just to remove dependencies.
to current:
e.g. there will no longer be any nbconvert/ipywidgets clashes, because jupyter-book no longer depends on them 😄 |
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #1953 +/- ##
=======================================
Coverage 91.42% 91.42%
=======================================
Files 7 7
Lines 688 688
=======================================
Hits 629 629
Misses 59 59
Flags with carried forward coverage won't be shown. Click here to find out more. Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
0e6214f
to
d665089
Compare
d665089
to
0b0e69a
Compare
CI is green with I have no idea where and how to update the documentation 🙂 |
thanks everyone -- I completely agree re: not typically using -- thanks @paugier for opening this repin and commenting on the changes
I am looking at the updated fixtures and it seems they are all just dropping Could someone with better I'd like to push this forward -- and have a look at the latest |
ah just re-read @choldgraf feedback
I agree with this -- but we can do this as part of the next release cycle for |
but if someone can verify the |
@mmcky yes, the |
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 for reviewing the html
@AakashGfude -- I will go ahead and merge this with a note to update the docs
.
It would be great to be able to use sphinx-book-theme 1.0.0!
See #1842 (comment)