Skip to content
Draft
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
2 changes: 1 addition & 1 deletion docs/_docset.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
project: 'doc-builder'
max_toc_depth: 2
# indicates this documentation set is not linkable by assembler.
Expand All @@ -19,7 +19,7 @@
dbuild: "docs-builder"

features:
primary-nav: false
primary-nav: true

api:
elasticsearch: elasticsearch-openapi.json
Expand Down
4 changes: 2 additions & 2 deletions src/Elastic.Documentation.Site/Assets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ body {

.sidebar {
.sidebar-nav {
@apply sticky top-(--offset-top) z-30 overflow-y-auto;
max-height: calc(100vh - var(--offset-top));
@apply sticky top-0 z-30 overflow-y-auto;
max-height: 100vh;
scrollbar-gutter: stable;
scroll-behavior: smooth;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const NavigationSearch = () => {
return (
<div
css={css`
padding-top: ${euiTheme.size.base};
padding-top: ${euiTheme.size.l};
padding-right: ${euiTheme.size.base};
`}
>
Expand Down
4 changes: 2 additions & 2 deletions src/Elastic.Documentation.Site/Layout/_Header.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<div id="elastic-nav" hx-disable="true"></div>
@{
var elasticNavUrl = Model.Features.StagingElasticNavEnabled
? "https://stag-www.elastic.co/elastic-nav.js"
: "https://www.elastic.co/elastic-nav.js";
? "https://dev-naas-remove-sticky.app.elstc.co/elastic-nav.js"
: "https://dev-naas-remove-sticky.app.elstc.co/elastic-nav.js";
}
<script src="@elasticNavUrl" async></script>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/Elastic.Documentation.Site/Layout/_PagesNav.cshtml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@inherits RazorSlice<Elastic.Documentation.Site.GlobalLayoutViewModel>
<aside class="sidebar font-sans bg-white fixed md:sticky shadow-2xl md:shadow-none left-[100%] group-has-[#pages-nav-hamburger:checked]/body:left-0 bottom-0 md:left-auto pl-6 md:pl-2 top-[calc(var(--offset-top)+1px)] w-[80%] md:w-auto shrink-0 border-r-1 border-r-grey-20 z-40 md:z-auto">
<aside class="sidebar font-sans bg-white fixed md:sticky shadow-2xl md:shadow-none left-[100%] group-has-[#pages-nav-hamburger:checked]/body:left-0 bottom-0 md:left-auto pl-6 md:pl-2 top-0 w-[80%] md:w-auto shrink-0 border-r-1 border-r-grey-20 z-40 md:z-auto">

@if (Model.Features.LazyLoadNavigation && !string.IsNullOrEmpty(Model.NavigationFileName))
{
Expand Down
Loading