mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-29 16:08:32 +02:00
* Created Dev-portal pages * changed structure of documents for dev-portal section, renamed dev-portal to docs, related template changes * keeping learn section for future usage * update dev-portal and documents * added feedback and breadcrumbs components * used the docs-side menu partial on documentation pages, and added active state to the docs-header links * search console on docs * small fixes * assigned partitions, css fix * fix links on the core page * update links for cloud * update links for build * Reference -> API Reference * [WIP] Dev portal light theme (#1250) * light theme - docs side menu * background fix * wip: updating layout * layout update * light theme * card titles with a link * upd page-search package * simplified header * fixes * TOC scroll spy (#1259) * scroll spy on table of contents * packages versions fix * custom scroll spy for toc * make spy work again --------- Co-authored-by: generall <andrey@vasnetsov.com> * limit toc depth to 3 * thin scrollbar * No dev template (#1266) * divided the docs template into smaller partials, increased reusability * removed docs section, moved all to the documentation * review fixes * review fixes --------- Co-authored-by: generall <andrey@vasnetsov.com> * side panel more compact * toc margin bottom fix * Refactoring and renaming (#1277) * renamed and moved partials, fixed link * refactoring: docs-card * fix * fix urls * disable scrollbar on table of content * added scrollbar colors for light theme (#1280) * fix language * Dev portal fixes (#1285) * cards fixes * moved files, fixed paddings * fix for my fix * external header links * fix --------- Co-authored-by: trean <trean.mi@gmail.com> Co-authored-by: Andrey Vasnetsov <andrey@vasnetsov.com> Co-authored-by: davidmyriel <davidmyriel@gmail.com>
111 lines
3.9 KiB
HTML
111 lines
3.9 KiB
HTML
{{ $partition := .partition }}
|
|
|
|
{{ $currentNode := .context }}
|
|
<div class="docs-menu">
|
|
<div id="sidebar-toggle" class="docs-menu__header">
|
|
<h2>Docs Menu</h2>
|
|
<button type="button" class="docs-menu__button">{{ partial "svg" "arrow-sm-down-white.svg" }}</button>
|
|
</div>
|
|
<div id="sidebar" class="docs-menu__content">
|
|
<div class="docs-menu__input">
|
|
<button
|
|
class="qdr-search-input-btn q-input input_md input_light-bg"
|
|
type="button"
|
|
name="search"
|
|
data-target="#searchModal"
|
|
>
|
|
Search
|
|
</button>
|
|
</div>
|
|
|
|
{{ $subject := site.GetPage "documentation" }}
|
|
|
|
|
|
<nav class="docs-menu__links">
|
|
{{ range $subject.Pages }}
|
|
{{ if and (eq .Params.partition $partition) (not .Params.hideInSidebar) }}
|
|
{{ if (eq .Params.type "delimiter") }}
|
|
<h3 class="docs-menu__links-title">{{ .Title }}</h3>
|
|
{{ else }}
|
|
{{ if and (.IsPage) (not .Params.hideInSidebar) }}
|
|
<div
|
|
class="docs-menu__links-group {{ if eq .File.UniqueID $currentNode.File.UniqueID }}active{{ end }}
|
|
{{- if (eq .Params.type "external-link") }}external-link{{ end -}} "
|
|
>
|
|
<div class="docs-menu__links-group-heading">
|
|
<a
|
|
href="{{ if (eq .Params.type "external-link") }}
|
|
{{ .Params.external_url }}
|
|
{{ else }}
|
|
{{ .Permalink }}
|
|
{{ end }}"
|
|
{{ if (eq .Params.type "external-link") }}target="_blank"{{ end }}
|
|
>
|
|
{{ .Title }}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ if and (.IsSection) (not .Params.hideInSidebar) }}
|
|
|
|
<!-- current page is active or any sub-page is active -->
|
|
{{ $isActive := false }}
|
|
{{ range .RegularPages }}
|
|
{{ if eq .File.UniqueID $currentNode.File.UniqueID }}
|
|
{{ $isActive = true }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ if eq .File.UniqueID $currentNode.File.UniqueID }}
|
|
{{ $isActive = true }}
|
|
{{ end }}
|
|
|
|
{{ $sectionLink := .Permalink }}
|
|
|
|
{{ if .Params.is_empty }}
|
|
{{ $sectionLink = (index (.RegularPages) 0).Permalink }}
|
|
{{ end }}
|
|
|
|
|
|
<details
|
|
class="docs-menu__links-group link-group {{ if $isActive }}active{{ end }}"
|
|
{{ if $isActive }}open{{ end }}
|
|
>
|
|
<summary class="docs-menu__links-group-heading">
|
|
<a href="{{ $sectionLink }}">
|
|
{{ .Title }}
|
|
</a>
|
|
</summary>
|
|
|
|
<nav>
|
|
<ul class="docs-menu__links-submenu">
|
|
{{ range .RegularPages }}
|
|
{{ if (eq .Params.type "external-link") }}
|
|
<li class="docs-menu__links-submenu-item">
|
|
<a href="{{ .Params.external_url }}" target="_blank">
|
|
{{ .Title }}
|
|
{{ partial "svg" "external-link.svg" }}
|
|
</a>
|
|
</li>
|
|
{{ else if not .Params.hideInSidebar }}
|
|
<li
|
|
class="docs-menu__links-submenu-item{{ if eq .File.UniqueID $currentNode.File.UniqueID }}
|
|
active
|
|
{{ end }}"
|
|
>
|
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
|
</li>
|
|
{{ end }}
|
|
{{ end }}
|
|
</ul>
|
|
</nav>
|
|
</details>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
</nav>
|
|
</div>
|
|
</div>
|