/usr/share/doc/python-ipywidgets-doc/html/_static/index.js is in python-ipywidgets-doc 5.2.2-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 | require("jupyter-js-widgets/src/embed-webpack");
window.onload = function() {
// TODO: See if md parsing conf can do this, or extension (compile time)
Array.prototype.forEach.call(document.querySelectorAll('a'), a => {
a.href = a.href
.replace(/\.md$/, '.html')
.replace(/\.ipynb$/, '.html');
});
};
|