From 3c1b92772edbfb48718ecf63fc71b4962dc57a53 Mon Sep 17 00:00:00 2001 From: Salih Date: Mon, 12 Feb 2024 14:11:42 +0300 Subject: [PATCH] Add design --- ...ng-Started-Create-Solution-Single-Layer.md | 20 ++++++++--- .../HtmlConverting/DocumentNavigationsDto.cs | 6 ++++ .../Pages/Documents/Project/Index.cshtml | 24 +++++++++++++ .../Pages/Documents/Project/Index.css.map | 1 + .../Pages/Documents/Project/Index.min.css.map | 1 + .../Pages/Documents/Project/index.css | 34 ++++++++++++++++--- .../Pages/Documents/Project/index.min.css | 2 +- .../Pages/Documents/Project/index.scss | 29 +++++++++++++++- 8 files changed, 106 insertions(+), 11 deletions(-) create mode 100644 modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.css.map create mode 100644 modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.min.css.map diff --git a/docs/en/Getting-Started-Create-Solution-Single-Layer.md b/docs/en/Getting-Started-Create-Solution-Single-Layer.md index 8c4a6d0d88..32021dfa0e 100644 --- a/docs/en/Getting-Started-Create-Solution-Single-Layer.md +++ b/docs/en/Getting-Started-Create-Solution-Single-Layer.md @@ -8,6 +8,20 @@ } ```` +````json +//[doc-nav] +{ + "Next": { + "Name": "Running the solution", + "Path": "Getting-Started-Running-Solution-Single-Layer" + }, + "Previous": { + "Name": "Introduction", + "Path": "Introduction" + } +} +```` + > This document assumes that you prefer to use **{{ UI_Value }}** as the UI framework and **{{ DB_Value }}** as the database provider. For other options, please change the preference on top of this document. ## Create a New Project @@ -45,8 +59,4 @@ Configure(options => > Or you can delete that code since `Auto` is already the default behavior. -{{ end }} - -## Next Step - -* [Running the solution](Getting-Started-Running-Solution-Single-Layer.md) \ No newline at end of file +{{ end }} \ No newline at end of file diff --git a/modules/docs/src/Volo.Docs.Web/HtmlConverting/DocumentNavigationsDto.cs b/modules/docs/src/Volo.Docs.Web/HtmlConverting/DocumentNavigationsDto.cs index ccee9b5d18..d1f6335466 100644 --- a/modules/docs/src/Volo.Docs.Web/HtmlConverting/DocumentNavigationsDto.cs +++ b/modules/docs/src/Volo.Docs.Web/HtmlConverting/DocumentNavigationsDto.cs @@ -1,7 +1,13 @@ +using System; + namespace Volo.Docs.HtmlConverting; public class DocumentNavigationsDto { public DocumentNavigationDto Previous { get; set; } public DocumentNavigationDto Next { get; set; } + + public bool HasPrevious => Previous?.Path.IsNullOrEmpty() == false; + public bool HasNext => Next?.Path.IsNullOrEmpty() == false; + public bool HasValues => HasPrevious || HasNext; } \ No newline at end of file diff --git a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml index 83f4c7a775..c2cb7f36b0 100644 --- a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml +++ b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml @@ -388,6 +388,30 @@ } @Html.Raw(Model.Document.Content) + + @if (Model.DocumentNavigationsDto.HasValues) + { +
+ + }