// 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
- Glossary
- Quick Start
- 1. Prerequisites
- 2. Installation
- 3. First Deployment
- 4. Verification
- User Guide
- 5. Overview
- 6. Quick Start
- 7. Command Reference
- 8. Workspace Guide
- 9. CoreDNS Guide
- 10. Service Management Guide
- 11. Service Management Quick Reference
- 12. Test Environment Guide
- 13. Test Environment Usage
- 14. Troubleshooting Guide
- 15. Authentication Layer Guide
- 16. Auth Quick Reference
- 17. Config Encryption Guide
- 18. Config Encryption Quick Reference
- 19. Dynamic Secrets Quick Reference
- 20. SSH Temporal Keys User Guide
- 21. RustyVault KMS Guide
- 22. Extension Development
- 23. Nushell Plugins Guide
- 24. Plugin Integration Guide
- Architecture
- 25. Architecture Overview
- 26. Integration Patterns
- 27. Multi-Repo Strategy
- 28. Orchestrator Integration Model
- 29. Orchestrator Info
- 30. ADR Index
- 31. ADR-007: Hybrid Architecture
- 32. ADR-008: Workspace Switching
- 33. ADR-009: Security System Complete
- 34. ADR-010: Test Environment Service
- 35. ADR-011: Try-Catch Migration
- 36. ADR-012: Nushell Plugins
- 37. Cedar Authorization Implementation
- 38. Compliance Implementation Summary
- 39. Database and Config Architecture
- 40. JWT Auth Implementation
- 41. MFA Implementation Summary
- 42. Orchestrator Auth Integration
- Platform Services
- 43. Platform Overview
- 44. Orchestrator
- 45. Control Center
- 46. MCP Server
- 47. KMS Service
- 48. Extension Registry
- 49. OCI Registry
- 50. Platform Installer
- 51. Provisioning API Server
- API Reference
- 52. API Overview
- 53. REST API
- 54. WebSocket API
- 55. Nushell API
- 56. Provider API
- 57. Extensions API
- 58. SDKs
- 59. Integration Examples
- Development
- 60. Development Overview
- 61. Build System
- 62. Project Structure
- 63. Workflow
- 64. Integration
- 65. Implementation Guide
- 66. Distribution Process
- 67. Extensions
- 68. Provider Agnostic Architecture
- 69. Quick Provider Guide
- 70. Taskserv Developer Guide
- 71. Taskserv Quick Guide
- 72. Command Handler Guide
- 73. Configuration Guide
- 74. Workspace Management
- 75. KCL Module Guide
- 76. KCL Quick Reference
- 77. KCL Dependency Patterns
- 78. KCL Guidelines Implementation
- 79. KCL Module Organization Summary
- 80. KCL Module System Implementation
- 81. KCL Validation Index
- 82. KCL Validation Executive Summary
- 83. Ctrl-C Implementation Notes
- Guides
- 84. From Scratch Deployment
- 85. Update Infrastructure
- 86. Customize Infrastructure
- 87. Quickstart Cheatsheet
- Migration
- 88. Migration Overview
- 89. KMS Simplification
- 90. Try-Catch Migration
- 91. Try-Catch Migration Complete
- Operations
- 92. Operations Overview
- 93. Deployment Guide
- 94. Monitoring Guide
- 95. Backup and Recovery
- Reference
- 96. Main Provisioning Document
- 97. Sudo Password Handling
- 98. Structure Comparison
- 99. Taskserv Categorization
- 100. Real Templates Extracted
- Implementation Summaries
- 101. Authentication Layer Implementation
- 102. Dynamic Secrets Implementation
- 103. Plugin Integration Tests Summary
- 104. RustyVault Control Center Integration
- 105. RustyVault Integration
- 106. Security System Implementation
- 107. Target-Based Config Implementation
- 108. Workspace Config Implementation
- 109. Workspace Config Architecture
';
// 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);