mirror of https://github.com/docker/docs.git
search: add docsearch container class and h1 ids
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
parent
fd17d8fc27
commit
fd264a9df3
|
@ -12,8 +12,10 @@
|
|||
{{ .Scratch.Set "headings" slice }}
|
||||
{{ .Scratch.Set "subheadings" slice }}
|
||||
{{ partial "breadcrumbs.html" . }}
|
||||
<article class="prose max-w-none dark:prose-invert">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<article class="DocSearch-content prose max-w-none dark:prose-invert">
|
||||
{{ with .Title }}
|
||||
<h1 id="{{ anchorize . }}">{{ . }}</h1>
|
||||
{{ end }}
|
||||
{{ $data.short | .RenderString (dict "display" "block") }}
|
||||
{{ if $data.deprecated }}
|
||||
<blockquote class="warning">
|
||||
|
|
|
@ -4,8 +4,10 @@
|
|||
|
||||
{{ define "main" }}
|
||||
{{ partial "breadcrumbs.html" . }}
|
||||
<article class="prose max-w-none dark:prose-invert">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<article class="DocSearch-content prose max-w-none dark:prose-invert">
|
||||
{{ with .Title }}
|
||||
<h1 id="{{ anchorize . }}">{{ . }}</h1>
|
||||
{{ end }}
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
|
||||
{{ define "main" }}
|
||||
{{ partial "breadcrumbs.html" . }}
|
||||
<article class="prose max-w-none dark:prose-invert">
|
||||
<article class="DocSearch-content prose max-w-none dark:prose-invert">
|
||||
{{ with .Title }}
|
||||
<h1>{{ . }}</h1>
|
||||
<h1 id="{{ anchorize . }}">{{ . }}</h1>
|
||||
{{ end }}
|
||||
{{ .Content }}
|
||||
</article>
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
|
||||
{{ define "main" }}
|
||||
{{ partial "breadcrumbs.html" . }}
|
||||
<article class="prose max-w-none dark:prose-invert">
|
||||
<article class="DocSearch-content prose max-w-none dark:prose-invert">
|
||||
{{ with .Title }}
|
||||
<h1>{{ . }}</h1>
|
||||
<h1 id="{{ anchorize . }}">{{ . }}</h1>
|
||||
{{ end }}
|
||||
{{ .Content }}
|
||||
</article>
|
||||
|
|
|
@ -4,8 +4,10 @@
|
|||
|
||||
{{ define "main" }}
|
||||
{{ partial "breadcrumbs.html" . }}
|
||||
<article class="prose max-w-none dark:prose-invert">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<article class="DocSearch-content prose max-w-none dark:prose-invert">
|
||||
{{ with .Title }}
|
||||
<h1 id="{{ anchorize . }}">{{ . }}</h1>
|
||||
{{ end }}
|
||||
<blockquote>
|
||||
<p><strong>Note</strong></p>
|
||||
<p>
|
||||
|
|
Loading…
Reference in New Issue