# Technical Documentation Example ## Introduction This is a sample technical document to demonstrate the capabilities of the TSYS Dev Stack Docs Toolbox. This document includes various elements that are commonly found in technical documentation. ## Code Examples Here's a Python example with syntax highlighting: ```python def fibonacci(n): """ Generate the first n numbers in the Fibonacci sequence. Args: n (int): Number of Fibonacci numbers to generate Returns: list: List containing the first n Fibonacci numbers """ if n <= 0: return [] elif n == 1: return [0] elif n == 2: return [0, 1] fib_sequence = [0, 1] for i in range(2, n): next_num = fib_sequence[i-1] + fib_sequence[i-2] fib_sequence.append(next_num) return fib_sequence # Example usage print(fibonacci(10)) # Output: [0, 1, 1, 2, 3, 5, 8, 13, 21, 34] ``` And here's a JavaScript example: ```javascript class TodoList { constructor() { this.tasks = []; } addTask(task) { this.tasks.push({ id: Date.now(), text: task, completed: false }); } completeTask(id) { const task = this.tasks.find(t => t.id === id); if (task) { task.completed = true; } } } ``` ## Configuration Examples Here's a sample configuration in YAML: ```yaml server: port: 8080 host: "0.0.0.0" timeout: 30s database: host: "localhost" port: 5432 name: "myapp" ssl: true logging: level: "info" format: "json" output: "stdout" ``` ## Diagrams The following diagram would be generated using Kroki or similar tools: ``` graph TD A[Client] --> B[Load Balancer] B --> C[Web Server 1] B --> D[Web Server 2] B --> E[Web Server 3] C --> F[Database] D --> F E --> F ``` ## Tables | Feature | Status | Priority | |--------|--------|----------| | User Authentication | Complete | High | | Data Export | In Progress | High | | Reporting | Planned | Medium | | Dashboard | Complete | High | ## Mathematical Notation The quadratic formula: $x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$ Maxwell's equations: $$\nabla \cdot \vec{E} = \frac{\rho}{\varepsilon_0}$$ $$\nabla \cdot \vec{B} = 0$$ $$\nabla \times \vec{E} = -\frac{\partial B}{\partial t}$$ $$\nabla \times \vec{B} = \mu_0\left(\vec{J} + \varepsilon_0\frac{\partial E}{\partial t}\right)$$ ## Conclusion This document demonstrates various features available in the documentation toolbox. You can convert this to PDF, Word, or HTML formats using Pandoc and other tools.