File size: 3,725 Bytes
907b200
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>AILIXIR API Documentation</title>
    <style>
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #f5f5f5;
            padding: 20px;
            color: #333;
            line-height: 1.6;
        }
        .container {
            max-width: 960px;
            margin: 0 auto;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            padding: 40px;
        }
        h1 { font-size: 28px; margin-bottom: 20px; color: #1a1a1a; }
        h2 {
            font-size: 22px; margin-top: 35px; margin-bottom: 15px;
            color: #1a1a1a; border-bottom: 2px solid #2563eb;
            padding-bottom: 8px;
        }
        h3 { font-size: 18px; margin-top: 28px; margin-bottom: 12px; color: #333; }
        h4 { font-size: 16px; margin-top: 22px; margin-bottom: 10px; color: #444; }
        p { margin-bottom: 15px; }
        a { color: #2563eb; text-decoration: none; }
        a:hover { text-decoration: underline; }
        pre {
            background: #1e1e1e;
            color: #d4d4d4;
            padding: 18px;
            border-radius: 6px;
            overflow-x: auto;
            font-size: 13px;
            line-height: 1.5;
            margin-bottom: 18px;
            border-left: 4px solid #2563eb;
        }
        code {
            background: #f0f0f0;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 0.9em;
            font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
        }
        pre code { background: none; padding: 0; border-radius: 0; font-size: 1em; }
        table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 18px;
        }
        th, td {
            border: 1px solid #ddd;
            padding: 10px 14px;
            text-align: left;
        }
        th { background: #f5f7fa; font-weight: 600; color: #444; }
        tr:nth-child(even) td { background: #fafafa; }
        ul, ol { margin-bottom: 15px; padding-left: 28px; }
        li { margin-bottom: 5px; }
        blockquote {
            border-left: 4px solid #2563eb;
            padding: 12px 18px;
            margin-bottom: 18px;
            background: #f0f5ff;
            color: #555;
        }
        hr {
            border: none;
            border-top: 2px solid #e0e0e0;
            margin: 35px 0;
        }
        img { max-width: 100%; height: auto; border-radius: 4px; }
        .toc { margin-bottom: 30px; }
        .toc ul { list-style: none; padding-left: 0; }
        .toc li { margin-bottom: 4px; }
        .toc a { color: #2563eb; font-weight: 500; }
        h2, h3, h4 { scroll-margin-top: 24px; }
    </style>
</head>
<body>
    <div class="container">
        {!! $content !!}
    </div>
    <script>
        document.addEventListener('DOMContentLoaded', function () {
            document.querySelectorAll('.toc a[href^="#"]').forEach(function (link) {
                link.addEventListener('click', function (e) {
                    e.preventDefault();
                    var target = document.getElementById(this.getAttribute('href').substring(1));
                    if (target) {
                        target.scrollIntoView({ behavior: 'smooth', block: 'start' });
                        history.pushState(null, null, this.href);
                    }
                });
            });
        });
    </script>
</body>
</html>