Add templates
Some checks failed
CI / test (push) Has been cancelled

This commit is contained in:
2026-01-31 17:12:31 +00:00
parent 8857af6c00
commit 74155afc43

View File

@@ -0,0 +1,50 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ title }} - API Documentation</title>
<link rel="stylesheet" href="/static/style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
</head>
<body class="theme-{{ theme }}">
<nav class="sidebar">
<div class="sidebar-header">
<h1>{{ title }}</h1>
<span class="version-badge">v{{ version }}</span>
</div>
<div class="sidebar-content">
{{ sidebar | safe }}
</div>
<div class="sidebar-footer">
<p>Generated by DocGen-CLI</p>
</div>
</nav>
<main class="main-content">
<div class="content-wrapper">
{% if description %}
<div class="api-description">
{{ description }}
</div>
{% endif %}
{% for tag, tag_endpoints in grouped_endpoints.items() %}
<section class="endpoint-group" id="group-{{ tag | slugify }}">
<h2 class="group-title">{{ tag }}</h2>
{% for endpoint in tag_endpoints %}
<article class="endpoint-card" id="endpoint-{{ endpoint.path | slugify }}-{{ endpoint.method.value | lower }}">
{% include "endpoint.html.jinja2" %}
</article>
{% endfor %}
</section>
{% endfor %}
</div>
</main>
<script src="/static/script.js"></script>
</body>
</html>