Skip to content

Commit 10117ee

Browse files
Configure duplicate headers markdown rule and address violations (#5782)
1 parent 5f7da29 commit 10117ee

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.markdownlint.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"default": true,
33
"MD013": false, // line length
4-
"MD024": false, // no-duplicate-heading Multiple headings with the same content
4+
"MD024": { // no-duplicate-heading Multiple headings with the same content
5+
"siblings_only": true
6+
},
57
"MD033": false, // no inline HTML
68

79
// The following rules are disabled to allow the linter to be enabled.

documentation/vulnerability-reporting.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ $myImage="<insert-my-image-tag>"
7171
&([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/dotnet/dotnet-docker/main/documentation/scripts/resolve-image-digest.ps1'))) $myImage
7272
```
7373

74+
#### Resolving multi-arch tags
75+
7476
If the script above returns an error indicating it's unable to resolve a multi-arch tag, you'll need to provide extra parameters to the script.
7577
The following scripts indicate how to do that.
7678

@@ -81,7 +83,7 @@ You only need the first three parts of the version number.
8183
In the case of Windows Server 2022, it's `10.0.20348`.
8284
You can use a wildcard to indicate the rest of the version number.
8385

84-
#### macOS/Linux
86+
##### macOS/Linux
8587

8688
Requires [PowerShell to be installed](https://learn.microsoft.com/powershell/scripting/install/installing-powershell-on-linux).
8789

@@ -93,7 +95,7 @@ osVersion="<windows-version>" # Only used for Windows containers (e.g. "10.0.203
9395
curl -sSL https://raw.githubusercontent.com/dotnet/dotnet-docker/main/documentation/scripts/resolve-image-digest.ps1 | pwsh /dev/stdin $myImage -Os $os -Architecture $arch -OsVersion $osVersion
9496
```
9597

96-
#### Windows
98+
##### Windows
9799

98100
```powershell
99101
$myImage="<insert-my-image-tag>"

samples/run-in-sdk-container.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,21 @@ You can test this working by simply editing [Program.cs](dotnetapp/Program.cs).
5353

5454
The following instructions demonstrate this scenario in various environments.
5555

56-
## Linux or macOS
56+
### Linux or macOS
5757

5858
```console
5959
docker run --rm -it -v $(pwd):/app/ -w /app mcr.microsoft.com/dotnet/sdk:8.0 dotnet run
6060
```
6161

62-
## Windows using Linux containers
62+
### Windows using Linux containers
6363

6464
This example uses PowerShell.
6565

6666
```console
6767
docker run --rm -it -v ${pwd}:/app/ -w /app mcr.microsoft.com/dotnet/sdk:8.0 dotnet run
6868
```
6969

70-
## Windows using Windows containers
70+
### Windows using Windows containers
7171

7272
This example uses PowerShell.
7373

@@ -123,7 +123,7 @@ This example uses PowerShell.
123123
docker run --rm -it -p 8000:8080 -v ${pwd}:C:\app\ -w \app -e ASPNETCORE_HTTP_URLS=8080 -e ASPNETCORE_ENVIRONMENT=Development mcr.microsoft.com/dotnet/sdk:8.0 dotnet run --no-launch-profile
124124
```
125125

126-
### Using a launch profile to configure ASP.NET Core
126+
## Using a launch profile to configure ASP.NET Core
127127

128128
The examples above use environment variables to configure ASP.NET Core. You can instead [configure ASP.NET Core with a launchSettings.json file](https://docs.microsoft.com/aspnet/core/fundamentals/environments). The [launchSettings.json file](aspnetapp/aspnetapp/Properties/launchSettings.json) in this app has been updated with a `container` profile that can be used instead of specifying environment variables with the docker CLI.
129129

0 commit comments

Comments
 (0)