Skip to content

Commit

Permalink
release 10.4
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldschilly committed Jul 24, 2024
1 parent 87e3c90 commit 8803f1a
Show file tree
Hide file tree
Showing 8,205 changed files with 1,734,206 additions and 524,740 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion html/ca/intro/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: beb9fd6c124d2415b19908bd012648a5
config: ede1101aa524ab9ae1d3d3e6d3836036
tags: 645f666f9bcd5a90fca523b33c5a78b7
2 changes: 1 addition & 1 deletion html/ca/intro/_static/copybutton.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ var copyTargetText = (trigger) => {
let exclude = '.linenos, .c1';

let text = filterText(target, exclude);
return formatCopyText(text, 'sage: |[.][.][.][.]: |\\$ ', true, true, true, true, '', '')
return formatCopyText(text, 'sage: |[.][.][.][.]: |>>> |[.][.][.] |\\$ ', true, true, true, true, '', '')
}

// Initialize with a callback so we can modify the text before copy
Expand Down
53 changes: 53 additions & 0 deletions html/ca/intro/_static/custom-furo.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,56 @@ a.pdf:hover {
text-decoration: none;
}

/* Style for announcement banner */

.announcement {
background: orange;
}

.announcement-content {
color: black;
}

.announcement-content a {
color: white;
text-decoration: none;
}

/* Style for the floating versions menu */

.sidebar-drawer {
z-index: 100;
}

.select-wrapper {
display: block;
text-align: center;
}

#versions-menu {
display: inline-block;
font-size: small;
opacity: 1;
border: none;
background-color: transparent;
color: var(--color-sidebar-link-text--top-level);;
}

#versions-menu:focus {
outline: none;
}

body[data-theme="dark"] {
#versions-menu {
background-color: transparent;
}
}

@media (prefers-color-scheme: dark) {
body[data-theme="auto"] { /* the same styles with body[data-theme="dark"] */
#versions-menu {
background-color: transparent;
}
}
}

78 changes: 37 additions & 41 deletions html/ca/intro/_static/custom-jupyter-sphinx.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
div.jupyter_container {
margin: .5rem 0;
border: 0;
}

div.jupyter_container + div.jupyter_container {
Expand Down Expand Up @@ -96,45 +96,41 @@ body[data-theme="dark"] {
}

@media (prefers-color-scheme: dark) {
body[data-theme="auto"] { /* the same styles with body[data-theme="dark"] */
.jupyter_container {
color: white;
background-color: black;
}

.jupyter_container .highlight {
background-color: black;
}

.thebelab-button {
color: #d0d0d0;
background-color: #383838;
}

.thebelab-button:active {
color: #368ce2;
}

#thebelab-activate-button {
background-color: #383838;
}

#thebelab-activate-button:active {
color: #368ce2;
}

.thebelab-cell .jp-OutputArea-output {
color: white;
background-color: black;
body[data-theme="auto"] { /* the same styles with body[data-theme="dark"] */
.jupyter_container {
color: white;
background-color: black;
}

.jupyter_container .highlight {
background-color: black;
}

.thebelab-button {
color: #d0d0d0;
background-color: #383838;
}

.thebelab-button:active {
color: #368ce2;
}

#thebelab-activate-button {
background-color: #383838;
}

#thebelab-activate-button:active {
color: #368ce2;
}

.thebelab-cell .jp-OutputArea-output {
color: white;
background-color: black;
}

.thebelab-cell .jp-OutputArea-output pre {
color: white;
background-color: black;
}
}

.thebelab-cell .jp-OutputArea-output pre {
color: white;
background-color: black;
}
}
}




2 changes: 1 addition & 1 deletion html/ca/intro/_static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const DOCUMENTATION_OPTIONS = {
VERSION: '10.3',
VERSION: '10.4',
LANGUAGE: 'en',
COLLAPSE_INDEX: false,
BUILDER: 'html',
Expand Down
81 changes: 80 additions & 1 deletion html/ca/intro/_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 All @@ -58,6 +58,71 @@ const observer2 = new MutationObserver(callback);
observer2.observe(document.getElementsByClassName("content")[0], { childList: true, subtree: true });


//
// Version selector
//

function fetchVersions() {
try {
let menu = document.getElementById('versions-menu');

// For the origin of the this site, see .github/workflows/doc-publish.yml
fetch('https://doc-release--sagemath.netlify.app/html/en/versions.txt')
.then(response => {
if (!response.ok) {
throw new Error('Network response was not ok ' + response.statusText);
}
return response.text();
})
.then(text => {
const lines = text.split('\n');
lines.forEach(line => {
if (!line.startsWith('#')) { // Ignore the comment line
let [ver, url] = line.split(' ');
if (ver && url) {
if (!url.startsWith('https://')) {
url = 'https://' + url;
}
let option = document.createElement('option');
option.value = url;
option.text = ver;
menu.add(option);
}
}
});
})
.catch(error => {
console.log('Failed to fetch versions.txt file.');
});
} catch (error) {
console.log('Failed to fetch versions.txt file.');
}
}

fetchVersions()

// Function to change the version based on versions menu selection
function changeVersion() {
let select_element = document.getElementById("versions-menu");
let selected_ver = select_element.options[select_element.selectedIndex].text;
let selected_url = select_element.value;
if (selected_url) {
if (window.location.protocol == 'file:') {
let pathname = window.location.pathname;
let cutoff_point = pathname.indexOf('doc/sage');
if (cutoff_point !== -1) {
pathname = pathname.substring(cutoff_point + 8);
window.location.href = selected_url + pathname;
} else {
window.location.href = selected_url + 'html/en/index.html';
}
} else {
window.location.href = selected_url + window.location.pathname;
}
}
}


// Listen to the kernel status changes
// https://thebe.readthedocs.io/en/stable/events.html
thebelab.on("status", function (evt, data) {
Expand Down Expand Up @@ -112,3 +177,17 @@ thebelab.on("status", function (evt, data) {
kernel.requestExecute({code: "%display latex"});
}
});


// Activate Thebe when "Sage Live" tab is clicked
document.querySelectorAll('input[class="tab-input"]').forEach((elem) => {
elem.addEventListener("click", function(event) {
if (elem.nextElementSibling) {
if (elem.nextElementSibling.nextElementSibling) {
if (elem.nextElementSibling.nextElementSibling.querySelector('div[class="thebelab-code"]')) {
initThebelab();
}
}
}
});
});
25 changes: 15 additions & 10 deletions html/ca/intro/genindex-all.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<meta name="color-scheme" content="light dark"><link rel="index" title="Index" href="genindex.html" /><link rel="search" title="Search" href="search.html" />

<!-- Generated with Sphinx 7.2.6 and Furo 2023.09.10 --><title>Index - Introducció de Sage v10.3</title>
<!-- Generated with Sphinx 7.2.6 and Furo 2023.09.10 --><title>Index - Introducció de Sage v10.4</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?v=135e06be" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css?v=76b2166b" />
Expand All @@ -13,8 +13,8 @@
<link rel="stylesheet" type="text/css" href="_static/jupyter-sphinx.css" />
<link rel="stylesheet" type="text/css" href="_static/thebelab.css" />
<link rel="stylesheet" type="text/css" href="_static/styles/furo-extensions.css?v=36a5483c" />
<link rel="stylesheet" type="text/css" href="_static/custom-furo.css?v=213650f8" />
<link rel="stylesheet" type="text/css" href="_static/custom-jupyter-sphinx.css?v=6422c25e" />
<link rel="stylesheet" type="text/css" href="_static/custom-furo.css?v=d2ecc25a" />
<link rel="stylesheet" type="text/css" href="_static/custom-jupyter-sphinx.css?v=75860c6b" />
<link rel="stylesheet" type="text/css" href="_static/custom-codemirror-monokai.css?v=b5588f12" />


Expand Down Expand Up @@ -131,7 +131,7 @@
</label>
</div>
<div class="header-center">
<a href="index.html"><div class="brand">Introducció de Sage v10.3</div></a>
<a href="index.html"><div class="brand">Introducció de Sage v10.4</div></a>
</div>
<div class="header-right">
<div class="theme-toggle-container theme-toggle-header">
Expand All @@ -158,17 +158,22 @@
<img class="sidebar-logo only-dark" src="_static/logo_sagemath_white.svg" alt="Dark Logo"/>
</div>

<span class="sidebar-brand-text">Sage 10.3 Documentation</span>
<span class="sidebar-brand-text">Version 10.4 Documentation</span>

</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
</a><div class="select-wrapper">
<select id="versions-menu" onchange="changeVersion()">
<option value="" selected>other version</option>
<option value="https://doc-develop--sagemath.netlify.app">develop</option>
</select>
</div><form class="sidebar-search-container" method="get" action="search.html" role="search">
<input class="sidebar-search" placeholder="Search" name="q" aria-label="Search">
<input type="hidden" name="check_keywords" value="yes">
<input type="hidden" name="area" value="default">
</form>
<div id="searchbox"></div><div class="sidebar-home">
<div class="sidebar-tree">
<ul><li class="toctree-l1">
<a class="reference internal" href="index.html">Home - Introducció de Sage v10.3</a>
<a class="reference internal" href="index.html">Home - Introducció de Sage v10.4</a>
</li></ul>
</div>
</div><div class="sidebar-tree">
Expand Down Expand Up @@ -241,16 +246,16 @@ <h1 id="index">Index</h1>

</aside>
</div>
</div><script src="_static/documentation_options.js?v=b1b6de4d"></script>
</div><script src="_static/documentation_options.js?v=7a3f4e80"></script>
<script src="_static/doctools.js?v=888ff710"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="_static/scripts/furo.js?v=32e29ea5"></script>
<script src="_static/clipboard.min.js?v=a7894cd8"></script>
<script src="_static/copybutton.js?v=0477930c"></script>
<script src="_static/copybutton.js?v=8e571dd6"></script>
<script src="_static/tabs.js?v=3ee01567"></script>
<script src="_static/thebelab-helper.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@jupyter-widgets/html-manager@^1.0.1/dist/embed-amd.js"></script>
<script src="_static/jupyter-sphinx-furo.js?v=1e69cd27"></script>
<script src="_static/jupyter-sphinx-furo.js?v=2611e3e9"></script>
</body>
</html>
Loading

0 comments on commit 8803f1a

Please sign in to comment.