add ai brain
This commit is contained in:
+6
-4
@@ -64,9 +64,10 @@ s { text-decoration-color: var(--strike); text-decoration-thickness: 1.5px; }
|
|||||||
/* Masthead */
|
/* Masthead */
|
||||||
.masthead { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
|
.masthead { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
|
||||||
.masthead-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; padding: 0 24px; max-width: 1440px; margin: 0 auto; }
|
.masthead-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; padding: 0 24px; max-width: 1440px; margin: 0 auto; }
|
||||||
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
|
.masthead-main { display: flex; align-items: baseline; gap: 24px; }
|
||||||
|
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
|
||||||
.brand:hover { color: var(--ink); }
|
.brand:hover { color: var(--ink); }
|
||||||
.mark { width: 32px; height: 28px; image-rendering: pixelated; }
|
.mark { align-self: center; width: 32px; height: 28px; image-rendering: pixelated; }
|
||||||
.brand-sub { font-weight: 400; color: var(--ink-2); }
|
.brand-sub { font-weight: 400; color: var(--ink-2); }
|
||||||
.topnav { display: flex; gap: 20px; }
|
.topnav { display: flex; gap: 20px; }
|
||||||
.topnav a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; padding: 4px 0; border-bottom: 2px solid transparent; }
|
.topnav a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; padding: 4px 0; border-bottom: 2px solid transparent; }
|
||||||
@@ -232,8 +233,9 @@ h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); margin: 0 0 12px; letter-spa
|
|||||||
.home-section-head p { margin: 0; color: var(--ink-2); }
|
.home-section-head p { margin: 0; color: var(--ink-2); }
|
||||||
|
|
||||||
.site-footer { border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--ink-2); }
|
.site-footer { border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--ink-2); }
|
||||||
.site-footer-inner { max-width: 1440px; margin: 0 auto; padding: 28px 24px 40px; }
|
.site-footer-inner { max-width: 1440px; margin: 0 auto; padding: 32px 24px; }
|
||||||
.site-footer p { margin: 0 0 6px; max-width: 80ch; }
|
.site-footer p { margin: 0 auto 6px; max-width: 80ch; text-align: center; text-wrap: balance; }
|
||||||
|
.site-footer p:last-child { margin-bottom: 0; }
|
||||||
|
|
||||||
/* Syntax highlighting (minimal) */
|
/* Syntax highlighting (minimal) */
|
||||||
.chroma .c, .chroma .c1, .chroma .cm { color: var(--ink-2); font-style: italic; }
|
.chroma .c, .chroma .c1, .chroma .cm { color: var(--ink-2); font-style: italic; }
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
---
|
||||||
|
title: "AI Brain"
|
||||||
|
tagline: "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
||||||
|
weight: 30
|
||||||
|
---
|
||||||
|
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
||||||
|
|
||||||
|
## Lorem ipsum
|
||||||
|
|
||||||
|
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
||||||
|
|
||||||
|
- Lorem ipsum dolor sit amet.
|
||||||
|
- Consectetur adipiscing elit.
|
||||||
|
- Sed do eiusmod tempor incididunt.
|
||||||
|
|
||||||
|
## Dolor sit amet
|
||||||
|
|
||||||
|
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.
|
||||||
|
|
||||||
|
Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.
|
||||||
@@ -33,6 +33,10 @@ disableKinds = ["taxonomy", "term", "rss"]
|
|||||||
name = "Applications"
|
name = "Applications"
|
||||||
pageRef = "/apps"
|
pageRef = "/apps"
|
||||||
weight = 20
|
weight = 20
|
||||||
|
[[menus.main]]
|
||||||
|
name = "AI Brain"
|
||||||
|
pageRef = "/ai-brain"
|
||||||
|
weight = 30
|
||||||
|
|
||||||
# Category order and descriptions used on the home page and in the sidebar.
|
# Category order and descriptions used on the home page and in the sidebar.
|
||||||
[[params.appGroups]]
|
[[params.appGroups]]
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
<button class="nav-toggle" type="button" aria-controls="sidebar" aria-expanded="false">
|
<button class="nav-toggle" type="button" aria-controls="sidebar" aria-expanded="false">
|
||||||
<span class="nav-toggle-bars" aria-hidden="true"></span><span class="visually-hidden">Menu</span>
|
<span class="nav-toggle-bars" aria-hidden="true"></span><span class="visually-hidden">Menu</span>
|
||||||
</button>
|
</button>
|
||||||
|
<div class="masthead-main">
|
||||||
<a class="brand" href="{{ "/" | relURL }}">
|
<a class="brand" href="{{ "/" | relURL }}">
|
||||||
{{ partial "mark.html" . }}
|
{{ partial "mark.html" . }}
|
||||||
<span class="brand-text">Federated Computer <span class="brand-sub">Docs</span></span>
|
<span class="brand-text">Federated Computer <span class="brand-sub">Docs</span></span>
|
||||||
@@ -13,6 +14,7 @@
|
|||||||
<a href="{{ .URL }}"{{ if or ($current.IsMenuCurrent "main" .) ($current.HasMenuCurrent "main" .) (and .Page ($current.IsDescendant .Page)) }} aria-current="true"{{ end }}>{{ .Name }}</a>
|
<a href="{{ .URL }}"{{ if or ($current.IsMenuCurrent "main" .) ($current.HasMenuCurrent "main" .) (and .Page ($current.IsDescendant .Page)) }} aria-current="true"{{ end }}>{{ .Name }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</nav>
|
</nav>
|
||||||
|
</div>
|
||||||
<div class="search" role="search">
|
<div class="search" role="search">
|
||||||
<label class="visually-hidden" for="search-input">Search the documentation</label>
|
<label class="visually-hidden" for="search-input">Search the documentation</label>
|
||||||
<input id="search-input" type="search" placeholder="Search apps and guides" autocomplete="off" spellcheck="false" aria-controls="search-results" aria-expanded="false">
|
<input id="search-input" type="search" placeholder="Search apps and guides" autocomplete="off" spellcheck="false" aria-controls="search-results" aria-expanded="false">
|
||||||
|
|||||||
@@ -10,6 +10,18 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ with site.GetPage "/ai-brain" }}
|
||||||
|
<div class="side-group">
|
||||||
|
<a class="side-heading{{ if eq $current . }} is-current{{ end }}" href="{{ .RelPermalink }}"{{ if eq $current . }} aria-current="page"{{ end }}>{{ .Title }}</a>
|
||||||
|
{{ with .Pages.ByWeight }}
|
||||||
|
<ul>
|
||||||
|
{{ range . }}
|
||||||
|
<li><a href="{{ .RelPermalink }}"{{ if eq $current . }} aria-current="page"{{ end }}>{{ .LinkTitle }}</a></li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
{{ with site.GetPage "/apps" }}
|
{{ with site.GetPage "/apps" }}
|
||||||
{{ $apps := .Pages }}
|
{{ $apps := .Pages }}
|
||||||
<div class="side-group">
|
<div class="side-group">
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
{{- $items = $items | append (dict
|
{{- $items = $items | append (dict
|
||||||
"title" .Title
|
"title" .Title
|
||||||
"url" .RelPermalink
|
"url" .RelPermalink
|
||||||
"section" (cond (eq .Section "apps") (.Params.category | default "Applications") "Getting started")
|
"section" (cond (eq .Section "apps") (.Params.category | default "Applications") .CurrentSection.Title)
|
||||||
"tagline" (.Params.tagline | default "")
|
"tagline" (.Params.tagline | default "")
|
||||||
"replaces" (delimit (.Params.replaces | default slice) ", ")
|
"replaces" (delimit (.Params.replaces | default slice) ", ")
|
||||||
"headings" (delimit (findRE `(?m)^#{2,3} .+$` .RawContent) " " | replaceRE `#+ ` "")
|
"headings" (delimit (findRE `(?m)^#{2,3} .+$` .RawContent) " " | replaceRE `#+ ` "")
|
||||||
|
|||||||
+3
-1
@@ -9,8 +9,9 @@
|
|||||||
{{ if eq .Section "apps" }}
|
{{ if eq .Section "apps" }}
|
||||||
{{ partial "directory.html" (dict "headingLevel" 2) }}
|
{{ partial "directory.html" (dict "headingLevel" 2) }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
{{ with .Pages.ByWeight }}
|
||||||
<ol class="guide-list">
|
<ol class="guide-list">
|
||||||
{{ range .Pages.ByWeight }}
|
{{ range . }}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||||
{{ with .Params.tagline }}<p>{{ . }}</p>{{ end }}
|
{{ with .Params.tagline }}<p>{{ . }}</p>{{ end }}
|
||||||
@@ -18,6 +19,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</ol>
|
</ol>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
</article>
|
</article>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user