Skip to content

Commit e95e671

Browse files
committed
Update BNP Paribas logo to JPG format and add external link script
- Replace bnp-paribas.png with bnp-paribas.jpg - Add NVidia funding entry for Tim Head - Add JavaScript to make external links open in new tab
1 parent 63a6ca5 commit e95e671

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

doc/about.rst

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ Silver sponsors
246246

247247
.. div:: image-box
248248

249-
.. image:: images/bnp-paribas.png
249+
.. image:: images/bnp-paribas.jpg
250250
:target: https://group.bnpparibas/
251251

252252
..........
@@ -280,7 +280,7 @@ Other contributions
280280
.. |bnp| image:: images/bnp.png
281281
:target: https://www.bnpparibascardif.com/
282282

283-
.. |bnpparibasgroup| image:: images/bnp-paribas.png
283+
.. |bnpparibasgroup| image:: images/bnp-paribas.jpg
284284
:target: https://group.bnpparibas/
285285

286286
.. |dataiku| image:: images/dataiku.png
@@ -314,6 +314,8 @@ Other contributions
314314

315315
* `Microsoft <https://microsoft.com/>`_ funds Andreas Müller since 2020.
316316

317+
* `NVidia <https://nvidia.com>`_ funds Tim Head since 2022.
318+
317319
* `Quansight Labs <https://labs.quansight.org>`_ funds Lucy Liu since 2022.
318320

319321
* `The Chan-Zuckerberg Initiative <https://chanzuckerberg.com/>`_ and
@@ -569,3 +571,32 @@ scikit-learn Swag
569571
Official scikit-learn swag is available for purchase at the `NumFOCUS online store
570572
<https://numfocus.myspreadshop.com/scikit-learn+logo?idea=6335cad48f3f5268f5f42559>`_.
571573
A portion of the proceeds from each sale goes to support the scikit-learn project.
574+
575+
.. raw:: html
576+
577+
<script>
578+
// Make all external links on the about page open in a new tab
579+
document.addEventListener('DOMContentLoaded', function() {
580+
const aboutSection = document.getElementById('about');
581+
if (aboutSection) {
582+
const links = aboutSection.querySelectorAll('a[href^="http"]');
583+
links.forEach(function(link) {
584+
// Skip links that already have target attribute
585+
if (!link.hasAttribute('target')) {
586+
link.setAttribute('target', '_blank');
587+
link.setAttribute('rel', 'noopener noreferrer');
588+
}
589+
});
590+
}
591+
// Also handle links anywhere on the page if on about.html
592+
if (window.location.pathname.includes('about.html')) {
593+
const allExternalLinks = document.querySelectorAll('a[href^="http"]');
594+
allExternalLinks.forEach(function(link) {
595+
if (!link.hasAttribute('target')) {
596+
link.setAttribute('target', '_blank');
597+
link.setAttribute('rel', 'noopener noreferrer');
598+
}
599+
});
600+
}
601+
});
602+
</script>

doc/images/bnp-paribas.jpg

47.6 KB
Loading

doc/images/bnp-paribas.png

-51.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)