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
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,25 @@
<input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
</div>
</form>
<ul class="nav level1 navbar-nav">

<li><a href="{{_rel}}{{_api}}" title="{{_navApiTitle}}">{{_navApiText}}</a></li>
<li><a href="{{_rel}}{{_navCliHref}}" title="{{_navCliTitle}}">{{_navCliText}}</a></li>
<li><a href="{{_navWebsiteHref}}" title="{{_navWebsiteTitle}}">{{_navWebsiteText}}</a></li>

<li class="nav-asf">
<a role="button" tabindex="0">ASF<span class="lucene-caret"></span></a>
<ul class="nav level2 asf-menu">
<li><a href="{{_asfFoundationHref}}">{{_asfFoundationText}}</a></li>
<li><a href="{{_asfEventsHref}}">{{_asfEventsText}}</a></li>
<li><a href="{{_asfLicenseHref}}">{{_asfLicenseText}}</a></li>
<li><a href="{{_asfThanksHref}}">{{_asfThanksText}}</a></li>
<li><a href="{{_asfSecurityHref}}">{{_asfSecurityText}}</a></li>
<li><a href="{{_asfSponsorshipHref}}">{{_asfSponsorshipText}}</a></li>
<li><a href="{{_asfPrivacyHref}}">{{_asfPrivacyText}}</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
50 changes: 33 additions & 17 deletions websites/apidocs/Templates/LuceneTemplateAssets/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -522,23 +522,6 @@ header.is-sticky nav.navbar {
display: inline-block;
}

/* 5.1 Breadcrumb padding adjustments */
.subnav.navbar #breadcrumb {
padding-left: 28px;
}

@media (min-width:1200px) {
.subnav.navbar #breadcrumb {
padding-left: 34px;
}
}

@media (min-width:1600px) {
.subnav.navbar #breadcrumb {
padding-left: 40px;
}
}

/* 6. First-content padding / margin-collapse prevention
---------------------------------------------------- */
.container.body-content,
Expand Down Expand Up @@ -802,3 +785,36 @@ button:focus-visible {
margin-top: 50px !important;
}
}

/* 9.4.1 Keep the inner (level1) trail inline and tidy */
.subnav.navbar #breadcrumb .breadcrumb {
display: inline-flex;
align-items: baseline;
flex-wrap: wrap;
gap: .35rem;
margin: 0;
padding: 0;
}

/* 9.4.2 Add the slash after “API/CLI” only when a trail exists */
.subnav.navbar ul.level0.breadcrumb > li > a::after {
content: "";
}
/* reset */
.subnav.navbar ul.level0.breadcrumb > li:has(#breadcrumb .breadcrumb) > a::after {
content: " /";
margin: 0 .35rem;
color: #bbb;
}

/* 9.4.3 restore the default side padding for the breadcrumb container */
.subnav.navbar .container {
padding: 8px 28px !important; /* 8 top/bottom, 15 left/right */
}

/* 9.4.4 mobile: add a little extra left indent (28px total feel) */
@media (max-width: 767px) {
.subnav.navbar .container {
padding-left: 28px !important; /* right stays 15px */
}
}
34 changes: 32 additions & 2 deletions websites/apidocs/docfx.global.subsite.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,34 @@
{
"_api": "https://lucenenet.apache.org/docs/4.8.0-ci/"
}
"_api": "https://lucenenet.apache.org/docs/4.8.0-ci/",
"_navApiTitle": "Lucene.Net API",
"_navApiText": "Lucene.Net API",

"_navCliHref": "https://lucenenet.apache.org/docs/4.8.0-ci/cli/index.html",
"_navCliTitle": "Lucene.Net CLI",
"_navCliText": "Lucene.Net CLI",

"_navWebsiteHref": "https://lucenenet.apache.org/",
"_navWebsiteTitle": "Lucene.Net Website",
"_navWebsiteText": "Lucene.Net Website",

"_asfFoundationHref": "https://www.apache.org/",
"_asfFoundationText": "Foundation",

"_asfEventsHref": "https://events.apache.org/",
"_asfEventsText": "Events",

"_asfLicenseHref": "https://www.apache.org/licenses/",
"_asfLicenseText": "License",

"_asfThanksHref": "https://www.apache.org/foundation/thanks.html",
"_asfThanksText": "Thanks",

"_asfSecurityHref": "https://www.apache.org/security/",
"_asfSecurityText": "Security",

"_asfSponsorshipHref": "https://www.apache.org/foundation/sponsorship.html",
"_asfSponsorshipText": "Sponsorship",

"_asfPrivacyHref": "https://privacy.apache.org/policies/privacy-policy-public.html",
"_asfPrivacyText": "Privacy Policy"
}
3 changes: 2 additions & 1 deletion websites/apidocs/docfx.site.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
],
"dest": "_site",
"globalMetadataFiles": [
"docfx.global.json"
"docfx.global.json",
"docfx.global.subsite.json"
],
"template": [
"default",
Expand Down
4 changes: 3 additions & 1 deletion websites/apidocs/docs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ try {
Set-Location $PreviousLocation
}


# delete anything that already exists
if ($Clean) {
Write-Host "Cleaning..."
Expand Down Expand Up @@ -184,6 +183,9 @@ if ($? -and $DisableBuild -eq $false) {
# Note we don't update _rel because that is used for styles and js
(Get-Content -Path $BreadcrumbPath -Raw) -Replace '(?<="_api":\s*?"https?\:\/\/lucenenet\.apache\.org\/docs\/)\d+?\.\d+?\.\d+?(?:\.\d+?)?(?:-\w+)?', $LuceneNetVersion | Set-Content -Path $BreadcrumbPath

# Update the CLI link to the latest LuceneNetVersion
(Get-Content -Path $BreadcrumbPath -Raw) -Replace '(?<="_navCliHref":\s*?"https?\:\/\/lucenenet\.apache\.org\/docs\/)\d+?\.\d+?\.\d+?(?:\.\d+?)?(?:-\w+)?', $LuceneNetVersion | Set-Content -Path $BreadcrumbPath

foreach ($proj in $DocFxJsonMeta) {
$projFile = Join-Path -Path $ApiDocsFolder $proj

Expand Down
2 changes: 1 addition & 1 deletion websites/apidocs/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ items:
- name: Foundation
href: https://www.apache.org/
- name: Events
href: https://www.apache.org/events/
href: https://events.apache.org/
- name: License
href: https://www.apache.org/licenses/
- name: Thanks
Expand Down
43 changes: 42 additions & 1 deletion websites/site/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,48 @@
"_gitContribute": {
"repo": "https://github.com/apache/lucenenet",
"branch": "master"
}
},

"_navAboutHref": "/#about",
"_navAboutTitle": "About",
"_navAboutText": "About",

"_navQuickStartHref": "/quick-start/index.html",
"_navQuickStartTitle": "Quick Start",
"_navQuickStartText": "Quick Start",

"_navDownloadHref": "/download/download.html",
"_navDownloadTitle": "Download",
"_navDownloadText": "Download",

"_navDocsHref": "/docs.html",
"_navDocsTitle": "Documentation",
"_navDocsText": "Documentation",

"_navContributingHref": "/contributing/index.html",
"_navContributingTitle": "Contributing",
"_navContributingText": "Contributing",

"_asfFoundationHref": "https://www.apache.org/",
"_asfFoundationText": "Foundation",

"_asfEventsHref": "https://events.apache.org/",
"_asfEventsText": "Events",

"_asfLicenseHref": "https://www.apache.org/licenses/",
"_asfLicenseText": "License",

"_asfThanksHref": "https://www.apache.org/foundation/thanks.html",
"_asfThanksText": "Thanks",

"_asfSecurityHref": "https://www.apache.org/security/",
"_asfSecurityText": "Security",

"_asfSponsorshipHref": "https://www.apache.org/foundation/sponsorship.html",
"_asfSponsorshipText": "Sponsorship",

"_asfPrivacyHref": "https://privacy.apache.org/policies/privacy-policy-public.html",
"_asfPrivacyText": "Privacy Policy"
},
"dest": "_site",
"globalMetadataFiles": [],
Expand Down
22 changes: 22 additions & 0 deletions websites/site/lucenetemplate/partials/navbar.tmpl.partial
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,28 @@
<input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
</div>
</form>

<ul class="nav level1 navbar-nav">
<li><a href="{{_navAboutHref}}" title="{{_navAboutTitle}}">{{_navAboutText}}</a></li>
<li><a href="{{_navQuickStartHref}}" title="{{_navQuickStartTitle}}">{{_navQuickStartText}}</a></li>
<li><a href="{{_navDownloadHref}}" title="{{_navDownloadTitle}}">{{_navDownloadText}}</a></li>
<li><a href="{{_navDocsHref}}" title="{{_navDocsTitle}}">{{_navDocsText}}</a></li>
<li><a href="{{_navContributingHref}}" title="{{_navContributingTitle}}">{{_navContributingText}}</a></li>

<!-- ASF dropdown -->
<li class="nav-asf">
<a role="button" tabindex="0">ASF<span class="lucene-caret"></span></a>
<ul class="nav level2 asf-menu">
<li><a href="{{_asfFoundationHref}}">{{_asfFoundationText}}</a></li>
<li><a href="{{_asfEventsHref}}">{{_asfEventsText}}</a></li>
<li><a href="{{_asfLicenseHref}}">{{_asfLicenseText}}</a></li>
<li><a href="{{_asfThanksHref}}">{{_asfThanksText}}</a></li>
<li><a href="{{_asfSecurityHref}}">{{_asfSecurityText}}</a></li>
<li><a href="{{_asfSponsorshipHref}}">{{_asfSponsorshipText}}</a></li>
<li><a href="{{_asfPrivacyHref}}">{{_asfPrivacyText}}</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
Loading