diff --git a/docs/_docset.yml b/docs/_docset.yml index 5f0cdbef8..46fee7df3 100644 --- a/docs/_docset.yml +++ b/docs/_docset.yml @@ -107,6 +107,8 @@ toc: - folder: nested - file: cross-links.md - file: custom-highlighters.md + - hidden: archive.md + - hidden: landing-page.md - folder: mover children: - file: first-page.md diff --git a/docs/testing/archive.md b/docs/testing/archive.md new file mode 100644 index 000000000..de432b95a --- /dev/null +++ b/docs/testing/archive.md @@ -0,0 +1,6 @@ +--- +layout: archive +description: Browse the archived documentation for older Elastic product releases. Archived documentation is unmaintained and may be out-of-date. +--- + +# Archive diff --git a/docs/testing/landing-page.md b/docs/testing/landing-page.md new file mode 100644 index 000000000..de3202894 --- /dev/null +++ b/docs/testing/landing-page.md @@ -0,0 +1,5 @@ +--- +layout: "landing-page" +--- + +# Landing Page diff --git a/src/Elastic.Markdown/Assets/styles.css b/src/Elastic.Markdown/Assets/styles.css index 3f8e97cdb..12b7a0c48 100644 --- a/src/Elastic.Markdown/Assets/styles.css +++ b/src/Elastic.Markdown/Assets/styles.css @@ -187,11 +187,6 @@ min-height: var(--offset-top); } -html, -body { - height: 100%; -} - body { display: grid; grid-template-rows: auto auto 1fr auto; diff --git a/src/Elastic.Markdown/Assets/theme.css b/src/Elastic.Markdown/Assets/theme.css index 969f072c1..f41837d23 100644 --- a/src/Elastic.Markdown/Assets/theme.css +++ b/src/Elastic.Markdown/Assets/theme.css @@ -1,5 +1,5 @@ @theme { - --breakpoint-sm: 40rem; + --breakpoint-sm: 640px; --breakpoint-md: 768px; --breakpoint-lg: 1280px; --breakpoint-xl: 1920px; diff --git a/src/Elastic.Markdown/Myst/FrontMatter/FrontMatterParser.cs b/src/Elastic.Markdown/Myst/FrontMatter/FrontMatterParser.cs index 65457a013..669f35a5b 100644 --- a/src/Elastic.Markdown/Myst/FrontMatter/FrontMatterParser.cs +++ b/src/Elastic.Markdown/Myst/FrontMatter/FrontMatterParser.cs @@ -10,7 +10,8 @@ namespace Elastic.Markdown.Myst.FrontMatter; public enum LayoutName { [EnumMember(Value = "landing-page")] LandingPage, - [EnumMember(Value = "not-found")] NotFound + [EnumMember(Value = "not-found")] NotFound, + [EnumMember(Value = "archive")] Archive } [YamlSerializable] diff --git a/src/Elastic.Markdown/Slices/Layout/_Archive.cshtml b/src/Elastic.Markdown/Slices/Layout/_Archive.cshtml new file mode 100644 index 000000000..2978d25b2 --- /dev/null +++ b/src/Elastic.Markdown/Slices/Layout/_Archive.cshtml @@ -0,0 +1,331 @@ +@inherits RazorSlice + +
+
+

Documentation archive

+

+ Browse the archived documentation for older Elastic product releases.
Archived documentation is + unmaintained and may be out-of-date. +

+
+
+
+ +
+
+
+
+ +
+

Observability

+ +
+
+

Security

+ +
+ + + + + + +
+ +
+ +
diff --git a/src/Elastic.Markdown/Slices/Layout/_LandingPage.cshtml b/src/Elastic.Markdown/Slices/Layout/_LandingPage.cshtml index 42436a719..ad3b5cc34 100644 --- a/src/Elastic.Markdown/Slices/Layout/_LandingPage.cshtml +++ b/src/Elastic.Markdown/Slices/Layout/_LandingPage.cshtml @@ -178,23 +178,23 @@

Browse the client libraries for Elasticsearch.

- + Explore all @@ -208,23 +208,23 @@

Browse the query language documentation.

- + Explore all @@ -238,23 +238,23 @@

Browse the agents for Elastic APM.

-
+

Releases

Explore the latest features and changes in Elastic.

@@ -322,10 +322,10 @@

Contribute and extend

Learn how to contribute to Elastic products and extend Elastic capabilities.

+
+

Archive

+

Browse the archived documentation for older Elastic product releases.

+ +
diff --git a/src/Elastic.Markdown/Slices/_Layout.cshtml b/src/Elastic.Markdown/Slices/_Layout.cshtml index f1f2d9e73..0222f2fa7 100644 --- a/src/Elastic.Markdown/Slices/_Layout.cshtml +++ b/src/Elastic.Markdown/Slices/_Layout.cshtml @@ -47,6 +47,9 @@ case LayoutName.LandingPage: await RenderPartialAsync(_LandingPage.Create(Model)); break; + case LayoutName.Archive: + await RenderPartialAsync(_Archive.Create(Model)); + break; default: await DefaultLayout(); break; diff --git a/src/Elastic.Markdown/_static/delorean-bg.png b/src/Elastic.Markdown/_static/delorean-bg.png new file mode 100644 index 000000000..2a3567aff Binary files /dev/null and b/src/Elastic.Markdown/_static/delorean-bg.png differ diff --git a/src/Elastic.Markdown/_static/delorean.png b/src/Elastic.Markdown/_static/delorean.png new file mode 100644 index 000000000..17a6f9f17 Binary files /dev/null and b/src/Elastic.Markdown/_static/delorean.png differ