static files deprecation
136
docs/_static/css/my_theme.css
vendored
|
@ -1,136 +0,0 @@
|
||||||
@import url("theme.css");
|
|
||||||
|
|
||||||
/* Horizontal Navigation Bar */
|
|
||||||
.horizontal-nav {
|
|
||||||
background-color: #ffffff;
|
|
||||||
border-bottom: 1px solid #e5e5e5;
|
|
||||||
padding: 0;
|
|
||||||
position: fixed;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
z-index: 1050;
|
|
||||||
height: 50px;
|
|
||||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
[data-theme="dark"] .horizontal-nav {
|
|
||||||
background-color: #1a1a1a;
|
|
||||||
border-bottom: 1px solid #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
.horizontal-nav .nav-container {
|
|
||||||
max-width: 1200px;
|
|
||||||
margin: 0 auto;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
padding: 0 20px;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.horizontal-nav .nav-brand {
|
|
||||||
font-size: 18px;
|
|
||||||
font-weight: 600;
|
|
||||||
color: #333;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
[data-theme="dark"] .horizontal-nav .nav-brand {
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.horizontal-nav .nav-links {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 30px;
|
|
||||||
list-style: none;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.horizontal-nav .nav-links a {
|
|
||||||
color: #666;
|
|
||||||
text-decoration: none;
|
|
||||||
font-size: 14px;
|
|
||||||
font-weight: 500;
|
|
||||||
padding: 8px 12px;
|
|
||||||
border-radius: 6px;
|
|
||||||
transition: all 0.2s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.horizontal-nav .nav-links a:hover,
|
|
||||||
.horizontal-nav .nav-links a.active {
|
|
||||||
color: #333;
|
|
||||||
background-color: #f5f5f5;
|
|
||||||
}
|
|
||||||
|
|
||||||
.horizontal-nav .nav-links a.active {
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
[data-theme="dark"] .horizontal-nav .nav-links a {
|
|
||||||
color: #ccc;
|
|
||||||
}
|
|
||||||
|
|
||||||
[data-theme="dark"] .horizontal-nav .nav-links a:hover,
|
|
||||||
[data-theme="dark"] .horizontal-nav .nav-links a.active {
|
|
||||||
color: #fff;
|
|
||||||
background-color: #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
.horizontal-nav .nav-links .github-link {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.horizontal-nav .nav-links .github-icon {
|
|
||||||
width: 16px;
|
|
||||||
height: 16px;
|
|
||||||
fill: currentColor;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Adjust main content to account for fixed nav */
|
|
||||||
.wy-nav-side {
|
|
||||||
top: 50px;
|
|
||||||
height: calc(100vh - 50px);
|
|
||||||
}
|
|
||||||
|
|
||||||
.wy-nav-content-wrap {
|
|
||||||
margin-top: 50px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.wy-nav-content {
|
|
||||||
max-width: 90%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.wy-nav-side {
|
|
||||||
/* background: linear-gradient(45deg, #2980B9, #16A085); */
|
|
||||||
background: linear-gradient(90deg, #332735, #1b263c);
|
|
||||||
}
|
|
||||||
|
|
||||||
.wy-side-nav-search {
|
|
||||||
background-color: transparent !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hide-title h1 {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
h2, h3, h4 {
|
|
||||||
font-weight: normal;
|
|
||||||
}
|
|
||||||
html[data-theme="dark"] .rst-content div[class^="highlight"] {
|
|
||||||
background-color: #0b0b0b;
|
|
||||||
}
|
|
||||||
pre {
|
|
||||||
white-space: pre-wrap !important;
|
|
||||||
word-break: break-all;
|
|
||||||
}
|
|
||||||
|
|
||||||
[data-theme="dark"] .mermaid {
|
|
||||||
background-color: #f4f4f6 !important;
|
|
||||||
border-radius: 6px;
|
|
||||||
padding: 0.5em;
|
|
||||||
}
|
|
32
docs/_static/js/detect_theme.js
vendored
|
@ -1,32 +0,0 @@
|
||||||
document.addEventListener("DOMContentLoaded", function () {
|
|
||||||
const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
||||||
const htmlElement = document.documentElement;
|
|
||||||
|
|
||||||
// Check if theme is saved in localStorage
|
|
||||||
const savedTheme = localStorage.getItem("sphinx-rtd-theme");
|
|
||||||
|
|
||||||
if (savedTheme) {
|
|
||||||
// Use the saved theme preference
|
|
||||||
htmlElement.setAttribute("data-theme", savedTheme);
|
|
||||||
document.body.classList.toggle("dark", savedTheme === "dark");
|
|
||||||
} else {
|
|
||||||
// Fall back to system preference
|
|
||||||
const theme = prefersDark ? "dark" : "light";
|
|
||||||
htmlElement.setAttribute("data-theme", theme);
|
|
||||||
document.body.classList.toggle("dark", theme === "dark");
|
|
||||||
// Save initial preference
|
|
||||||
localStorage.setItem("sphinx-rtd-theme", theme);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Listen for theme changes from the existing toggle
|
|
||||||
const observer = new MutationObserver(function(mutations) {
|
|
||||||
mutations.forEach(function(mutation) {
|
|
||||||
if (mutation.attributeName === "data-theme") {
|
|
||||||
const currentTheme = htmlElement.getAttribute("data-theme");
|
|
||||||
localStorage.setItem("sphinx-rtd-theme", currentTheme);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
observer.observe(htmlElement, { attributes: true });
|
|
||||||
});
|
|
44
docs/_static/js/horizontal_nav.js
vendored
|
@ -1,44 +0,0 @@
|
||||||
// Horizontal Navigation Bar for Llama Stack Documentation
|
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
|
||||||
// Create the horizontal navigation HTML
|
|
||||||
const navHTML = `
|
|
||||||
<nav class="horizontal-nav">
|
|
||||||
<div class="nav-container">
|
|
||||||
<a href="/" class="nav-brand">Llama Stack</a>
|
|
||||||
<ul class="nav-links">
|
|
||||||
<li><a href="/">Docs</a></li>
|
|
||||||
<li><a href="/references/api_reference/">API Reference</a></li>
|
|
||||||
<li><a href="https://github.com/meta-llama/llama-stack" target="_blank" class="github-link">
|
|
||||||
<svg class="github-icon" viewBox="0 0 16 16" aria-hidden="true">
|
|
||||||
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/>
|
|
||||||
</svg>
|
|
||||||
GitHub
|
|
||||||
</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
`;
|
|
||||||
|
|
||||||
// Insert the navigation at the beginning of the body
|
|
||||||
document.body.insertAdjacentHTML('afterbegin', navHTML);
|
|
||||||
|
|
||||||
// Update navigation links based on current page
|
|
||||||
updateActiveNav();
|
|
||||||
});
|
|
||||||
|
|
||||||
function updateActiveNav() {
|
|
||||||
const currentPath = window.location.pathname;
|
|
||||||
const navLinks = document.querySelectorAll('.horizontal-nav .nav-links a');
|
|
||||||
|
|
||||||
navLinks.forEach(link => {
|
|
||||||
// Remove any existing active classes
|
|
||||||
link.classList.remove('active');
|
|
||||||
|
|
||||||
// Add active class based on current path
|
|
||||||
if (currentPath === '/' && link.getAttribute('href') === '/') {
|
|
||||||
link.classList.add('active');
|
|
||||||
} else if (currentPath.includes('/references/api_reference/') && link.getAttribute('href').includes('api_reference')) {
|
|
||||||
link.classList.add('active');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
14
docs/_static/js/keyboard_shortcuts.js
vendored
|
@ -1,14 +0,0 @@
|
||||||
document.addEventListener('keydown', function(event) {
|
|
||||||
// command+K or ctrl+K
|
|
||||||
if ((event.metaKey || event.ctrlKey) && event.key === 'k') {
|
|
||||||
event.preventDefault();
|
|
||||||
document.querySelector('.search-input, .search-field, input[name="q"]').focus();
|
|
||||||
}
|
|
||||||
|
|
||||||
// forward slash
|
|
||||||
if (event.key === '/' &&
|
|
||||||
!event.target.matches('input, textarea, select')) {
|
|
||||||
event.preventDefault();
|
|
||||||
document.querySelector('.search-input, .search-field, input[name="q"]').focus();
|
|
||||||
}
|
|
||||||
});
|
|
BIN
docs/_static/llama-stack-logo.png
vendored
Before Width: | Height: | Size: 70 KiB |
18124
docs/_static/llama-stack-spec.html
vendored
13450
docs/_static/llama-stack-spec.yaml
vendored
BIN
docs/_static/llama-stack.png
vendored
Before Width: | Height: | Size: 196 KiB |
Before Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 56 KiB |
BIN
docs/_static/remote_or_local.gif
vendored
Before Width: | Height: | Size: 204 KiB |
BIN
docs/_static/safety_system.webp
vendored
Before Width: | Height: | Size: 31 KiB |