-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
158 lines (149 loc) · 6.31 KB
/
index.html
File metadata and controls
158 lines (149 loc) · 6.31 KB
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Genomic Intelligence API — docs</title>
<meta name="description" content="REST API for DNA sequence analysis with transformer language models. Agent and human integration guide.">
<link rel="icon" href="data:,">
<style>
:root {
--fg: #1a1a1a;
--fg-muted: #5b6470;
--bg: #fafafa;
--bg-alt: #f0f1f3;
--border: #d8dce0;
--accent: #0066cc;
--accent-bg: #e8f1fc;
--code-bg: #f4f5f7;
--max: 760px;
}
@media (prefers-color-scheme: dark) {
:root {
--fg: #e6e6e6;
--fg-muted: #9aa3ad;
--bg: #16181d;
--bg-alt: #1f2228;
--border: #2c3036;
--accent: #6cb4ff;
--accent-bg: #1a2a3d;
--code-bg: #1f2228;
}
}
html, body {
margin: 0; padding: 0;
background: var(--bg); color: var(--fg);
font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
body { padding: 2rem 1.25rem 4rem; }
main { max-width: var(--max); margin: 0 auto; }
header { border-bottom: 1px solid var(--border); margin-bottom: 2rem; padding-bottom: 1rem; }
header h1 { margin: 0 0 .25rem; font-size: 1.4rem; font-weight: 600; }
header .sub { color: var(--fg-muted); font-size: .95rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: var(--code-bg); padding: .15em .4em; border-radius: 3px; font-size: .9em; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
pre { background: var(--code-bg); padding: 1rem; border-radius: 6px; overflow-x: auto; font-size: .88rem; line-height: 1.5; }
pre code { background: transparent; padding: 0; }
blockquote { margin: 1em 0; padding: .75em 1em; border-left: 3px solid var(--accent); background: var(--accent-bg); border-radius: 0 4px 4px 0; }
table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .92rem; }
th, td { border: 1px solid var(--border); padding: .5em .75em; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); font-weight: 600; }
h2 { border-bottom: 1px solid var(--border); padding-bottom: .35rem; margin-top: 2.4rem; }
h2, h3, h4 { line-height: 1.3; }
hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
nav.toc {
font-size: .9rem; color: var(--fg-muted);
background: var(--bg-alt); padding: 1rem 1.25rem; border-radius: 6px;
margin-bottom: 2rem;
}
nav.toc strong { color: var(--fg); display: block; margin-bottom: .35rem; }
nav.toc a { display: inline-block; margin-right: 1rem; }
.err { color: #c0392b; padding: 1rem; background: var(--bg-alt); border-radius: 6px; }
#content img { max-width: 100%; }
footer { margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--fg-muted); font-size: .85rem; }
footer a { color: var(--fg-muted); }
</style>
</head>
<body>
<main>
<header>
<h1>Genomic Intelligence API</h1>
<div class="sub">DNA sequence analysis · transformer language models · REST</div>
</header>
<nav class="toc" id="toc">
<strong>Quick links</strong>
<a href="?p=getting-started.md">Getting started</a>
<a href="?p=partner-brief.md">Partner brief</a>
<a href="?p=reference/errors.md">Errors</a>
<a href="?p=reference/limits.md">Limits</a>
<a href="?p=AGENTS.md">AGENTS.md</a>
<a href="https://api.genomicintelligence.ai/redoc">ReDoc (live)</a>
<a href="https://github.com/genomicintelligence/docs">GitHub</a>
</nav>
<article id="content">Loading…</article>
<footer>
Source: <a href="https://github.com/genomicintelligence/docs">github.com/genomicintelligence/docs</a> ·
Live API: <a href="https://api.genomicintelligence.ai">api.genomicintelligence.ai</a> ·
Contact: <a href="mailto:alex@genomicintelligence.ai">alex@genomicintelligence.ai</a>
</footer>
</main>
<script src="https://cdn.jsdelivr.net/npm/marked@12.0.2/marked.min.js"></script>
<script>
(function () {
// Default doc to render. Override via ?p=<path>.
var DEFAULT = "README.md";
var ALLOW = /^[A-Za-z0-9_./-]+\.md$/; // path safety: relative .md only
function getDoc() {
var p = new URLSearchParams(location.search).get("p");
if (!p) return DEFAULT;
if (!ALLOW.test(p) || p.indexOf("..") >= 0) return DEFAULT;
return p;
}
function rewriteLinks(root, basePath) {
// Rewrite intra-doc .md links to use ?p=, and file-relative paths to absolute
// from the docs-site root.
var baseDir = basePath.indexOf("/") >= 0
? basePath.substring(0, basePath.lastIndexOf("/") + 1)
: "";
root.querySelectorAll("a[href]").forEach(function (a) {
var href = a.getAttribute("href");
if (!href) return;
if (/^(https?:|mailto:|#)/.test(href)) return; // external / anchor: leave alone
// Resolve relative to current doc
var resolved = new URL(href, "https://x/" + baseDir).pathname.slice(1);
if (/\.md(#.*)?$/.test(resolved)) {
// Intra-site markdown: route through the renderer
var hash = "";
var hashIdx = resolved.indexOf("#");
if (hashIdx >= 0) { hash = resolved.substring(hashIdx); resolved = resolved.substring(0, hashIdx); }
a.setAttribute("href", "?p=" + encodeURIComponent(resolved) + hash);
} else {
// Other relative: link to the raw file
a.setAttribute("href", "/" + resolved);
}
});
}
function render(md, path) {
var html = window.marked.parse(md, { gfm: true, breaks: false });
var el = document.getElementById("content");
el.innerHTML = html;
rewriteLinks(el, path);
document.title = (path.replace(/\.md$/, "")) + " — Genomic Intelligence API";
}
function showError(msg) {
document.getElementById("content").innerHTML =
'<div class="err"><strong>Could not load document.</strong><br>' + msg + '</div>';
}
var path = getDoc();
fetch("/" + path, { headers: { "Accept": "text/markdown,text/plain" } })
.then(function (r) {
if (!r.ok) throw new Error("HTTP " + r.status + " for /" + path);
return r.text();
})
.then(function (md) { render(md, path); })
.catch(function (e) { showError(String(e)); });
})();
</script>
</body>
</html>