-
-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Simplify check code snippets * Simplify test.ps1 * More updates * Update version * MOre tweak
- Loading branch information
1 parent
1459e07
commit b51af7a
Showing
9 changed files
with
102 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<# | ||
.SYNOPSIS | ||
Validate F# code snippets in concept exercise documentation. | ||
.DESCRIPTION | ||
Run a CLI utility that will: | ||
- recursively search a list of directories for Markdown documentation | ||
- extract any F# code snippets | ||
- evaluate them to verify correct syntax (no type checking is performed) | ||
.EXAMPLE | ||
PS C:\> bin/check-code-snippets.ps1 | ||
Verifies all *.md files under the `concepts` and `exercises` directories | ||
#> | ||
|
||
$ErrorActionPreference = "Stop" | ||
$PSNativeCommandUseErrorActionPreference = $true | ||
|
||
Write-Output "Searching documentation for code snippets" | ||
& dotnet run -c Release --project tools/CodeFenceChecker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<# | ||
.SYNOPSIS | ||
Update exercise tools. | ||
.DESCRIPTION | ||
Update the exercise tools for each exercise. | ||
.EXAMPLE | ||
PS C:\> bin/update-exercise-tools.ps1 | ||
#> | ||
|
||
$ErrorActionPreference = "Stop" | ||
$PSNativeCommandUseErrorActionPreference = $true | ||
|
||
Get-ChildItem -Path exercises -Filter dotnet-tools.json -Force -Recurse | ForEach-Object { | ||
dotnet tool update fantomas-tool --tool-manifest $_.FullName | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<# | ||
.SYNOPSIS | ||
Update the exercises. | ||
.DESCRIPTION | ||
Update the exercises' docs, metadata, and tests. | ||
.PARAMETER Exercise | ||
The slug of the exercise to update (optional). | ||
.EXAMPLE | ||
The example below will update all exercises | ||
PS C:\> bin/update-exercises.ps1 | ||
.EXAMPLE | ||
The example below will update the "acronym" exercise | ||
PS C:\> bin/update-exercises.ps1 acronym | ||
#> | ||
|
||
[CmdletBinding(SupportsShouldProcess)] | ||
param ( | ||
[Parameter(Position = 0, Mandatory = $false)][string]$Exercise | ||
) | ||
|
||
$ErrorActionPreference = "Stop" | ||
$PSNativeCommandUseErrorActionPreference = $true | ||
|
||
& bin/fetch-configlet | ||
|
||
if ($Exercise) { | ||
& configlet sync --docs --metadata --filepaths --update --yes --exercise $Exercise | ||
& dotnet run --project generators --exercise $Exercise | ||
} else { | ||
& configlet sync --docs --metadata --filepaths --update --yes | ||
& dotnet run --project generators | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.