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:
Phil Scott
2022-02-14 12:44:25 -05:00
committed by GitHub
parent 74a2e10ff0
commit c2da268129
147 changed files with 4112 additions and 6897 deletions

View File

@ -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!;

View File

@ -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)
{

View File

@ -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)
{