Skip to content

Commit de1638b

Browse files
committed
format html after the docs are generated before pushing
1 parent e4f5055 commit de1638b

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

build/Directory.Packages.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<PackageVersion Include="Cake.DotNetLocalTools.Module" Version="3.0.12" />
1414
<PackageVersion Include="Cake.Docker" Version="1.3.0" />
1515
<PackageVersion Include="Cake.Json" Version="7.0.1" />
16+
<PackageVersion Include="Cake.Npx" Version="1.7.0" />
1617
<PackageVersion Include="Cake.Wyam" Version="2.2.14" />
1718
<PackageVersion Include="xunit.assert" Version="2.9.0" />
1819
</ItemGroup>

build/docs/Tasks/PublishDocs.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using Cake.Git;
2+
using Cake.Npx;
23
using Cake.Wyam;
34
using Common.Utilities;
45

@@ -80,6 +81,7 @@ private static void PublishDocumentation(BuildContext context)
8081
context.WyamSettings.OutputPath = publishFolder;
8182
context.WyamSettings.NoClean = true;
8283
context.Wyam(context.WyamSettings);
84+
context.Npx("prettier", arguments: "--write **/*.html", configureSettings: settings => settings.WorkingDirectory = publishFolder);
8385
}
8486

8587
var schemaTargetDir = publishFolder.Combine("schemas");

build/docs/docs.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
</ItemGroup>
99
<ItemGroup>
1010
<PackageReference Include="Cake.Frosting.Git" />
11+
<PackageReference Include="Cake.Npx" />
1112
<PackageReference Include="Cake.Wyam" />
1213
</ItemGroup>
1314
</Project>

docs/input/docs/learn/branching-strategies/githubflow/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ GitHubFlow is in a nutshell:
1515
2. Create a feature branch `git checkout -b myFeatureBranch`
1616
3. Do the feature/work
1717
4. Push feature branch to [origin](/docs/learn/git-setup#origin)
18-
5. Create pull request from origin/<featureBranch> -> upstream/main
18+
5. Create pull request from origin/{featureBranch} -> upstream/main
1919
6. Review, fix raised comments, merge your PR or even better, get someone else to.
2020

2121
The main rule of GitHub Flow is that main should _always_ be deployable.

0 commit comments

Comments
 (0)