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
1 change: 1 addition & 0 deletions src/Elastic.Markdown/Slices/Layout/_Footer.cshtml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
@inherits RazorSlice<LayoutViewModel>
<script src="@Model.Static("main.js")"></script>
25 changes: 4 additions & 21 deletions src/Elastic.Markdown/Slices/Layout/_Head.cshtml
Original file line number Diff line number Diff line change
@@ -1,29 +1,12 @@
@inherits RazorSlice<LayoutViewModel>
<head>
<title>@Model.Title</title>
<link rel="stylesheet" type="text/css" href="@Model.Static("styles.css")"/>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="@(Model.AllowIndexing ? "index, follow" : "noindex, nofollow")">
<title>@Model.Title</title>
<link rel="index" title="Index" href="@Model.Link("genindex.html")"/>
<link rel="search" title="Search" href="@Model.Link("search.html")"/>
<link rel="stylesheet" type="text/css" href="@Model.Static("pygments.css")"/>
<link rel="stylesheet" type="text/css" href="@Model.Static("shibuya.css")"/>
<link rel="stylesheet" type="text/css" href="@Model.Static("mystnb.css")"/>
<link rel="stylesheet" type="text/css" href="@Model.Static("copybutton.css")"/>
<link rel="stylesheet" type="text/css" href="@Model.Static("togglebutton.css")"/>
<link rel="stylesheet" type="text/css" href="@Model.Static("sphinx-design.min.css")"/>
<link media="print" rel="stylesheet" type="text/css" href="@Model.Static("/_static/print.css")"/>
<link rel="stylesheet" type="text/css" href="@Model.Static("custom.css")"/>
<link rel="stylesheet" type="text/css" href="@Model.Static("atom-one-light.css")"/>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
:root {
--sy-f-text: "Inter", var(--sy-f-sys), var(--sy-f-cjk), sans-serif;
--sy-f-heading: "Inter", var(--sy-f-sys), var(--sy-f-cjk), sans-serif;
}
</style>
<meta name="htmx-config" content='{"scrollIntoViewOnBoost": false, "selfRequestsOnly": true}'>

<meta property="og:type" content="website"/>
<meta property="og:title" content="Elastic Docs v3"/>
<meta name="twitter:card" content="summary"/>
Expand Down
66 changes: 0 additions & 66 deletions src/Elastic.Markdown/Slices/Layout/_HeadNav.cshtml

This file was deleted.

52 changes: 52 additions & 0 deletions src/Elastic.Markdown/Slices/Layout/_PrevNextNav.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
@using Elastic.Markdown.Helpers
@inherits RazorSlice<LayoutViewModel>
<footer id="prev-next-nav" class="content-container mt-20">
<div class="flex flex-wrap lg:flex-nowrap gap-2 mt-2">
<div class="w-full">
@if (Model.Previous != null)
{
<a
href="@Model.Previous.Url"
hx-get="@Model.Previous.Url"
hx-select-oob="@Htmx.GetHxSelectOob()"
hx-swap="none"
hx-push-url="true"
hx-indicator="#htmx-indicator"
preload="mouseover"
class="flex h-full items-center text-ink-light hover:black border-1 border-gray-300 hover:border-gray-500 rounded-lg p-6 shadow-md"
>
<svg class="size-6 mr-2" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" d="M15.75 19.5 8.25 12l7.5-7.5"/>
</svg>
<div>
<div class="text-xs lg:text-sm">Previous</div>
<div class="text-base lg:text-xl text-black">@Model.Previous.NavigationTitle</div>
</div>
</a>
}
</div>
<div class="w-full">
@if (Model.Next != null)
{
<a
href="@Model.Next.Url"
hx-get="@Model.Next.Url"
hx-select-oob="@Htmx.GetHxSelectOob()"
hx-swap="none"
hx-push-url="true"
hx-indicator="#htmx-indicator"
preload="mouseover"
class="flex h-full items-center justify-end text-ink-light hover:black border-1 border-gray-300 hover:border-gray-500 rounded-lg p-6 shadow-md text-right"
>
<div>
<div class="text-xs lg:text-sm">Next</div>
<div class="text-base lg:text-xl text-black">@Model.Next.NavigationTitle</div>
</div>
<svg class="size-6 ml-2" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" d="m8.25 4.5 7.5 7.5-7.5 7.5"/>
</svg>
</a>
}
</div>
</div>
</footer>
64 changes: 3 additions & 61 deletions src/Elastic.Markdown/Slices/_Layout.cshtml
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
@using Elastic.Markdown.Helpers
@inherits RazorLayoutSlice<LayoutViewModel>
<!DOCTYPE html>
<html lang="en" class="h-screen">
<head>
<title>@Model.Title</title>
<link rel="stylesheet" type="text/css" href="@Model.Static("styles.css")"/>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="@(Model.AllowIndexing ? "index, follow" : "noindex, nofollow")">
<meta name="htmx-config" content='{"scrollIntoViewOnBoost": false, "selfRequestsOnly": true}'>
</head>
@await RenderPartialAsync(_Head.Create(Model))
<body class="text-ink" hx-ext="preload,head-support">
@(await RenderPartialAsync(_Header.Create(Model)))
<div class="flex flex-col items-center px-6">
Expand All @@ -29,60 +21,10 @@
<article id="markdown-content" class="content-container markdown-content">
@await RenderBodyAsync()
</article>
<footer id="prev-next-nav" class="content-container mt-20">
<div class="flex flex-wrap lg:flex-nowrap gap-2 mt-2">
<div class="w-full">
@if (Model.Previous != null)
{
<a
href="@Model.Previous.Url"
hx-get="@Model.Previous.Url"
hx-select-oob="@Htmx.GetHxSelectOob()"
hx-swap="none"
hx-push-url="true"
hx-indicator="#htmx-indicator"
preload="mouseover"
class="flex h-full items-center text-ink-light hover:black border-1 border-gray-300 hover:border-gray-500 rounded-lg p-6 shadow-md"
>
<svg class="size-6 mr-2" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" d="M15.75 19.5 8.25 12l7.5-7.5"/>
</svg>
<div>
<div class="text-xs lg:text-sm">Previous</div>
<div class="text-base lg:text-xl text-black">@Model.Previous.NavigationTitle</div>
</div>
</a>
}
</div>
<div class="w-full">
@if (Model.Next != null)
{
<a
href="@Model.Next.Url"
hx-get="@Model.Next.Url"
hx-select-oob="@Htmx.GetHxSelectOob()"
hx-swap="none"
hx-push-url="true"
hx-indicator="#htmx-indicator"
preload="mouseover"
class="flex h-full items-center justify-end text-ink-light hover:black border-1 border-gray-300 hover:border-gray-500 rounded-lg p-6 shadow-md text-right"
>
<div>
<div class="text-xs lg:text-sm">Next</div>
<div class="text-base lg:text-xl text-black">@Model.Next.NavigationTitle</div>
</div>
<svg class="size-6 ml-2" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" d="m8.25 4.5 7.5 7.5-7.5 7.5"/>
</svg>
</a>
}
</div>
</div>
</footer>
@await RenderPartialAsync(_PrevNextNav.Create(Model))
</main>
</div>
</div>
@(await RenderPartialAsync(_Footer.Create(Model)))
<script src="@Model.Static("main.js")"></script>
@await RenderPartialAsync(_Footer.Create(Model))
</body>
</html>
108 changes: 0 additions & 108 deletions src/Elastic.Markdown/_static/atom-one-light.css

This file was deleted.

Loading