From caf7661e66fee9dd62a7a6924d0c201bee34c2f7 Mon Sep 17 00:00:00 2001 From: Dave Glick Date: Tue, 1 Sep 2020 15:12:21 -0400 Subject: [PATCH] Moves all the pages up a level and hardcodes the section name --- docs/input/_layout.cshtml | 4 ++-- docs/input/{docs => }/colors.md | 0 docs/input/{docs => }/console.md | 0 docs/input/{docs => }/grids.md | 0 docs/input/index.cshtml | 15 --------------- docs/input/{docs => }/index.md | 0 docs/input/{docs => }/markup.md | 0 docs/input/{docs => }/panels.md | 0 docs/input/{docs => }/quick-start.md | 0 docs/input/{docs => }/tables.md | 0 10 files changed, 2 insertions(+), 17 deletions(-) rename docs/input/{docs => }/colors.md (100%) rename docs/input/{docs => }/console.md (100%) rename docs/input/{docs => }/grids.md (100%) delete mode 100644 docs/input/index.cshtml rename docs/input/{docs => }/index.md (100%) rename docs/input/{docs => }/markup.md (100%) rename docs/input/{docs => }/panels.md (100%) rename docs/input/{docs => }/quick-start.md (100%) rename docs/input/{docs => }/tables.md (100%) diff --git a/docs/input/_layout.cshtml b/docs/input/_layout.cshtml index 249b1b2..d81ff5f 100644 --- a/docs/input/_layout.cshtml +++ b/docs/input/_layout.cshtml @@ -53,7 +53,7 @@ @RenderSection(Constants.Sections.Splash, false) } @{ - string section = Document.Destination.Segments.Length > 1 ? Document.Destination.Segments[0].ToString() : null; + string section = "docs"; }
@@ -126,7 +126,7 @@ } else { - IDocument root = OutputPages[section + "/index.html"].First(); + IDocument root = OutputPages["index.html"].First(); diff --git a/docs/input/docs/colors.md b/docs/input/colors.md similarity index 100% rename from docs/input/docs/colors.md rename to docs/input/colors.md diff --git a/docs/input/docs/console.md b/docs/input/console.md similarity index 100% rename from docs/input/docs/console.md rename to docs/input/console.md diff --git a/docs/input/docs/grids.md b/docs/input/grids.md similarity index 100% rename from docs/input/docs/grids.md rename to docs/input/grids.md diff --git a/docs/input/index.cshtml b/docs/input/index.cshtml deleted file mode 100644 index 8793933..0000000 --- a/docs/input/index.cshtml +++ /dev/null @@ -1,15 +0,0 @@ -Title: Start -NoContainer: true ---- -@section Splash { -
-
-
Spectre.Console
-

- A .NET Standard library that makes it easier to create beautiful console applications. -

- Take me to the documentation -

-
-
-} \ No newline at end of file diff --git a/docs/input/docs/index.md b/docs/input/index.md similarity index 100% rename from docs/input/docs/index.md rename to docs/input/index.md diff --git a/docs/input/docs/markup.md b/docs/input/markup.md similarity index 100% rename from docs/input/docs/markup.md rename to docs/input/markup.md diff --git a/docs/input/docs/panels.md b/docs/input/panels.md similarity index 100% rename from docs/input/docs/panels.md rename to docs/input/panels.md diff --git a/docs/input/docs/quick-start.md b/docs/input/quick-start.md similarity index 100% rename from docs/input/docs/quick-start.md rename to docs/input/quick-start.md diff --git a/docs/input/docs/tables.md b/docs/input/tables.md similarity index 100% rename from docs/input/docs/tables.md rename to docs/input/tables.md