4a9ca29887
The repository's docs/api/ (the portal, its surface pages and the generated mod and server references) is built into the docs section: /docs/api is its README and /docs/api/<page> each page, in two nav groups, "Build on Horizon" and "API reference". The pages are read from the checkout or from main on GitHub, like the README, so the site never holds a copy. Links between portal pages become the site's (and the build's link check covers them); other relative links go to the file on GitHub. The renderer gains tables: the "Ways in" table, the references and the other tables on the site (apis, performance) showed as raw pipes. A link whose label is a code span no longer throws. Caddy and the dev server route /docs/api/<page> and redirect /docs/api/ to /docs/api; Railway rebuilds when docs/api/ changes. /docs/mods links the Mod API, its reference and its ways in; the summary page is now "APIs at a glance". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
56 lines
2.7 KiB
HTML
56 lines
2.7 KiB
HTML
<!doctype html>
|
|
<html lang="en" class="no-js">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
|
<title>{{DOC_TITLE}} · Horizon docs</title>
|
|
<meta name="description" content="{{DOC_DESC}}">
|
|
<meta name="theme-color" content="#ece7f7" media="(prefers-color-scheme: light)">
|
|
<meta name="theme-color" content="#0f0d17" media="(prefers-color-scheme: dark)">
|
|
<meta name="color-scheme" content="light dark">
|
|
<link rel="canonical" href="https://playhorizon.dev{{DOC_PATH}}">
|
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
|
<link rel="icon" href="/favicon-32.png" sizes="32x32" type="image/png">
|
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
|
<meta property="og:type" content="article">
|
|
<meta property="og:site_name" content="Horizon">
|
|
<meta property="og:title" content="{{DOC_TITLE}} · Horizon docs">
|
|
<meta property="og:description" content="{{DOC_DESC}}">
|
|
<meta property="og:url" content="https://playhorizon.dev{{DOC_PATH}}">
|
|
<meta property="og:image" content="https://playhorizon.dev/og.png">
|
|
<link rel="stylesheet" href="{{CSS}}">
|
|
<script>document.documentElement.classList.replace("no-js", "js"); try { const t = localStorage.getItem("theme"); if (t === "light" || t === "dark") document.documentElement.dataset.theme = t } catch {}</script>
|
|
<script type="module" src="{{DOCS_JS}}"></script>
|
|
</head>
|
|
<body class="docs-page">
|
|
<a class="skip" href="#main">Skip to the content</a>
|
|
{{SITE_NAV}}
|
|
|
|
<div class="docs" data-menu-content>
|
|
<details class="docs-nav-wrap" open>
|
|
<summary>Docs menu</summary>
|
|
<nav class="docs-nav" aria-label="Documentation">
|
|
{{DOC_NAV}}
|
|
</nav>
|
|
</details>
|
|
<script>if (matchMedia("(max-width: 900px)").matches) document.querySelector(".docs-nav-wrap").removeAttribute("open")</script>
|
|
|
|
<main id="main" class="docs-main">
|
|
<p class="kicker"><span>{{DOC_GROUP}}</span></p>
|
|
<h1 class="title">{{DOC_TITLE}}</h1>
|
|
<p class="lede">{{DOC_LEDE}}</p>
|
|
{{DOC_TOC}}
|
|
<div class="prose docs-prose">
|
|
{{DOC_BODY}}
|
|
</div>
|
|
<nav class="docs-pager" aria-label="Next and previous pages">
|
|
{{DOC_PAGER}}
|
|
</nav>
|
|
<p class="docs-edit"><a href="https://github.com/ludovic111/horizon/blob/main/{{DOC_FILE}}">Edit this page on GitHub</a> · Spotted something wrong? <a href="https://github.com/ludovic111/horizon/issues">Open an issue</a> or ask on <a href="{{DISCORD}}">Discord</a>.</p>
|
|
<p class="disclaimer">Not an official Minecraft product. Not approved by or associated with Mojang or Microsoft.</p>
|
|
</main>
|
|
</div>
|
|
<p class="footer-word" aria-hidden="true">horizon</p>
|
|
</body>
|
|
</html>
|