Skip to content

Commit

Permalink
Misc edits
Browse files Browse the repository at this point in the history
  • Loading branch information
kwankyu committed May 31, 2024
1 parent f74ab37 commit 1d0343e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/doc/common/static/jupyter-sphinx-furo.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function handlePrefersColorSchemeChange(e) {
prefersDarkMode.addEventListener('change', handlePrefersColorSchemeChange);


// Change the editor theme of a new CodeMirror cell.
// Change the editor theme of a new CodeMirror cell
const callback = function(mutationsList, observer) {
for(const mutation of mutationsList) {
if (mutation.type === 'childList') {
Expand Down Expand Up @@ -113,7 +113,8 @@ thebelab.on("status", function (evt, data) {
}
});

// Activate Thebe when "Sage (live)" tab is clicked

// Activate Thebe when "Sage Live" tab is clicked
document.querySelectorAll('input[class="tab-input"]').forEach((elem) => {
elem.addEventListener("click", function(event) {
if (elem.nextElementSibling) {
Expand Down
2 changes: 1 addition & 1 deletion src/sage_docbuild/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ def add_page_context(app, pagename, templatename, context, doctree):
# https://pradyunsg.me/furo/customisation/edit-button/#adding-an-edit-button
# This works well if the source file is '.rst' file. But the '.rst'
# files in the directory 'sage/' are generated by the Sphinx
# autodoc from the Python or Cython source files. Hence we teak
# autodoc from the Python or Cython source files. Hence we tweak
# here template context variables so that links to the correct
# source files are generated.
suffix = '.py' if importlib.import_module(pagename.replace('/','.')).__file__.endswith('.py') else '.pyx'
Expand Down

0 comments on commit 1d0343e

Please sign in to comment.