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
JupyterBook/sphinx makes it easy to extend the HTML export by providing javascript and CSS files that should be loaded in the HTML files: if a javascript file foo.js is dropped in the _static directory, then it's automatically added to the export directory, and a <script> tag is added all generated html files to load it. Same for a CSS file.
Proposal
Provide any equivalent mechanism.
(bonus) provide the exact same mechanism to easy transition.
Use case
In my course notes, I am using a custom js/css extension that adds two sliders in the top bar to choose whether to display solutions and/or instructor notes which is much more convenient than having separate versions of the documents.
Being able to quickly hack such extensions empowers users to explore features they would want to have, until they become official features.
Oh, yes; thanks @choldgraf ! And I had even commented on those. Apparently I have a very short memory, and I failed my searches before creating a new issue :-) Sorry for the noise.
This issue can be closed, up maybe to a tiny action: mentioning in the above issues, and as source of inspiration, the sphinx approach
of simply throwing the css/js files in _static.
JupyterBook/sphinx makes it easy to extend the HTML export by providing javascript and CSS files that should be loaded in the HTML files: if a javascript file
foo.js
is dropped in the_static
directory, then it's automatically added to the export directory, and a<script>
tag is added all generated html files to load it. Same for a CSS file.Proposal
Use case
In my course notes, I am using a custom js/css extension that adds two sliders in the top bar to choose whether to display solutions and/or instructor notes which is much more convenient than having separate versions of the documents.
Being able to quickly hack such extensions empowers users to explore features they would want to have, until they become official features.
@choldgraf: maybe this issue could be added to #189?
The text was updated successfully, but these errors were encountered: