New doc theme (#387)

This commit is contained in:
Phil Scott
2021-04-24 16:20:59 -04:00
committed by GitHub
parent b568098d5e
commit 2a9fbb1ee9
145 changed files with 197984 additions and 8746 deletions

View File

@ -2,7 +2,7 @@ Title: Live Displays
Order: 4
---
<h1>Sections</h1>
Live displays continue to redraw their contents until an action is complete.
<ul>
@foreach (IDocument child in OutputPages.GetChildrenOf(Document))

View File

@ -5,21 +5,21 @@ RedirectFrom: progress
Spectre.Console can display information about long running tasks in the console.
<img src="../assets/images/progress.png" style="max-width: 100%;margin-bottom:20px;">
![Example of progress output](../assets/images/progress.png)
<div class="alert alert-warning" role="alert">
<i class="fas fa-exclamation-triangle icon-web"></i> The progress display is not
<?# Alert ?>
The progress display is not
thread safe, and using it together with other interactive components such as
prompts, status displays or other progress displays are not supported.
</div>
<?#/ Alert ?>
If the current terminal isn't considered "interactive", such as when running
in a continuous integration system, or the terminal can't display
ANSI control sequence, any progress will be displayed in a simpler way.
<img src="../assets/images/progress_fallback.png" style="max-width: 100%;">
![Example of fallback progress output](../assets/images/progress_fallback.png)
# Usage
## Usage
```csharp
// Synchronous
@ -63,7 +63,7 @@ await AnsiConsole.Progress()
});
```
# Configure
## Configure
```csharp
// Asynchronous
@ -83,4 +83,4 @@ AnsiConsole.Progress()
{
// Omitted
});
```
```

View File

@ -5,19 +5,19 @@ RedirectFrom: status
Spectre.Console can display information about long running tasks in the console.
<img src="../assets/images/status.gif" style="max-width: 100%;margin-bottom:20px;">
![Example of status output](../assets/images/status.gif)
<div class="alert alert-warning" role="alert">
<i class="fas fa-exclamation-triangle icon-web"></i> The status display is not
<?# Alert ?>
The status display is not
thread safe, and using it together with other interactive components such as
prompts, progress displays or other status displays are not supported.
</div>
<?#/ Alert ?>
If the current terminal isn't considered "interactive", such as when running
in a continuous integration system, or the terminal can't display
ANSI control sequence, any progress will be displayed in a simpler way.
# Usage
## Usage
```csharp
// Synchronous
@ -52,7 +52,7 @@ await AnsiConsole.Status()
});
```
# Configure
## Configure
```csharp
AnsiConsole.Status()
@ -64,4 +64,4 @@ AnsiConsole.Status()
// Omitted
ctx.Refresh();
});
```
```