// Populate the sidebar
//
// This is a script, and not included directly in the page, to control the total size of the book.
// The TOC contains an entry for each page, so if each page includes a copy of the TOC,
// the total size of the page becomes O(n**2).
class MDBookSidebarScrollbox extends HTMLElement {
constructor() {
super();
}
connectedCallback() {
this.innerHTML = '
- Introduction
- Getting Started
- 1. Getting Started
- 2. Prerequisites
- 3. Installation
- 4. Quick Start
- 5. First Deployment
- 6. Verification
- Setup & Configuration
- 7. Setup Overview
- 8. Initial Setup
- 9. Workspace Setup
- 10. Configuration Management
- User Guides
- 11. Guides Overview
- 12. From Scratch Guide
- 13. Workspace Management
- 14. Multi-Cloud Deployment
- 15. Custom Extensions
- 16. Disaster Recovery
- Infrastructure as Code
- 17. Infrastructure Overview
- 18. Nickel Guide
- 19. Configuration System
- 20. Schemas Reference
- 21. Providers
- 22. Task Services
- 23. Clusters
- 24. Batch Workflows
- 25. Version Management
- Platform Features
- 26. Features Overview
- 27. Workspace Management
- 28. CLI Architecture
- 29. Configuration System
- 30. Batch Workflows
- 31. Orchestrator
- 32. Interactive Guides
- 33. Test Environment
- 34. Platform Installer
- 35. Security System
- 36. Version Management
- 37. Nushell Plugins
- 38. Multilingual Support
- Operations
- 39. Operations Overview
- 40. Deployment Modes
- 41. Service Management
- 42. Monitoring
- 43. Backup & Recovery
- 44. Upgrade
- 45. Troubleshooting
- 46. Platform Health
- Security
- 47. Security Overview
- 48. Authentication
- 49. Authorization
- 50. Multi-Factor Authentication
- 51. Audit Logging
- 52. KMS Guide
- 53. Secrets Management
- 54. SecretumVault Guide
- 55. Encryption
- 56. Secure Communication
- 57. Certificate Management
- 58. Compliance
- 59. Security Testing
- Development
- 60. Development Overview
- 61. Extension Development
- 62. Provider Development
- 63. Plugin Development
- 64. API Guide
- 65. Build System
- 66. Testing
- 67. Contributing
- API Reference
- 68. API Overview
- 69. REST API
- 70. CLI Commands
- 71. Nushell Libraries
- 72. Orchestrator API
- 73. Control Center API
- 74. Examples
- Architecture
- 75. Architecture Overview
- 76. System Overview
- 77. Design Principles
- 78. Component Architecture
- 79. Integration Patterns
- 80. ADRs
- Examples
- 81. Examples Overview
- 82. Basic Setup
- 83. Multi-Cloud
- 84. Kubernetes Deployment
- 85. Custom Workflows
- 86. Security Examples
- Troubleshooting
- 87. Troubleshooting Overview
- 88. Common Issues
- 89. Debug Guide
- 90. Logs Analysis
- 91. Getting Help
- AI & Machine Learning
- 92. AI Overview
- 93. AI Architecture
- 94. TypeDialog Integration
- 95. AI Service Crate
- 96. RAG & Knowledge Base
- 97. Natural Language Infrastructure
';
// Set the current, active page, and reveal it if it's hidden
let current_page = document.location.href.toString().split("#")[0].split("?")[0];
if (current_page.endsWith("/")) {
current_page += "index.html";
}
var links = Array.prototype.slice.call(this.querySelectorAll("a"));
var l = links.length;
for (var i = 0; i < l; ++i) {
var link = links[i];
var href = link.getAttribute("href");
if (href && !href.startsWith("#") && !/^(?:[a-z+]+:)?\/\//.test(href)) {
link.href = path_to_root + href;
}
// The "index" page is supposed to alias the first chapter in the book.
if (link.href === current_page || (i === 0 && path_to_root === "" && current_page.endsWith("/index.html"))) {
link.classList.add("active");
var parent = link.parentElement;
if (parent && parent.classList.contains("chapter-item")) {
parent.classList.add("expanded");
}
while (parent) {
if (parent.tagName === "LI" && parent.previousElementSibling) {
if (parent.previousElementSibling.classList.contains("chapter-item")) {
parent.previousElementSibling.classList.add("expanded");
}
}
parent = parent.parentElement;
}
}
}
// Track and set sidebar scroll position
this.addEventListener('click', function(e) {
if (e.target.tagName === 'A') {
sessionStorage.setItem('sidebar-scroll', this.scrollTop);
}
}, { passive: true });
var sidebarScrollTop = sessionStorage.getItem('sidebar-scroll');
sessionStorage.removeItem('sidebar-scroll');
if (sidebarScrollTop) {
// preserve sidebar scroll position when navigating via links within sidebar
this.scrollTop = sidebarScrollTop;
} else {
// scroll sidebar to current active section when navigating via "next/previous chapter" buttons
var activeSection = document.querySelector('#sidebar .active');
if (activeSection) {
activeSection.scrollIntoView({ block: 'center' });
}
}
// Toggle buttons
var sidebarAnchorToggles = document.querySelectorAll('#sidebar a.toggle');
function toggleSection(ev) {
ev.currentTarget.parentElement.classList.toggle('expanded');
}
Array.from(sidebarAnchorToggles).forEach(function (el) {
el.addEventListener('click', toggleSection);
});
}
}
window.customElements.define("mdbook-sidebar-scrollbox", MDBookSidebarScrollbox);