Skip to content

Commit 47b0c7f

Browse files
authored
Fix markdownlint errors (#7100)
1 parent 7fd5fd9 commit 47b0c7f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+85
-115
lines changed

.github/linters/.markdownlint.yml

-34
This file was deleted.

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
node-version: "20"
103103
- run: npm install -g markdownlint-cli2
104104
name: Install markdownlint-cli2
105-
- run: markdownlint-cli2 --config ".github/linters/.markdownlint.yml" "website/src/**/*.md"
105+
- run: markdownlint-cli2 "*.md" "website/src/**/*.md"
106106
name: run Markdownlint
107107

108108
website-tests:

.markdownlint.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# https://github.com/DavidAnson/markdownlint
2+
3+
MD013: false # Rationale: Hard line breaks are unnecessary (use soft wrapping instead).
4+
MD024:
5+
siblings_only: true
6+
MD025: false # Rationale: The documentation ToC generator is designed to work with multiple top-level headings.
7+
MD026:
8+
punctuation: ".,;:"
9+
MD028: false # Rationale: Used for displaying separate notes or warnings in the documentation.
10+
MD029: false # Rationale: The documentation currently misuses list formatting for other purposes.
11+
MD033:
12+
allowed_elements:
13+
- a
14+
- Annotation
15+
- ApiChoiceTabs
16+
- br
17+
- Code
18+
- ExampleTabs
19+
- img
20+
- InputChoiceTabs
21+
- PackageInstallation
22+
- Schema
23+
- strong
24+
- u
25+
- Video
26+
MD036: false # Rationale: Possibly too strict, used frequently in documentation.

.markdownlintrc

-16
This file was deleted.

.vscode/extensions.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"recommendations": [
3+
"davidanson.vscode-markdownlint",
34
"ms-dotnettools.csharp",
45
"EditorConfig.EditorConfig",
56
"k--kato.docomment",

.vscode/settings.json

-6
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@
1313
"*.targets": "xml",
1414
"*.tasks": "xml"
1515
},
16-
"markdownlint.config": {
17-
"MD028": false,
18-
"MD025": {
19-
"front_matter_title": ""
20-
}
21-
},
2216
"cSpell.words": [
2317
"Nats"
2418
],

CODE-OF-CONDUCT.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
5555
## Enforcement
5656

5757
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58-
reported by contacting the project team at [email protected]. All
58+
reported by contacting the project team at <[email protected]>. All
5959
complaints will be reviewed and investigated and will result in a response that
6060
is deemed necessary and appropriate to the circumstances. The project team is
6161
obligated to maintain confidentiality with regard to the reporter of an incident.
@@ -68,9 +68,9 @@ members of the project's leadership.
6868
## Attribution
6969

7070
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71-
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
71+
available at <https://www.contributor-covenant.org/version/1/4/code-of-conduct.html>
7272

7373
[homepage]: https://www.contributor-covenant.org
7474

7575
For answers to common questions about this code of conduct, see
76-
https://www.contributor-covenant.org/faq
76+
<https://www.contributor-covenant.org/faq>

COMMUNITY.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Community
22

3-
This document highlights projects from our awesome community.
3+
This document highlights projects from our awesome community.
44

55
Feel free to open a PR to include your project in this list.
66

@@ -33,4 +33,3 @@ Various libraries, packages, etc. that developers can add to their own project a
3333
- [FairyBread](https://github.com/benmccallum/fairybread) - Input validation for HotChocolate (FluentValidation)
3434
- [FluentChoco](https://github.com/dalrankov/FluentChoco) - FluentValidation middleware for HotChocolate
3535
- [Graph.ArgumentValidator](https://github.com/VarunSaiTeja/Graph.ArgumentValidator) - Adds input argument validation to HotChocolate (DataAnnotations)
36-

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- markdownlint-disable-next-line MD041 -->
12
![ChilliCream GraphQL Platform](https://chillicream.com/resources/chillicream-graphql-banner.svg)
23

34
[![NuGet Package](https://img.shields.io/nuget/v/hotchocolate.svg)](https://www.nuget.org/packages/HotChocolate/)
@@ -74,6 +75,7 @@ Examples of things built on top of the ChilliCream GraphQL Platform that are ope
7475

7576
[Become a sponsor](https://opencollective.com/chillicream#contribute) and get your logo on our README on Github with a link to your site.
7677

78+
<!-- markdownlint-disable MD045 -->
7779
<a href="https://opencollective.com/chillicream/sponsor/0/website?requireActive=false" target="_blank" rel="noreferrer noopener"><img src="https://opencollective.com/chillicream/sponsor/0/avatar.svg?requireActive=false"></a>
7880
<a href="https://opencollective.com/chillicream/sponsor/1/website?requireActive=false" target="_blank" rel="noreferrer noopener"><img src="https://opencollective.com/chillicream/sponsor/1/avatar.svg?requireActive=false"></a>
7981
<a href="https://opencollective.com/chillicream/sponsor/2/website?requireActive=false" target="_blank" rel="noreferrer noopener"><img src="https://opencollective.com/chillicream/sponsor/2/avatar.svg?requireActive=false"></a>
@@ -94,11 +96,13 @@ Examples of things built on top of the ChilliCream GraphQL Platform that are ope
9496
<a href="https://opencollective.com/chillicream/sponsor/17/website?requireActive=false" target="_blank" rel="noreferrer noopener"><img src="https://opencollective.com/chillicream/sponsor/17/avatar.svg?requireActive=false"></a>
9597
<a href="https://opencollective.com/chillicream/sponsor/18/website?requireActive=false" target="_blank" rel="noreferrer noopener"><img src="https://opencollective.com/chillicream/sponsor/18/avatar.svg?requireActive=false"></a>
9698
<a href="https://opencollective.com/chillicream/sponsor/19/website?requireActive=false" target="_blank" rel="noreferrer noopener"><img src="https://opencollective.com/chillicream/sponsor/19/avatar.svg?requireActive=false"></a>
99+
<!-- markdownlint-enable MD045 -->
97100

98101
### Backer
99102

100103
[Become a backer](https://opencollective.com/chillicream#contribute) and get your image on our README on Github with a link to your site.
101104

105+
<!-- markdownlint-disable MD045 -->
102106
<a href="https://opencollective.com/chillicream/backer/0/website?requireActive=false" target="_blank" rel="noreferrer noopener"><img src="https://opencollective.com/chillicream/backer/0/avatar.svg?requireActive=false"></a>
103107
<a href="https://opencollective.com/chillicream/backer/1/website?requireActive=false" target="_blank" rel="noreferrer noopener"><img src="https://opencollective.com/chillicream/backer/1/avatar.svg?requireActive=false"></a>
104108
<a href="https://opencollective.com/chillicream/backer/2/website?requireActive=false" target="_blank" rel="noreferrer noopener"><img src="https://opencollective.com/chillicream/backer/2/avatar.svg?requireActive=false"></a>
@@ -119,3 +123,4 @@ Examples of things built on top of the ChilliCream GraphQL Platform that are ope
119123
<a href="https://opencollective.com/chillicream/backer/17/website?requireActive=false" target="_blank" rel="noreferrer noopener"><img src="https://opencollective.com/chillicream/backer/17/avatar.svg?requireActive=false"></a>
120124
<a href="https://opencollective.com/chillicream/backer/18/website?requireActive=false" target="_blank" rel="noreferrer noopener"><img src="https://opencollective.com/chillicream/backer/18/avatar.svg?requireActive=false"></a>
121125
<a href="https://opencollective.com/chillicream/backer/19/website?requireActive=false" target="_blank" rel="noreferrer noopener"><img src="https://opencollective.com/chillicream/backer/19/avatar.svg?requireActive=false"></a>
126+
<!-- markdownlint-enable MD045 -->

SECURITY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ We will provide security updates to the latest major version.
1111

1212
## Reporting a Vulnerability
1313

14-
Security issues and bugs should be reported privately, via email, to ChilliCream Inc. by emailing [email protected]. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message.
14+
Security issues and bugs should be reported privately, via email, to ChilliCream Inc. by emailing <[email protected]>. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message.
1515

1616
Please do not open issues for anything you think might have a security implication.

website/src/blog/2019-03-04-hot-chocolate-0.8.0.md

-3
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,3 @@ We are planning around four to six weeks for version 9 with the first previews c
103103
We will really start hammering out the details on version 9 in the next three weeks.
104104

105105
If you have ideas or suggestions pleas head over to our slack channel and join the discussion.
106-
107-
[hot chocolate]: https://hotchocolate.io
108-
[hot chocolate source code]: https://github.com/ChilliCream/graphql-platform

website/src/blog/2019-04-11-integration-tests.md

-3
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,3 @@ services.AddGraphQL(Schema.Create(c =>
307307
```
308308

309309
I hope this little post will help when you start writing tests for your schema. If you run into any issues or if you have further questions/suggestions head over to our slack channel and we will be happy to help you.
310-
311-
[hot chocolate]: https://hotchocolate.io
312-
[hot chocolate source code]: https://github.com/ChilliCream/graphql-platform

website/src/blog/2019-04-12-type-system.md

-3
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,3 @@ As you can see version 9 will bring quite a few improvements, so stay tuned for
413413
With Hot Chocolate we are building a GraphQL server for the community, so join and help us along.
414414

415415
We value any kind of contribution, whether you give us a star, a feedback, find a bug, a typo, or whether you contribute code. Every bit matters and makes our project better.
416-
417-
[hot chocolate]: https://hotchocolate.io
418-
[hot chocolate source code]: https://github.com/ChilliCream/graphql-platform

website/src/blog/2019-11-29-schema-design.md

-3
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,3 @@ So, when can you expect 10.3.0. We will deliver nullable ref types with 10.3.0-p
241241
I hope you are as exited as I am about this. Happy Thanksgiving :) and get a super awesome Hot Chocolate with marshmallows to get into your GraphQL groove.
242242

243243
If you want to get into contact with us head over to our slack channel and join our community.
244-
245-
[hot chocolate]: https://hotchocolate.io
246-
[hot chocolate source code]: https://github.com/ChilliCream/graphql-platform

website/src/blog/2019-12-26-hotchocolate-10.3.0.md

-3
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,3 @@ I hope you will enjoy 10.3.0 as much as I already do and join the Hot Chocolate
577577
BTW, head over to our _pure code-first_ [Star Wars example](https://github.com/ChilliCream/hotchocolate-examples/tree/master/misc/PureCodeFirst).
578578

579579
If you want to get into contact with us head over to our slack channel and join our community.
580-
581-
[hot chocolate]: https://hotchocolate.io
582-
[hot chocolate source code]: https://github.com/ChilliCream/graphql-platform

website/src/blog/2020-03-18-entity-framework/2020-03-18-entity-framework.md

-3
Original file line numberDiff line numberDiff line change
@@ -1094,6 +1094,3 @@ The example used in this post can be found [here](https://github.com/ChilliCream
10941094
We also have a more complex real-time GraphQL server example in multiple flavors and different database integrations [here](https://github.com/ChilliCream/hotchocolate-examples/tree/master/workshop/src/Server).
10951095

10961096
If you want to get into contact with us head over to our slack channel and join our community.
1097-
1098-
[hot chocolate]: https://hotchocolate.io
1099-
[hot chocolate source code]: https://github.com/ChilliCream/graphql-platform

website/src/blog/2021-01-20-hot-chocolate-logging/2021-01-10-hot-chocolate-logging.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ services.AddMiniProfiler
370370

371371
Then, when you execute a GraphQL query that uses Entity Framework Core, you'll get results like the following. Notice that not only do you get the GraphQL query with it's variables, but also, you get all the SQL generated by Entity Framework that's run on that Query's behalf. Also notice the timing, you can see the time for the GraphQL query as well as the time for just the SQL.
372372

373-
![](MiniProfiler-Detail-EF-640.png)
373+
![MiniProfiler Detail Web Page](MiniProfiler-Detail-EF-640.png)
374374

375375
# Wrap
376376

website/src/blog/2021-05-30-entity-framework/2020-03-18-entity-framework.md

-3
Original file line numberDiff line numberDiff line change
@@ -1094,6 +1094,3 @@ The example used in this post can be found [here](https://github.com/ChilliCream
10941094
We also have a more complex real-time GraphQL server example in multiple flavors and different database integrations [here](https://github.com/ChilliCream/hotchocolate-examples/tree/master/workshop/src/Server).
10951095

10961096
If you want to get into contact with us head over to our slack channel and join our community.
1097-
1098-
[hot chocolate]: https://hotchocolate.io
1099-
[hot chocolate source code]: https://github.com/ChilliCream/graphql-platform

website/src/docs/bananacakepop/v2/apis/client-registry.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,4 +183,4 @@ The general flow for the client registry involves three main steps: validating t
183183

184184
2. **Upload the Client**: The second step takes place during your release build. Here, you upload the client to the registry using the `barista client upload` command. This command requires the `--tag` and `--api-id` options. The `--tag` option specifies the tag for the client, and the `--api-id` option specifies the ID of the API to which you are uploading. This command create a new version of the client with the specified tag. The tag is a string that can be used to identify the client. It can be any string, but it is recommended to use a version number, such as `v1` or `v2`; or a commit hash, such as `a1b2c3d4e5f6g7h8i9j0k1l2m3n`. The tag is used to identify the client when publishing it.
185185

186-
3. **Publish the Client **: The third step takes place just before the release. Here, you publish the client using the `barista client publish` commands. This command requires the `--tag` and `--api-id` options. The `--tag` option specifies the tag for the client, and the `--api-id` option specifies the ID of the API to which you are uploading. This command publishes the client with the specified tag, making it the active version for the specified API.
186+
3. **Publish the Client**: The third step takes place just before the release. Here, you publish the client using the `barista client publish` commands. This command requires the `--tag` and `--api-id` options. The `--tag` option specifies the tag for the client, and the `--api-id` option specifies the ID of the API to which you are uploading. This command publishes the client with the specified tag, making it the active version for the specified API.

website/src/docs/bananacakepop/v2/apis/schema-registry.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ The schema and client registries work hand-in-hand to ensure the smooth function
114114

115115
The general flow for the schema registry involves three main steps: validating the schema, uploading it to the registry, and publishing it.
116116

117-
1. **Validate the Schema **: The first step takes place during your Pull Request (PR) build. Here, you validate the schema against the API using the `barista schema validate` command. This ensures that the schema is compatible with the API and will not break existing functionality.
117+
1. **Validate the Schema**: The first step takes place during your Pull Request (PR) build. Here, you validate the schema against the API using the `barista schema validate` command. This ensures that the schema is compatible with the API and will not break existing functionality.
118118

119119
2. **Upload the Schema**: The second step takes place during your release build. Here, you upload the schema to the registry using the `barista schema upload` command. This command requires the `--tag` and `--api-id` options. The `--tag` option specifies the tag for the schema, and the `--api-id` option specifies the ID of the API to which you are uploading. This command create a new version of the schema with the specified tag.
120120
The tag is a string that can be used to identify the schema. It can be any string, but it is recommended to use a version number, such as `v1` or `v2`; or a commit hash, such as `a1b2c3d4e5f6g7h8i9j0k1l2m3n`. The tag is used to identify the schema when publishing it.
121121

122-
3. **Publish the Schema **: The third step takes place just before the release. Here, you publish the schema using the `barista schema publish` command. This command requires the `--tag` and `--api-id` options. The `--tag` option specifies the tag for the schema, and the `--api-id` option specifies the ID of the API to which you are uploading. This command publishes the schema with the specified tag, making it the active version for the specified API.
122+
3. **Publish the Schema**: The third step takes place just before the release. Here, you publish the schema using the `barista schema publish` command. This command requires the `--tag` and `--api-id` options. The `--tag` option specifies the tag for the schema, and the `--api-id` option specifies the ID of the API to which you are uploading. This command publishes the schema with the specified tag, making it the active version for the specified API.

website/src/docs/barista/v1/commands/launch.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ The `barista launch` command is used to launch Banana Cake Pop, the GraphQL IDE,
66

77
To use the `barista launch` command, simply type it in your terminal:
88

9-
```
9+
```shell
1010
barista launch
1111
```

website/src/docs/barista/v1/commands/login.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The `barista login` command is used to log into your user account on Barista. On
66

77
To use the `barista login` command, type it into your terminal as shown below:
88

9-
```
9+
```shell
1010
barista login
1111
```
1212

website/src/docs/barista/v1/commands/logout.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
## Barista Logout
2-
3-
**Description**
1+
---
2+
title: Logout
3+
---
44

55
The `barista logout` command is used to log out of your user account on Barista.
66

77
To use the `barista logout` command, type it into your terminal as shown below:
88

9-
```
9+
```shell
1010
barista logout
1111
```
1212

website/src/docs/barista/v1/commands/stage.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Below the table, you'll find several options to manage stages:
4141
- **(e)dit**: This option allows you to edit an existing stage.
4242
- **(d)elete**: This option allows you to delete a stage.
4343

44-
** Hot to use the Console UI **
44+
**Hot to use the Console UI**
4545

4646
1. **Navigate**: Use the arrow keys on your keyboard to navigate through the table of stages.
4747
2. **Add a new stage**: To add a new stage, press the 'a' key on your keyboard. You'll be prompted to enter the details of the new stage.

website/src/docs/barista/v1/commands/workspace.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ barista workspace show abc123
4444

4545
The `barista workspace current` command is used to show the name of the currently selected workspace.
4646

47-
```
47+
```shell
4848
barista workspace current
4949
```

website/src/docs/barista/v1/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ Barista is a powerful .NET command-line tool used for managing your GraphQL API'
66

77
To install Barista, use the .NET Core CLI command:
88

9-
```
9+
```shell
1010
dotnet tool install --global barista
1111
```

website/src/docs/hotchocolate/v10/data-fetching/filters.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ query {
137137
}
138138
```
139139

140-
**⚠️ OR does not work when you use it like this: **
140+
**⚠️ OR does not work when you use it like this:**
141141

142142
```graphql
143143
query {

website/src/docs/hotchocolate/v11/api-reference/filtering.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1871,7 +1871,7 @@ Hot Chocolate can translate incoming filters requests directly onto collections
18711871

18721872
Filter conventions make it easier to change how an expression should be generated. There are three different extension points you can use to change the behavior of the expression visitor. You do not have to worry about the visiting of the input object itself.
18731873

1874-
##### Describe the Expression Visitor
1874+
#### Describe the Expression Visitor
18751875

18761876
The expression visitor descriptor is accessible through the filter convention. By calling `UseExpressionVisitor` on the convention descriptor you gain access. The expression visitor has the default set of expressions pre-configured.
18771877

website/src/docs/hotchocolate/v11/api-reference/migrate-from-10-to-11.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ Another variant here is to use our scoped service feature that scopes services f
146146

147147
# Schema / Resolvers
148148

149-
### Field ordering
149+
## Field ordering
150150

151151
Hot Chocolate 11 follows the spec and returns the fields in the order they were defined. This feature
152152
makes migrations harder because the schema snapshot looks different compared to version 11. You can change this behavior with the following setting.

website/src/docs/hotchocolate/v11/defining-a-schema/object-types.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ The following conventions are applied when transforming C# method and property n
225225

226226
With the name cleaned of unnecessary information, we also change the casing at the start of the name:
227227

228-
```
228+
```text
229229
FooBar --> fooBar
230230
IPAddress --> ipAddress
231231
PLZ --> plz

0 commit comments

Comments
 (0)