Skip to content

Commit

Permalink
gh-38121: Make "[source]" link to develop branch on github
Browse files Browse the repository at this point in the history
<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes #12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes #12345". -->

This is a bug in #37589. I  made other small edits.

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - #12345: short description why this is a dependency -->
<!-- - #34567: ... -->

URL: #38121
Reported by: Kwankyu Lee
Reviewer(s):
  • Loading branch information
Release Manager committed May 31, 2024
2 parents c86c2bd + 1d0343e commit 973a7e3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build/pkgs/configure/checksums.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
tarball=configure-VERSION.tar.gz
sha1=8164bb387998beb2257d3e09f10697195e958860
sha256=981eb6316a4ff9179b0eb7242e23f4cb39e00372d2aa855efde6885e599e26e8
sha1=073570a8a0e80b27e70904471703583b24e59233
sha256=69d0ccc374f0f7e536c2ecabfdbb433615b771e9eb41456f75092f14ae52e1d7
2 changes: 1 addition & 1 deletion build/pkgs/configure/package-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
fb2b8c823bcc3f168c1e6e467f254557fa714db9
cbb8c24a5789cc48cb3a7c567d34903afd473970
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
4 changes: 2 additions & 2 deletions src/sage_docbuild/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ def linkcode_resolve(domain, info):
anchor = f'#L{lineno}'
else:
anchor = ''
return f"{source_repository}blob/{version}/src/{filename}{anchor}"
return f"{source_repository}blob/develop/src/{filename}{anchor}"
return None


Expand Down 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 973a7e3

Please sign in to comment.