Skip to content

Commit

Permalink
logo update (note needs design pass)
Browse files Browse the repository at this point in the history
Fixes #274 pending design pass
  • Loading branch information
albertkimjunior committed Jul 4, 2024
1 parent 9e82031 commit 32e9230
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/external/logo/banner-badge-docs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"$schema": "https://mintlify.com/schema.json",
"name": "AgentOps",
"logo": {
"dark": "https://raw.githubusercontent.com/AgentOps-AI/agentops/35d5682866921a9e28d8ef66ae3c3b3d92d8fa6b/img/logo.png",
"light": "https://raw.githubusercontent.com/AgentOps-AI/agentops/35d5682866921a9e28d8ef66ae3c3b3d92d8fa6b/img/logo.png"
"dark": "/images/external/logo/banner-badge-docs-resized-white.png",
"light": "/images/external/logo/banner-badge-docs-resized-black.png"
},
"favicon": "/favicon.png",
"colors": {
Expand Down
9 changes: 6 additions & 3 deletions docs/v1/stars.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ function updateStars() {
.then((response) => response.json())
.then((data) => {
const stars = Math.ceil(data.stargazers_count / 100) * 100 + 100;
const dataContainer = document.getElementById("stars-text");
dataContainer.innerHTML = `${stars.toLocaleString()}th`;
setTimeout(() => {
const dataContainer = document.getElementById("stars-text");
dataContainer.innerHTML = `${stars.toLocaleString()}th`;
}, 50);
})
.catch((error) => {
// console.error("Github Stars pull error:", error);
Expand All @@ -16,11 +18,12 @@ function addNewEventListeners() {
document.querySelectorAll('li, a').forEach(element => {
element.addEventListener('click', updateStars);
});
}, 100);
}, 50);
}

window.addEventListener('load', function() {
updateStars();
addNewEventListeners();
const observer = new MutationObserver(addNewEventListeners);
observer.observe(document.body, { childList: true, subtree: true });
});

0 comments on commit 32e9230

Please sign in to comment.