-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test multiversion build * Work on multiversion build * update refs * cancel in progress * add docs dir * add version switcher * add version switcher * add preferred * version banner and hacky value override... * add release version
- Loading branch information
1 parent
6310187
commit d3d7365
Showing
4 changed files
with
102 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[ | ||
{ | ||
"name": "0.2 (stable)", | ||
"version": "0.2-stable", | ||
"url": "/autogen/0.2/" | ||
}, | ||
{ | ||
"version": "dev", | ||
"url": "/autogen/dev/" | ||
}, | ||
{ | ||
"name": "0.4.0.dev0", | ||
"version": "0.4.0.dev0", | ||
"url": "/autogen/0.4.0.dev0/" | ||
}, | ||
{ | ||
"name": "0.4.0.dev1", | ||
"version": "0.4.0.dev1", | ||
"url": "/autogen/0.4.0.dev1/", | ||
"preferred": true | ||
} | ||
] |
15 changes: 15 additions & 0 deletions
15
python/packages/autogen-core/docs/src/_static/override-switcher-button.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// When body is ready | ||
document.addEventListener('DOMContentLoaded', function() { | ||
// TODO: Please find a better way to override the button text in a better way... | ||
// Set a timer for 3 seconds to wait for the button to be rendered. | ||
setTimeout(function() { | ||
// Get the button with class "pst-button-link-to-stable-version". There is only one. | ||
var button = document.querySelector('.pst-button-link-to-stable-version'); | ||
if (!button) { | ||
// If the button is not found, return. | ||
return; | ||
} | ||
// Set the button's text to "Switch to latest dev release" | ||
button.textContent = "Switch to latest dev release"; | ||
}, 500); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters