157 lines
4.8 KiB
PHP
157 lines
4.8 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
$mdPath = __DIR__ . '/bugtracker.md';
|
|
$markdownContent = file_exists($mdPath) ? file_get_contents($mdPath) : '# Documentation Not Found';
|
|
|
|
// If requested as raw text / markdown
|
|
if (isset($_GET['raw']) || (isset($_SERVER['HTTP_ACCEPT']) && str_contains($_SERVER['HTTP_ACCEPT'], 'text/plain'))) {
|
|
header('Content-Type: text/plain; charset=utf-8');
|
|
echo $markdownContent;
|
|
exit;
|
|
}
|
|
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Deployment Center - Developer & Agent Documentation</title>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fira+Code:wght@400;600&display=swap" rel="stylesheet">
|
|
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
|
<style>
|
|
:root {
|
|
--bg: #0b0f19;
|
|
--card-bg: #141b2d;
|
|
--accent: #5b9dff;
|
|
--text: #e2e8f0;
|
|
--text-muted: #94a3b8;
|
|
--border: rgba(255, 255, 255, 0.08);
|
|
--code-bg: #080c14;
|
|
}
|
|
|
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
body {
|
|
font-family: 'Inter', system-ui, sans-serif;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
line-height: 1.6;
|
|
padding: 2rem 1rem;
|
|
}
|
|
|
|
.container {
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
background: var(--card-bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
padding: 2.5rem;
|
|
box-shadow: 0 20px 40px rgba(0,0,0,0.5);
|
|
}
|
|
|
|
.header-bar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border-bottom: 1px solid var(--border);
|
|
padding-bottom: 1.5rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.header-bar h1 {
|
|
font-size: 1.4rem;
|
|
color: #fff;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
padding: 0.5rem 1rem;
|
|
background: rgba(91, 157, 255, 0.15);
|
|
color: var(--accent);
|
|
border: 1px solid var(--accent);
|
|
border-radius: 6px;
|
|
text-decoration: none;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.btn:hover {
|
|
background: var(--accent);
|
|
color: #fff;
|
|
}
|
|
|
|
#docContent h1, #docContent h2, #docContent h3 {
|
|
color: #fff;
|
|
margin-top: 1.8rem;
|
|
margin-bottom: 0.8rem;
|
|
}
|
|
|
|
#docContent h1 { font-size: 1.8rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
|
|
#docContent h2 { font-size: 1.4rem; color: var(--accent); }
|
|
#docContent h3 { font-size: 1.1rem; }
|
|
|
|
#docContent p { margin-bottom: 1rem; color: #cbd5e1; }
|
|
#docContent ul, #docContent ol { margin-left: 1.5rem; margin-bottom: 1rem; color: #cbd5e1; }
|
|
#docContent li { margin-bottom: 0.4rem; }
|
|
|
|
#docContent code {
|
|
font-family: 'Fira Code', monospace;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
padding: 0.2rem 0.4rem;
|
|
border-radius: 4px;
|
|
font-size: 0.88rem;
|
|
color: #38bdf8;
|
|
}
|
|
|
|
#docContent pre {
|
|
background: var(--code-bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 1.25rem;
|
|
overflow-x: auto;
|
|
margin: 1rem 0 1.5rem 0;
|
|
}
|
|
|
|
#docContent pre code {
|
|
background: transparent;
|
|
padding: 0;
|
|
color: #e2e8f0;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
#docContent blockquote {
|
|
border-left: 4px solid var(--accent);
|
|
background: rgba(91, 157, 255, 0.05);
|
|
padding: 0.75rem 1rem;
|
|
margin: 1rem 0;
|
|
border-radius: 0 6px 6px 0;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="header-bar">
|
|
<h1>🚀 Deployment Center API & Agent Documentation</h1>
|
|
<div>
|
|
<a href="bugtracker.md" target="_blank" class="btn">📄 Raw Markdown (.md)</a>
|
|
<a href="../api/bugtracker/v1/projects.php" target="_blank" class="btn">📂 Projects API</a>
|
|
</div>
|
|
</div>
|
|
<div id="docContent">Loading documentation...</div>
|
|
</div>
|
|
|
|
<script>
|
|
const rawMarkdown = <?= json_encode($markdownContent) ?>;
|
|
document.getElementById('docContent').innerHTML = marked.parse(rawMarkdown);
|
|
</script>
|
|
</body>
|
|
</html>
|