mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-11-01 01:25:27 +08:00 
			
		
		
		
	Docs redesign (#728)
* Adding a dark mode * Adding reference for types to summary pages * Adding API Reference * Adding modifiers to methods/fields/etc * Minimizing files input * Caching a lot of the output pages * Cache only for each execution * Adding API references to existing docs
This commit is contained in:
		| @@ -1,14 +1,17 @@ | ||||
| using System; | ||||
| using System.Security.Authentication; | ||||
| using Generator.Commands.Samples; | ||||
| using Spectre.Console; | ||||
|  | ||||
| namespace Generator.Commands.Samples | ||||
| // keep the namespace here short because it'll be used in the display of the exceptions | ||||
| // and we want to keep that below 100 characters wide. | ||||
| namespace Samples | ||||
| { | ||||
|     public class Exceptions | ||||
|     { | ||||
|         internal abstract class BaseExceptionSample : BaseSample | ||||
|         { | ||||
|             public override (int Cols, int Rows) ConsoleSize => (120, 12); | ||||
|             public override (int Cols, int Rows) ConsoleSize => (100, 12); | ||||
|  | ||||
|             protected readonly Exception Exception = null!; | ||||
|  | ||||
|   | ||||
| @@ -4,7 +4,7 @@ namespace Generator.Commands.Samples | ||||
| { | ||||
|     public class FigletSample : BaseSample | ||||
|     { | ||||
|         public override (int Cols, int Rows) ConsoleSize => (120, 24); | ||||
|         public override (int Cols, int Rows) ConsoleSize => (100, 24); | ||||
|  | ||||
|         public override void Run(IAnsiConsole console) | ||||
|         { | ||||
|   | ||||
| @@ -6,7 +6,7 @@ namespace Generator.Commands.Samples | ||||
| { | ||||
|     internal class LiveSample : BaseSample | ||||
|     { | ||||
|         public override (int Cols, int Rows) ConsoleSize => (120, 20); | ||||
|         public override (int Cols, int Rows) ConsoleSize => (100, 20); | ||||
|  | ||||
|         public override void Run(IAnsiConsole console) | ||||
|         { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Phil Scott
					Phil Scott