Skip to content

Commit

Permalink
[docs] cherry-pick Cp10 2.5.1 (#36280)
Browse files Browse the repository at this point in the history
* [Data] [Docs] Ray Data doc changes for 2.5 (#36224)

#35749
#35751
#35753
#35755
#35757
#36018
#36105
#36121
#36144
#36145
#36162
#36124

---------

Signed-off-by: Balaji Veeramani <balaji@anyscale.com>
Signed-off-by: Balaji Veeramani <bveeramani@berkeley.edu>
Signed-off-by: amogkam <amogkamsetty@yahoo.com>
Signed-off-by: Amog Kamsetty <amogkam@users.noreply.github.com>
Co-authored-by: Balaji Veeramani <balaji@anyscale.com>
Co-authored-by: angelinalg <122562471+angelinalg@users.noreply.github.com>
Co-authored-by: Hao Chen <chenh1024@gmail.com>

* [docs] relax kapa loading scheme (#36201)

Signed-off-by: Max Pumperla <max.pumperla@googlemail.com>

* Revert "[Data] [Docs] Ray Data doc changes for 2.5 (#36224)"

This reverts commit 48a6c26.

---------

Signed-off-by: Balaji Veeramani <balaji@anyscale.com>
Signed-off-by: Balaji Veeramani <bveeramani@berkeley.edu>
Signed-off-by: amogkam <amogkamsetty@yahoo.com>
Signed-off-by: Amog Kamsetty <amogkam@users.noreply.github.com>
Signed-off-by: Max Pumperla <max.pumperla@googlemail.com>
Co-authored-by: Amog Kamsetty <amogkam@users.noreply.github.com>
Co-authored-by: Balaji Veeramani <balaji@anyscale.com>
Co-authored-by: Hao Chen <chenh1024@gmail.com>
Co-authored-by: Max Pumperla <max.pumperla@googlemail.com>
  • Loading branch information
5 people committed Jun 10, 2023
1 parent 65deb10 commit 13e179e
Showing 1 changed file with 23 additions and 22 deletions.
45 changes: 23 additions & 22 deletions doc/source/_static/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,27 +136,28 @@ function checkForElement() {

window.addEventListener("load", function(){

let targetElement = null;
while (targetElement == null) {
targetElement = checkForElement();
}
console.log(targetElement);

let observer = new MutationObserver(
function(mutationsList, observer) {
// Handle the changes in the element
mutationsList.forEach(function(mutation) {
// Code to handle the specific type of mutation, like "childList" additions
console.log('Element changed:', mutation);
let inputElement = document.getElementsByClassName("mantine-TextInput-input")[0];
inputElement.placeholder = "Do not include any personal data or confidential information";
let main = document.getElementsByClassName("mantine-Text-root")[1];
main.textContent = "Ray Docs AI - Ask a question"
let left = document.getElementsByClassName("mantine-Text-root")[2];
left.textContent = "results are automated & may be incorrect or contain inappropriate information"
});
});
let targetElement = checkForElement();

try {
let observer = new MutationObserver(
function (mutationsList, observer) {
// Handle the changes in the element
mutationsList.forEach(function (mutation) {
// Code to handle the specific type of mutation, like "childList" additions
console.log('Element changed:', mutation);
let inputElement = document.getElementsByClassName("mantine-TextInput-input")[0];
inputElement.placeholder = "Do not include any personal data or confidential information";
let main = document.getElementsByClassName("mantine-Text-root")[1];
main.textContent = "Ray Docs AI - Ask a question"
let left = document.getElementsByClassName("mantine-Text-root")[2];
left.textContent = "results are automated & may be incorrect or contain inappropriate information"
});
});

let observerConfig = { childList: true };
observer.observe(targetElement, observerConfig);
let observerConfig = {childList: true};
observer.observe(targetElement, observerConfig);
} catch (e) {
console.log("could not load kapa widget.");
console.log(e);
}
});

0 comments on commit 13e179e

Please sign in to comment.