Skip to content

Commit 91100b2

Browse files
committed
markdown linting
1 parent f051781 commit 91100b2

File tree

18 files changed

+320
-22
lines changed

18 files changed

+320
-22
lines changed

.azure/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
npm install
4343
displayName: 'Install dependencies'
4444
- pwsh: |
45-
npm run lint:check && npm run format:check
45+
npm run lint:check && npm run format:check && npm run mdlint:check
4646
displayName: 'Check code formatting'
4747
- pwsh: |
4848
npm run build:tools

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# http://editorconfig.org
1+
# https://editorconfig.org
22
root = true
33

44
[*]

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
npm install
3737
name: Install dependencies
3838
- run: |
39-
npm run lint:check && npm run format:check
39+
npm run lint:check && npm run format:check && npm run mdlint:check
4040
name: Check code formatting
4141
- run: |
4242
npm run build:tools

.markdownlint.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
MD033:
2+
allowed_elements:
3+
- details
4+
- summary
5+
- b
6+
- i
7+
MD013: false
8+
9+
MD041:
10+
level: 1

dist/azure/overview.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
Versioning when using Git, solved. GitVersion looks at your Git history and works out the [semantic version](http://semver.org) of the commit being built.
1+
# GitTools bundle for Azure Pipelines
2+
3+
Versioning when using Git, solved. GitVersion looks at your Git history and works out the [semantic version](https://semver.org) of the commit being built.
24

35
It works with most branching strategies but has been designed mainly around GitFlow and GitHubFlow (pull request workflow). The calculated version numbers can then be accessed through variables such as `$(GitVersion.FullSemVer)` and `$(GitVersion.SemVer)`. It is also very configurable to allow it to work with most release workflows!
46

docs/cloning.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
In order for the gitversion to properly work you need to clone the repository with the entire history:
1+
# Cloning
2+
3+
In order for the GitVersion to properly work you need to clone the repository with the entire history:
24

35
```yaml
46
# GitHub Actions syntax

docs/examples/azure/gitreleasemanager/setup.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Setup GitReleaseManager Task (gitreleasemanager/setup) Usage Examples
2+
3+
Find out how to use the **gitreleasemanager/setup** task using the examples below.
4+
5+
> The examples use version _2.0.1_ of the GitReleaseManager Setup task. It is recommended to use the latest released version in your own workflows.
6+
17
## Inputs
28

39
The Setup GitReleaseManager action accepts the following inputs:

docs/examples/azure/gitversion/execute/usage-examples.md renamed to docs/examples/azure/gitversion/execute.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,13 @@ The Execute GitVersion task creates the following job-scoped variables and multi
106106
- commitsSinceVersionSourcePadded (since 5.2.0, removed in 6.0.0)
107107
- uncommittedChanges (since 5.5.0)
108108
- commitDate
109+
109110
---
110111
111112
## Execution Examples
112113
113114
### Example 1
115+
114116
<details>
115117
<summary>Calculate the version for the build.</summary>
116118
@@ -121,20 +123,23 @@ steps:
121123
- task: gitversion/[email protected]
122124
displayName: Determine Version
123125
```
126+
124127
</details>
125128
126129
### Example 2
127130
128131
<details>
129-
<summary>Calculate the version for the build using a config file with the default name **GitVersion.yml**.</summary>
132+
<summary>Calculate the version for the build using a config file with the default name <b>GitVersion.yml</b>.</summary>
133+
130134
```yaml
131135
steps:
132136
# gitversion/[email protected] task omitted for brevity.
133137

134-
- task: gitversion/[email protected]
138+
- task: gitversion/[email protected]
135139
displayName: Determine Version
136140
inputs:
137141
useConfigFile: true
142+
138143
```
139144

140145
Example contents of **GitVersion.yml**:
@@ -147,12 +152,13 @@ branches:
147152
pull-request:
148153
tag: pr
149154
```
155+
150156
</details>
151157
152158
### Example 3
153159
154160
<details>
155-
<summary>Calculate the version for the build using a config file named **VersionConfig.yml** in the root of the working folder.</summary>
161+
<summary>Calculate the version for the build using a config file named <b>VersionConfig.yml</b> in the root of the working folder.</summary>
156162
157163
```yaml
158164
steps:
@@ -164,12 +170,13 @@ steps:
164170
useConfigFile: true
165171
configFilePath: 'VersionConfig.yml'
166172
```
173+
167174
</details>
168175
169176
### Example 4
170177
171178
<details>
172-
<summary>Show the effective configuration for GitVersion by running the **/showConfig** command (passed as an additional argument).</summary>
179+
<summary>Show the effective configuration for GitVersion by running the <b>/showConfig</b> command (passed as an additional argument).</summary>
173180
174181
```yaml
175182
steps:
@@ -180,6 +187,7 @@ steps:
180187
inputs:
181188
additionalArguments: '/showConfig'
182189
```
190+
183191
</details>
184192
185193
### Example 5
@@ -197,6 +205,7 @@ steps:
197205
disableCache: true
198206
disableNormalization: true
199207
```
208+
200209
</details>
201210
202211
### Example 6
@@ -213,6 +222,7 @@ steps:
213222
inputs:
214223
updateAssemblyInfo: true
215224
```
225+
216226
</details>
217227
218228
### Example 7
@@ -231,17 +241,20 @@ steps:
231241
update-build-number=false
232242
next-version=2.0.1
233243
```
244+
234245
</details>
235246
236247
## Output usage
237248
238-
The outputs can be accessed using the syntax `$(<id>.<outputName>)` or `$(<id>.GitVersion_<OutputName>)`, where `<id>` is the ID assigned to the step that calls the action, by subsequent steps later in the same job.
249+
The outputs can be accessed using the syntax `$(<id>.<outputName>)` or `$(<id>.GitVersion_<OutputName>)`,
250+
where `<id>` is the ID assigned to the step that calls the action, by subsequent steps later in the same job.
239251

240252
The action also creates environment variables of the form `$(<outputName>)` or `$(GitVersion_<OutputName>)` for use by other steps in the same job.
241253

242254
The multi-job output variables can be accessed across jobs and stages, in both conditions and variables.
243255

244-
**GitVersion also automatically updates the pre-defined Build variable `Build.BuildNumber`.** You can disable the default behavior by setting the `update-build-number` to `false` in the configuration file or by using the `overrideConfig` input.
256+
**GitVersion also automatically updates the pre-defined Build variable `Build.BuildNumber`.**
257+
You can disable the default behavior by setting the `update-build-number` to `false` in the configuration file or by using the `overrideConfig` input.
245258

246259
### Example 8
247260

@@ -310,9 +323,11 @@ jobs:
310323
env:
311324
myvar_GitVersion_FullSemVer: $(version_step.GitVersion_FullSemVer)
312325
```
326+
313327
</details>
314328

315329
### Example 9
330+
316331
<details>
317332
<summary>Calculate the version for the build and use the output in a subsequent job.</summary>
318333

@@ -396,9 +411,11 @@ jobs:
396411
env:
397412
localvar_GitVersion_FullSemVer: $(myvar_GitVersion_FullSemVer)
398413
```
414+
399415
</details>
400416

401417
### Example 10
418+
402419
<details>
403420
<summary>Calculate the version for the build and use the output in a subsequent stage.</summary>
404421

@@ -489,4 +506,5 @@ stages:
489506
env:
490507
localvar_GitVersion_FullSemVer: $(myvar_GitVersion_FullSemVer)
491508
```
509+
492510
</details>

docs/examples/azure/gitversion/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ Note: You need to run the Setup step before the Execute step, otherwise the Exec
66

77
## Setup GitVersion (gitversion/setup)
88

9-
- [Usage examples](setup/usage-examples.md)
9+
- [Usage examples](setup.md)
1010

1111
## Execute GitVersion (gitversion/execute)
1212

13-
- [Usage examples](execute/usage-examples.md)
13+
- [Usage examples](execute.md)
14+

docs/examples/azure/gitversion/setup/usage-examples.md renamed to docs/examples/azure/gitversion/setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Find out how to use the **gitversion/setup** task using the examples below.
44

5-
> The examples use version _2.0.1_ of the GitVersion Execute task. It is recommended to use the latest released version in your own workflows.
5+
> The examples use version _2.0.1_ of the GitVersion Setup task. It is recommended to use the latest released version in your own workflows.
66
77
## Inputs
88

0 commit comments

Comments
 (0)