mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-31 04:23:53 +00:00
Merge branch 'main' into docs-4
This commit is contained in:
commit
d7c976c6d2
38 changed files with 4709 additions and 8876 deletions
3
docs/_static/css/my_theme.css
vendored
3
docs/_static/css/my_theme.css
vendored
|
|
@ -20,3 +20,6 @@
|
|||
h3 {
|
||||
font-weight: normal;
|
||||
}
|
||||
html[data-theme="dark"] .rst-content div[class^="highlight"] {
|
||||
background-color: #0b0b0b;
|
||||
}
|
||||
|
|
|
|||
9
docs/_static/js/detect_theme.js
vendored
Normal file
9
docs/_static/js/detect_theme.js
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
document.addEventListener("DOMContentLoaded", function () {
|
||||
const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
||||
const htmlElement = document.documentElement;
|
||||
if (prefersDark) {
|
||||
htmlElement.setAttribute("data-theme", "dark");
|
||||
} else {
|
||||
htmlElement.setAttribute("data-theme", "light");
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue