50
src/docgen/templates/base.html.jinja2
Normal file
50
src/docgen/templates/base.html.jinja2
Normal 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>
|
||||
Reference in New Issue
Block a user