Skip to content

Commit adb0d18

Browse files
committed
feat: add antora docs ui config
1 parent 207326b commit adb0d18

File tree

4 files changed

+71
-0
lines changed

4 files changed

+71
-0
lines changed

docs/ui/layouts/default.hbs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
{{> head}}
5+
</head>
6+
<body>
7+
<header class="navbar" role="banner">
8+
<div class="container">
9+
{{> header-content}}
10+
</div>
11+
</header>
12+
13+
<main id="content" class="container" role="main">
14+
{{#if page.title}}
15+
<h1 class="page-title">{{page.title}}</h1>
16+
{{/if}}
17+
<article class="doc">
18+
{{{page.contents}}}
19+
</article>
20+
</main>
21+
22+
<footer class="footer" role="contentinfo">
23+
<div class="container">
24+
{{> footer-content}}
25+
</div>
26+
</footer>
27+
</body>
28+
</html>

docs/ui/layouts/home.hbs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
{{> head}}
5+
</head>
6+
<body>
7+
<header class="navbar" role="banner">
8+
<div class="container">
9+
{{> header-content}}
10+
</div>
11+
</header>
12+
13+
<main id="content" class="container" role="main">
14+
{{#if page.title}}
15+
<h1 class="page-title">{{page.title}}</h1>
16+
{{/if}}
17+
<article class="doc home">
18+
{{{page.contents}}}
19+
</article>
20+
</main>
21+
22+
<footer class="footer" role="contentinfo">
23+
<div class="container">
24+
{{> footer-content}}
25+
</div>
26+
</footer>
27+
</body>
28+
</html>

docs/ui/partials/head.hbs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<meta charset="utf-8">
2+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
3+
<meta name="viewport" content="width=device-width, initial-scale=1">
4+
<title>{{#if page.title}}{{page.title}} | {{/if}}{{#if site.title}}{{site.title}}{{else}}Documentation{{/if}}</title>
5+
<link rel="stylesheet" href="{{uiRootPath}}/assets/styles.css">
6+
<script defer src="{{uiRootPath}}/assets/site.js"></script>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<div class="nav">
2+
<a class="back-btn" href="{{siteRootPath}}/" aria-label="Go back" onclick="if (history.length > 1) { history.back(); return false; }">
3+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16" aria-hidden="true"><path d="M11 2.5a.75.75 0 0 1 0 1.06L6.56 8l4.44 4.44a.75.75 0 0 1-1.06 1.06l-5-5a.75.75 0 0 1 0-1.06l5-5a.75.75 0 0 1 1.06 0z"/></svg>
4+
</a>
5+
<div class="brand">
6+
<a class="logo" href="{{siteRootPath}}/"></a>
7+
<a class="title" href="{{siteRootPath}}/">{{#if site.title}}{{site.title}}{{else}}Documentation{{/if}}</a>
8+
</div>
9+
</div>

0 commit comments

Comments
 (0)