Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
navigation_title: Elastic Docs v3
---

# Welcome to Elastic Docs v3

Elastic Docs V3 is our next-generation documentation platform designed to improve the experience of learning, using, and contributing to Elastic products. Built on a foundation of modern authoring tools and scalable infrastructure, V3 offers faster builds, streamlined versioning, and enhanced navigation to guide users through Elastic’s complex ecosystem.
Expand Down
4 changes: 2 additions & 2 deletions src/Elastic.Markdown/Assets/copybutton.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ button.copybtn {
/* The colors that GitHub uses */
border: #1b1f2426 1px solid;
/*background-color: #f6f8fa;*/
color: var(--color-gray-400);
color: var(--color-grey-50);
}

button.copybtn.success {
Expand Down Expand Up @@ -73,7 +73,7 @@ div.highlight {
font-size: .8em;
left: -.2em;
/*background: grey;*/
color: var(--color-gray-400);
color: var(--color-grey-50);
white-space: nowrap;
z-index: 2;
border-radius: 2px;
Expand Down
8 changes: 4 additions & 4 deletions src/Elastic.Markdown/Assets/markdown/code.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@apply grid;
code {
@apply text-sm
text-gray-300
text-grey-30
rounded-none
border-0
overflow-x-auto
Expand All @@ -24,7 +24,7 @@
@apply rounded-b-sm;
}
code.language-apiheader {
@apply border-b-1 border-b-gray-700;
@apply border-b-1 border-b-grey-100;
}
}

Expand Down Expand Up @@ -70,10 +70,10 @@

code {
@apply font-mono
bg-gray-100
bg-grey-10
rounded-xs
border-1
border-gray-300
border-grey-20
;
font-size: 0.875em;
line-height: 1.4em;
Expand Down
4 changes: 2 additions & 2 deletions src/Elastic.Markdown/Assets/markdown/dropdown.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@layer components {
.markdown-content {
.dropdown {
@apply mt-4 border-1 border-gray-300 rounded-sm shadow-xs;
@apply mt-4 border-1 border-grey-20 rounded-sm shadow-xs;
.dropdown-title {
@apply flex
justify-between
Expand All @@ -15,7 +15,7 @@
}

&[open] .dropdown-title {
@apply border-b-1 border-b-gray-300;
@apply border-b-1 border-b-grey-20;
svg {
transform: rotate(90deg);
}
Expand Down
4 changes: 2 additions & 2 deletions src/Elastic.Markdown/Assets/markdown/list.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
margin-left: 1.5em;
/*list-style-position: inside;*/
li::marker {
@apply font-mono text-grey-80;
@apply text-grey-80;
}
}

ul li {
@apply pl-[.5ch];
/*@apply pl-[.5ch];*/
}

li>ul, li>ol {
Expand Down
6 changes: 3 additions & 3 deletions src/Elastic.Markdown/Assets/markdown/tabs.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
@apply flex flex-wrap relative overflow-hidden mt-4;

.tabs-label {
@apply cursor-pointer px-6 py-2 z-20 text-ink-light flex items-center border-1 border-gray-200 -mb-[1px];
@apply cursor-pointer px-6 py-2 z-20 text-ink-light flex items-center border-1 border-grey-20 -mb-[1px];
&:not(:nth-of-type(1)) {
margin-left: -1px;
}

&:hover {
@apply border-b-1 border-b-black text-black bg-gray-100;
@apply border-b-1 border-b-black text-black bg-grey-10;
}
}

Expand All @@ -18,7 +18,7 @@
}

.tabs-content {
@apply w-full order-99 border-1 border-gray-200 px-6 z-0 hidden pb-6 pt-2;
@apply w-full order-99 border-1 border-grey-20 px-6 z-0 hidden pb-6 pt-2;
}

.tabs-input:checked+.tabs-label+.tabs-content {
Expand Down
2 changes: 1 addition & 1 deletion src/Elastic.Markdown/Assets/markdown/typography.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@
}

a {
@apply font-body text-blue-elastic hover:text-blue-800 underline;
@apply font-body text-blue-elastic hover:text-blue-elastic-100 underline;
}
}
54 changes: 30 additions & 24 deletions src/Elastic.Markdown/Assets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,27 @@
@import "./markdown/table.css";
@import "./markdown/definition-list.css";

#default-search::-webkit-search-cancel-button {
padding-right: calc(var(--spacing) * 2);
-webkit-appearance: none;
height: 16px;
width: 16px;
margin-left: .4em;
background-image: url("data:image/svg+xml;utf8,<svg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 24 24'><path stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 18 17.94 6M18 18 6.06 6'/></svg>");
cursor: pointer;
background-repeat: no-repeat;
}

:root {
--outline-size: max(2px, 0.08em);
--outline-style: auto;
--outline-color: var(--color-blue-elastic);
--outline-offset: 5;
--header-height: calc(var(--spacing) * 21);
--banner-height: calc(var(--spacing) * 9);
--offset-height: calc(var(--header-height) + var(--banner-height));
}

/*#default-search::-webkit-search-cancel-button {*/
/* padding-right: calc(var(--spacing) * 2);*/
/* -webkit-appearance: none;*/
/* height: 16px;*/
/* width: 16px;*/
/* margin-left: .4em;*/
/* background-image: url("data:image/svg+xml;utf8,<svg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 24 24'><path stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 18 17.94 6M18 18 6.06 6'/></svg>");*/
/* cursor: pointer;*/
/* background-repeat: no-repeat;*/
/*}*/

#pages-nav li.current {
position: relative;
Expand All @@ -31,7 +42,7 @@
left: -1px;
width: calc(var(--spacing) * 6);
height: 1px;
background-color: var(--color-gray-200);
background-color: var(--color-grey-10);
}
}

Expand All @@ -49,7 +60,7 @@
text-blue-elastic
text-nowrap
font-semibold
hover:text-blue-800
hover:text-blue-elastic-100
inline-flex
justify-center
items-center;
Expand All @@ -72,20 +83,20 @@

.sidebar {
.sidebar-nav {
@apply sticky top-21 z-30 overflow-y-auto;
max-height: calc(100vh - var(--spacing) * 22);
@apply sticky top-(--offset-height) z-30 overflow-y-auto;
max-height: calc(100vh - var(--offset-height));
scrollbar-gutter: stable;
}

.sidebar-link {
@apply
text-ink-light
hover:text-black
text-sm
lg:text-sm
text-wrap
inline-block
leading-[1.3em]
tracking-[-0.02em];
tracking-[-0.02em]
}
}

Expand All @@ -95,7 +106,7 @@

.applies {
@apply font-sans;
border-bottom: 1px solid var(--color-gray-300);
border-bottom: 1px solid var(--color-grey-20);
padding-bottom: calc(var(--spacing) * 3);

.applies-to-label {
Expand All @@ -113,7 +124,7 @@
font-size: 0.8em;
border-radius: 0.4em;
background-color: var(--color-white);
border: 1px solid var(--color-gray-300);
border: 1px solid var(--color-grey-20);
}
}
}
Expand All @@ -122,12 +133,7 @@
scroll-margin-top: calc(var(--spacing) * 26);
}

:root {
--outline-size: max(2px, 0.08em);
--outline-style: auto;
--outline-color: var(--color-blue-elastic);
--outline-offset: 5;
}


:is(a, button, input, textarea, summary):focus {
outline: var(--outline-size) var(--outline-style) var(--outline-color);
Expand Down
7 changes: 2 additions & 5 deletions src/Elastic.Markdown/Assets/theme.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
@theme {
/*--color-*: initial;*/

--font-sans: "Mier B", "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--font-body: "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

--color-*: initial;

--color-white: #FFFFFF;
--color-black: #000000;

Expand All @@ -13,10 +14,6 @@
--color-ink-light: #535966;
--color-ink-dark: #1C1E23;

--color-gray: #E6EBF2;
--color-gray-light: #F5F7FA;
--color-gray-dark: #D4DAE5;

--color-blue-sky: #36B9FF;
--color-blue-midnight: #20377D;
--color-blue-developer: #101C3F;
Expand Down
57 changes: 47 additions & 10 deletions src/Elastic.Markdown/Slices/Layout/_Breadcrumbs.cshtml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@using Elastic.Markdown.Helpers
@inherits RazorSlice<LayoutViewModel>
<ol id="breadcrumbs" class="block w-full" itemscope="" itemtype="https://schema.org/BreadcrumbList">
<li class="inline text-ink text-sm hover:text-ink leading-[1.2em] tracking-[-0.02em]" itemprop="itemListElement" itemscope="" itemtype="https://schema.org/ListItem">
<a
<ol id="breadcrumbs" class="block items-center w-full py-6" itemscope="" itemtype="https://schema.org/BreadcrumbList">
<li class="inline text-grey-80 text-sm leading-[1.2em] tracking-[-0.02em]" itemprop="itemListElement" itemscope="" itemtype="https://schema.org/ListItem">
<a
itemprop="item"
href="@Model.Link("/")"
hx-get="@Model.Link("/")"
Expand All @@ -11,14 +11,51 @@
hx-push-url="true"
hx-indicator="#htmx-indicator"
preload="@Htmx.GetPreload()"
>
<span itemprop="name" class="hover:text-ink">Elastic</span>
>
<span itemprop="name" class="hover:text-black">
Home
</span>
</a>
<meta itemprop="position" content="1">
</li>
@foreach (var item in Model.Parents.Reverse().Skip(1))
@{
var firstCrumb = Model.Parents.Reverse().Skip(1).FirstOrDefault();
}
@if (firstCrumb != null)
{
<li class="inline text-grey-80 text-sm leading-[1.2em] tracking-[-0.02em]" itemprop="itemListElement" itemscope="" itemtype="https://schema.org/ListItem">
<span class="px-1">/</span>
<a
itemprop="item"
href="@firstCrumb.Url"
hx-get="@firstCrumb.Url"
hx-select-oob="@Htmx.GetHxSelectOob(Model.Features, Model.UrlPathPrefix, firstCrumb.Url, Model.CurrentDocument.Url)"
hx-swap="none"
hx-push-url="true"
hx-indicator="#htmx-indicator"
preload="@Htmx.GetPreload()"
>
<span itemprop="name" class="hover:text-black">@firstCrumb.NavigationTitle</span>
</a>
<meta itemprop="position" content="2">
</li>
}
@{
var crumbs = Model.Parents.Reverse().Skip(2).TakeLast(2).ToList();
}

@if (crumbs.Count < Model.Parents.Reverse().Skip(2).Count())
{
<li class="inline text-gray-500 text-sm leading-[1.2em] tracking-[-0.02em]" itemprop="itemListElement" itemscope="" itemtype="https://schema.org/ListItem">
<li class="inline text-grey-80 text-sm leading-[1.2em] tracking-[-0.02em]" itemprop="itemListElement" itemscope="" itemtype="https://schema.org/ListItem">
<span class="px-1">/</span>
</li>
}

@for (var i = 0; i < crumbs.Count; i++)
{
var item = crumbs[i];
<li class="inline text-grey-80 text-sm leading-[1.2em] tracking-[-0.02em] text-pretty" itemprop="itemListElement" itemscope="" itemtype="https://schema.org/ListItem">
<span class="px-1">/</span>
<a
itemprop="item"
Expand All @@ -30,12 +67,12 @@
hx-indicator="#htmx-indicator"
preload="@Htmx.GetPreload()"
>
<span itemprop="name" class="hover:text-ink">@item.NavigationTitle</span>
<span itemprop="name" class="hover:text-black">@item.NavigationTitle</span>
</a>
<meta itemprop="position" content="2">
<meta itemprop="position" content="@(i+2)">
</li>
}
<li class="inline text-gray-500 text-sm leading-[1.2em] tracking-[-0.02em]" itemprop="itemListElement" itemscope="" itemtype="https://schema.org/ListItem">
<li class="inline text-grey-80 text-sm leading-[1.2em] tracking-[-0.02em]" itemprop="itemListElement" itemscope="" itemtype="https://schema.org/ListItem">
<span class="px-1">/</span>
</li>
</ol>
Loading
Loading