Skip to content

Commit 17a9e9f

Browse files
committed
rename .main.html to .page.html
1 parent 0e34817 commit 17a9e9f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/Elastic.Markdown/IO/MarkdownFile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public string UrlFetch
9595
{
9696
if (_urlFetch is not null)
9797
return _urlFetch;
98-
_urlFetch = Url.TrimEnd('/') + "/index.main.html";
98+
_urlFetch = Url.TrimEnd('/') + "/index.page.html";
9999
return _urlFetch;
100100
}
101101
}

src/Elastic.Markdown/Slices/HtmlWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public async Task WriteAsync(IFileInfo outputFile, MarkdownFile markdown, Cancel
111111
? Path.GetFileNameWithoutExtension(outputFile.Name) + ".html"
112112
: Path.Combine(dir, "index.html");
113113
}
114-
var mainPath = Path.ChangeExtension(path, ".main.html");
114+
var mainPath = Path.ChangeExtension(path, ".page.html");
115115

116116
var pageHtml = await RenderPageHtml(markdown, ctx);
117117

src/Elastic.Markdown/Slices/Layout/_Breadcrumbs.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<a
66
itemprop="item"
77
href="@Model.UrlPathPrefix/"
8-
hx-get="@Model.UrlPathPrefix/"
8+
hx-get="@Model.UrlPathPrefix/index.page.html"
9+
hx-push-url="@Model.UrlPathPrefix/"
910
hx-select-oob="@Htmx.GetHxSelectOob()"
1011
hx-swap="none"
11-
hx-push-url="true"
1212
hx-indicator="#htmx-indicator"
1313
preload="mouseover"
1414
>

src/docs-builder/Http/DocumentationWebHost.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ private static async Task<IResult> ServeDocumentationFile(ReloadableGeneratorSta
9898

9999

100100
var renderPage = false;
101-
if (slug.EndsWith(".main.html"))
101+
if (slug.EndsWith(".page.html"))
102102
{
103103
renderPage = true;
104-
slug = slug.Replace(".main.html", ".html");
104+
slug = slug.Replace(".page.html", ".html");
105105
}
106106

107107
var markdownPath = Path.GetExtension(slug) == string.Empty ? Path.Combine(slug, "index.md") : slug.Replace(".html", ".md");

0 commit comments

Comments
 (0)