From 358b0225b40b87ab07436367733a17fbbfa8293a Mon Sep 17 00:00:00 2001 From: Patrik Svensson Date: Thu, 27 Aug 2020 20:12:13 +0200 Subject: [PATCH] Add documentation header (skip-ci) --- docs/README.md | 8 ++++++++ docs/input/_layout.cshtml | 23 ++++++++++++++++++++++- docs/input/assets/css/styles.scss | 11 +++++++++++ 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 docs/README.md diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 00000000..79349169 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,8 @@ +# Documentation + +Preview the documentation locally by running the following +from your favourite shell: + +``` +> dotnet run -- preview --virtual-dir "spectre.console" +``` \ No newline at end of file diff --git a/docs/input/_layout.cshtml b/docs/input/_layout.cshtml index 70065731..111c542c 100644 --- a/docs/input/_layout.cshtml +++ b/docs/input/_layout.cshtml @@ -26,7 +26,28 @@
- + + + @if (IsSectionDefined(Constants.Sections.Splash)) { @RenderSection(Constants.Sections.Splash, false) diff --git a/docs/input/assets/css/styles.scss b/docs/input/assets/css/styles.scss index 6fd5d0fc..e7fde178 100644 --- a/docs/input/assets/css/styles.scss +++ b/docs/input/assets/css/styles.scss @@ -20,6 +20,17 @@ $thebackground: $gray-200; height: 15px; } +#topnav { + padding: 0px; + margin: 0px; +} + +#topnav .container { + padding-top: 0px !important; + padding-bottom: 0px !important; + margin-bottom: 0px; +} + @media screen { @include media-breakpoint-up(md) { body {