Commit Graph

830 Commits

Author SHA1 Message Date
da1c471c18 Give GH Actions jobs a more suitable name 2022-04-15 10:44:14 +02:00
b6b963c03c Update GPR dependency 2022-04-15 10:43:52 +02:00
7e1fb43f21 Install .NET SDK 6.0.101 2022-04-15 10:28:49 +02:00
47fde1875b chore: Update dependency MinVer to v2.5.0 (#803)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-07 23:47:08 +02:00
eb85f5860e chore: Update dependency cake.tool to v2.1.0 (#809)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-07 23:46:15 +02:00
25a61bea91 Renovate: Ignore all updates to resources/scripts
those are used only during development, hence there
is no need to auto-update them.
2022-04-07 10:27:02 +02:00
bad6672d76 chore: Update dependency Microsoft.SourceLink.GitHub to v1.1.1 (#801)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-05 08:46:35 +02:00
f614032c82 Fix documentation workflow (#799)
Only publish documentation when we publish artifacts.
2022-04-05 08:40:30 +02:00
585f010b26 Upgrade dotnet example tool to 1.6.0 (#782) 2022-04-04 16:20:25 +02:00
90b917c38c Configure Renovate (#785)
* Add renovate.json

* Added a bit more configuration

also moved the config into .github subfolder so not to clutter
the root folder.

* ignore npm updates in docs

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Nils Andresen <nils@nils-andresen.de>
2022-04-03 22:16:48 +02:00
edbe9d6ebc Change section heading (#781)
This appears to have been copy/pasted from progress.md, which has a similar structure.
2022-03-31 14:18:24 +02:00
90de1847d8 Add blog post for 0.44 2022-03-27 22:46:17 +02:00
38d9386e00 Add option to configure the style of the choices list and the default value in TextPrompt (#681)
* Allow setting the style of the default value in TextPrompt

Add property "DefaultValueStyle" to TextPrompt which allows setting the style in which the default value is rendered.
When no style is set, the value is displayed as green text, keeping the existing behavior.

* Allow setting the style in which a TextPrompt's choices are displayed

Add property "ChoicesStyle" to TextPrompt which allows setting the style in the prompt's choices are rendered.
When no style is set, choices are displayed as blue text, keeping the existing behavior.
2022-03-27 19:38:01 +02:00
7998ece6b6 Obsolete the AnsiConsoleFactory class (#585)
`AnsiConsoleFactory` should be an internal static class. Creating an `IAnsiConsole` can be achieved through `Spectre.Console.AnsiConsole.Create(AnsiConsoleSettings)`

Since `AnsiConsoleFactory` is public, it can't be changed from a non static class to a static class so obsoleting it is the second best thing to do.

Eventually, when `AnsiConsoleFactory` becomes internal and static, `AnsiConsole.Create` can be simplified to this (and the private static field `_factory` can be removed)

```
public static IAnsiConsole Create(AnsiConsoleSettings settings)
{
    return AnsiConsoleFactory.Create(settings);
}
```
2022-03-22 22:36:04 +01:00
1d8154f9b0 Introduce MarkupInterpolated and MarkupLineInterpolated extensions (#761)
* Introduce MarkupInterpolated and MarkupLineInterpolated extensions

These new methods enable easily writing markup with a nice and intuitive syntax without having to worry about escaping the markup.

```csharp
string input = args[0];
string output = Process(input);
AnsiConsole.MarkupLineInterpolated($"[blue]{input}[/] -> [green]{output}[/]");

```

The `Interpolated` suffix was inspired by the Entity Framework Core [FromSqlInterpolated][1] method.

[1]: https://docs.microsoft.com/en-us/ef/core/querying/raw-sql#passing-parameters

* Fixing whitespace to match file scoped namespaces

* Adding FromInterpolated helper to Markup widget

Allows automatic handling of interpolated strings to be used on the Markup widget. This would be helpful for people working with Tables and the Tree control who would not be using the MarkupInterpolated methods.

* Documentation for markup interpolated methods.

Co-authored-by: Cédric Luthi <cedric.luthi@gmail.com>
2022-03-22 22:34:25 +01:00
1f2629e2e1 Adding a short template file for new documentation. 2022-03-05 22:51:01 +01:00
a6364e066b Fix path and description for TextPath docs (#758) 2022-03-02 10:24:33 +01:00
fbe1d0b6f2 Add documentation for TextPath widget (#757) 2022-03-01 20:56:58 +01:00
eb4a7d3bf4 Add support for alignment 2022-02-23 09:06:51 -05:00
5e41a2f505 Add support for styling segments 2022-02-23 09:06:51 -05:00
921d595269 Update SixLabors.ImageSharp reference to 2.0.0 2022-02-23 09:29:35 +01:00
899dd20b65 Optimizing build
* Upgrades Statiq.Web to which contains analyzer perf improvements
* Dropping script front matter when not needed from blog archives
* Trimming down the number of files tailwind examines when building the css file to only a subset of the docs.
* Updates Playwright to latest version
* Updates tailwind and asciienma to latest
* Removes npm packages that are no longer required
2022-02-22 08:56:27 +01:00
8ae3d258e4 Add another missing nullables 2022-02-20 23:57:06 -05:00
974aa1afda Fix inheritance and nullables in settings.md 2022-02-20 23:57:06 -05:00
66fc949e2a Initial work on TextPath widget 2022-02-20 23:26:04 -05:00
d6cdd1fbda Adding a best practices guide. 2022-02-20 17:10:03 +01:00
bec3315d91 skip-ci: Fix typo 2022-02-16 01:40:47 +01:00
d465d93a9b Add Netlify badge 2022-02-16 00:44:52 +01:00
782a99d726 Add Netlify attribution to footer 2022-02-16 00:36:01 +01:00
b6be693007 Update copyright 2022-02-16 00:35:10 +01:00
f9a85e017a Only build docs once :) 2022-02-15 18:02:25 +01:00
36e5350968 Tweaking font-size and line-height for smaller screens 2022-02-15 17:28:27 +01:00
3ac63d2670 Configures deployment to netlify 2022-02-14 21:09:38 +01:00
c2da268129 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
2022-02-14 18:44:25 +01:00
74a2e10ff0 Making tuples pretty too 2022-02-04 10:30:09 +01:00
e8eb5b85b9 Updating documentation output to match new Exception rendering. 2022-02-04 10:30:09 +01:00
78958aae27 Adding better type names for return types and parameters
Uses the typenamehelper from Ben.Demystifer to help break down things like generic lists into their actual type display name.
2022-02-04 10:30:09 +01:00
a0e20f299c Improves exception rendering for async methods 2022-02-03 17:10:30 +01:00
ff4215f431 Simplify exception formatting
Now that exceptions are not _parsed_ anymore (#513 and #637), keeping the `ExceptionInfo` and `StackFrameInfo` internal classes doesn't make much sense anymore. The `Exception` and `StackFrame` types can be used by the `ExceptionFormatter` class directly, without conversion.
2022-02-03 10:02:32 -05:00
f221c1f25c add overload taking params array (#682) 2022-01-15 19:51:17 +01:00
0b988ff65c Fix WithExample call on the CommandApp doc page to match reality (#689) 2022-01-13 21:43:31 +01:00
9a6d8d92b4 (#674) changed TypeResolver in Cli/logging
to adhere to the specifications set in #620
2022-01-02 10:26:04 +01:00
52c1d9122b Add global usings (#668)
* Use global usings

* Fix namespace declarations for test projects
2021-12-23 16:50:31 +01:00
eb6a9d8d04 Add .git-blame-ignore-revs 2021-12-22 08:51:17 -05:00
ec1188b837 Use file scoped namespace declarations 2021-12-22 08:51:17 -05:00
1dbaf50935 Add release notes for 0.43.0 2021-12-22 08:50:31 -05:00
523adc6c49 Including dotnet tools restore into ci build 2021-12-21 19:44:16 +01:00
bba5f0c5dc Trying to rework dotnet tools for docs and playwright 2021-12-21 19:44:16 +01:00
19ff48f4b8 Clean up .NET SDK installation 2021-12-15 22:54:27 +01:00
8fcd2e59d6 Install .NET 5 as part of build 2021-12-15 22:47:05 +01:00