Skip to content

Commit ee578d3

Browse files
authored
build: format md files
Format all md files
1 parent dcdd1bc commit ee578d3

File tree

319 files changed

+15338
-12855
lines changed

Some content is hidden

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

319 files changed

+15338
-12855
lines changed

.ng-dev/format.mts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {FormatConfig} from '@angular/ng-dev';
66
export const format: FormatConfig = {
77
'prettier': {
88
'matchers': [
9+
'**/*.md',
910
'**/*.{yaml,yml}',
1011
'**/*.{js,ts,mjs,mts,cjs,cts,tsx}',
1112
'devtools/**/*.{js,ts,mjs,mts,cjs,cts,html,scss}',
@@ -25,6 +26,9 @@ export const format: FormatConfig = {
2526

2627
// Ignore generated javascript file(s)
2728
'!.github/actions/deploy-docs-site/main.js',
29+
30+
// Ignore goldens MD files
31+
'!/goldens/**/*.api.md',
2832
],
2933
},
3034
'buildifier': true,

CHANGELOG.md

Lines changed: 4927 additions & 3175 deletions
Large diffs are not rendered by default.

CHANGELOG_ARCHIVE.md

Lines changed: 5560 additions & 5076 deletions
Large diffs are not rendered by default.

CODE_OF_CONDUCT.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ appearance, race, religion, or sexual identity and orientation.
1414
Examples of behavior that contributes to creating a positive environment
1515
include:
1616

17-
* Use welcoming and inclusive language
18-
* Respect each other
19-
* Provide and gracefully accept constructive criticism
20-
* Show empathy towards other community members
17+
- Use welcoming and inclusive language
18+
- Respect each other
19+
- Provide and gracefully accept constructive criticism
20+
- Show empathy towards other community members
2121

2222
Examples of unacceptable behavior by participants include:
2323

24-
* Trolling, insulting/derogatory comments, and personal or political attacks
25-
* Public or private harassment
26-
* Publishing others' private information, such as a physical or electronic
24+
- Trolling, insulting/derogatory comments, and personal or political attacks
25+
- Public or private harassment
26+
- Publishing others' private information, such as a physical or electronic
2727
address, without explicit permission
28-
* The use of sexualized language or imagery
29-
* Unwelcome sexual attention or advances
30-
* Other conduct which could reasonably be considered inappropriate in a
28+
- The use of sexualized language or imagery
29+
- Unwelcome sexual attention or advances
30+
- Other conduct which could reasonably be considered inappropriate in a
3131
professional setting
3232

3333
## Our Responsibilities
@@ -69,9 +69,9 @@ members of the project's leadership.
6969

7070
If you are banned you may contest the decision. To do so email conduct@angular.io with the subject line "Repeal Ban for {{your name here}}" and body with the responses to the following:
7171

72-
* Why do you believe you did not violate the Code of Conduct?
73-
* Were other factors involved in this situation the leadership team may have been unaware of?
74-
* Why do you wish to be a part of the Angular community?
72+
- Why do you believe you did not violate the Code of Conduct?
73+
- Were other factors involved in this situation the leadership team may have been unaware of?
74+
- Why do you wish to be a part of the Angular community?
7575

7676
## Attribution
7777

CONTRIBUTING.md

Lines changed: 63 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,20 @@
33
We would love for you to contribute to Angular and help make it even better than it is today!
44
As a contributor, here are the guidelines we would like you to follow:
55

6-
- [Code of Conduct](#coc)
7-
- [Question or Problem?](#question)
8-
- [Issues and Bugs](#issue)
9-
- [Feature Requests](#feature)
10-
- [Submission Guidelines](#submit)
11-
- [Coding Rules](#rules)
12-
- [Commit Message Guidelines](#commit)
13-
- [Signing the CLA](#cla)
14-
6+
- [Code of Conduct](#coc)
7+
- [Question or Problem?](#question)
8+
- [Issues and Bugs](#issue)
9+
- [Feature Requests](#feature)
10+
- [Submission Guidelines](#submit)
11+
- [Coding Rules](#rules)
12+
- [Commit Message Guidelines](#commit)
13+
- [Signing the CLA](#cla)
1514

1615
## <a name="coc"></a> Code of Conduct
1716

1817
Help us keep Angular open and inclusive.
1918
Please read and follow our [Code of Conduct][coc].
2019

21-
2220
## <a name="question"></a> Got a Question or Problem?
2321

2422
Do not open issues for general support questions as we want to keep GitHub issues for bug reports and feature requests.
@@ -34,28 +32,25 @@ To save your and our time, we will systematically close all issues that are requ
3432

3533
If you would like to chat about the question in real-time, you can reach out via [the Angular community Discord server][discord].
3634

37-
3835
## <a name="issue"></a> Found a Bug?
3936

4037
If you find a bug in the source code, you can help us by [submitting an issue](#submit-issue) to our [GitHub Repository][github].
4138
Even better, you can [submit a Pull Request](#submit-pr) with a fix.
4239

43-
4440
## <a name="feature"></a> Missing a Feature?
45-
You can *request* a new feature by [submitting an issue](#submit-issue) to our GitHub Repository.
46-
If you would like to *implement* a new feature, please consider the size of the change in order to determine the right steps to proceed:
4741

48-
* For a **Major Feature**, first open an issue and outline your proposal so that it can be discussed.
42+
You can _request_ a new feature by [submitting an issue](#submit-issue) to our GitHub Repository.
43+
If you would like to _implement_ a new feature, please consider the size of the change in order to determine the right steps to proceed:
44+
45+
- For a **Major Feature**, first open an issue and outline your proposal so that it can be discussed.
4946
This process allows us to better coordinate our efforts, prevent duplication of work, and help you to craft the change so that it is successfully accepted into the project.
5047

5148
**Note**: Adding a new topic to the documentation, or significantly re-writing a topic, counts as a major feature.
5249

53-
* **Small Features** can be crafted and directly [submitted as a Pull Request](#submit-pr).
54-
50+
- **Small Features** can be crafted and directly [submitted as a Pull Request](#submit-pr).
5551

5652
## <a name="submit"></a> Submission Guidelines
5753

58-
5954
### <a name="submit-issue"></a> Submitting an Issue
6055

6156
Before you submit an issue, please search the issue tracker. An issue for your problem might already exist and the discussion might inform you of workarounds readily available.
@@ -74,7 +69,6 @@ Unfortunately, we are not able to investigate / fix bugs without a minimal repro
7469

7570
You can file new issues by selecting from our [new issue templates](https://github.com/angular/angular/issues/new/choose) and filling out the issue template.
7671

77-
7872
### <a name="submit-pr"></a> Submitting a Pull Request (PR)
7973

8074
Before you submit your Pull Request (PR) consider the following guidelines:
@@ -93,9 +87,9 @@ Before you submit your Pull Request (PR) consider the following guidelines:
9387

9488
5. In your forked repository, make your changes in a new git branch:
9589

96-
```shell
97-
git checkout -b my-fix-branch main
98-
```
90+
```shell
91+
git checkout -b my-fix-branch main
92+
```
9993

10094
6. Create your patch, **including appropriate test cases**.
10195

@@ -106,10 +100,11 @@ Before you submit your Pull Request (PR) consider the following guidelines:
106100
9. Commit your changes using a descriptive commit message that follows our [commit message conventions][commit-message-guidelines].
107101
Adherence to these conventions is necessary because release notes are automatically generated from these messages.
108102

109-
```shell
110-
git commit --all
111-
```
112-
Note: the optional commit `--all` command line option will automatically "add" and "rm" edited files.
103+
```shell
104+
git commit --all
105+
```
106+
107+
Note: the optional commit `--all` command line option will automatically "add" and "rm" edited files.
113108

114109
10. Push your branch to GitHub:
115110

@@ -133,86 +128,84 @@ If we ask for changes via code reviews then:
133128
134129
3. Create a fixup commit and push to your GitHub repository (this will update your Pull Request):
135130
136-
```shell
137-
git commit --all --fixup HEAD
138-
git push
139-
```
131+
```shell
132+
git commit --all --fixup HEAD
133+
git push
134+
```
140135
141-
For more info on working with fixup commits see [here](./contributing-docs/using-fixup-commits.md).
136+
For more info on working with fixup commits see [here](./contributing-docs/using-fixup-commits.md).
142137
143138
That's it! Thank you for your contribution!
144139

145-
146140
##### Updating the commit message
147141

148142
A reviewer might often suggest changes to a commit message (for example, to add more context for a change or adhere to our [commit message guidelines][commit-message-guidelines]).
149143
In order to update the commit message of the last commit on your branch:
150144

151145
1. Check out your branch:
152146

153-
```shell
154-
git checkout my-fix-branch
155-
```
147+
```shell
148+
git checkout my-fix-branch
149+
```
156150

157151
2. Amend the last commit and modify the commit message:
158152

159-
```shell
160-
git commit --amend
161-
```
153+
```shell
154+
git commit --amend
155+
```
162156

163157
3. Push to your GitHub repository:
164158

165-
```shell
166-
git push --force-with-lease
167-
```
159+
```shell
160+
git push --force-with-lease
161+
```
168162

169163
> NOTE:<br />
170164
> If you need to update the commit message of an earlier commit, you can use `git rebase` in interactive mode.
171165
> See the [git docs](https://git-scm.com/docs/git-rebase#_interactive_mode) for more details.
172166

173-
174167
#### After your pull request is merged
175168

176169
After your pull request is merged, you can safely delete your branch and pull the changes from the main (upstream) repository:
177170

178-
* Delete the remote branch on GitHub either through the GitHub web UI or your local shell as follows:
171+
- Delete the remote branch on GitHub either through the GitHub web UI or your local shell as follows:
179172

180-
```shell
181-
git push origin --delete my-fix-branch
182-
```
173+
```shell
174+
git push origin --delete my-fix-branch
175+
```
183176

184-
* Check out the main branch:
177+
- Check out the main branch:
185178

186-
```shell
187-
git checkout main -f
188-
```
179+
```shell
180+
git checkout main -f
181+
```
189182

190-
* Delete the local branch:
183+
- Delete the local branch:
191184

192-
```shell
193-
git branch -D my-fix-branch
194-
```
185+
```shell
186+
git branch -D my-fix-branch
187+
```
195188

196-
* Update your local `main` with the latest upstream version:
197-
198-
```shell
199-
git pull --ff upstream main
200-
```
189+
- Update your local `main` with the latest upstream version:
201190

191+
```shell
192+
git pull --ff upstream main
193+
```
202194

203195
## <a name="rules"></a> Coding Rules
204-
To ensure consistency throughout the source code, keep these rules in mind as you are working:
205196

206-
* All features or bug fixes **must be tested** by one or more specs (unit-tests).
207-
* All public API methods **must be documented**.
208-
* We follow [Google's TypeScript Style Guide][ts-style-guide], but wrap all code at **100 characters**.
197+
To ensure consistency throughout the source code, keep these rules in mind as you are working:
209198

210-
An automated formatter is available, see [building-and-testing-angular.md](./contributing-docs/building-and-testing-angular.md#formatting-your-source-code).
199+
- All features or bug fixes **must be tested** by one or more specs (unit-tests).
200+
- All public API methods **must be documented**.
201+
- We follow [Google's TypeScript Style Guide][ts-style-guide], but wrap all code at **100 characters**.
211202
203+
An automated formatter is available, see [building-and-testing-angular.md](./contributing-docs/building-and-testing-angular.md#formatting-your-source-code).
212204
213205
## <a name="commit"></a> Commit Message Guidelines
214206
215207
We have very precise rules over how our Git commit messages must be formatted:
208+
216209
```
217210
<type>(<scope>): <short summary>
218211
```
@@ -224,21 +217,18 @@ See [Commit Message Guidelines][commit-message-guidelines] for details.
224217
Please sign our Contributor License Agreement (CLA) before sending pull requests. For any code
225218
changes to be accepted, the CLA must be signed. It's a quick process, we promise!
226219

227-
* For individuals, we have a [simple click-through form][individual-cla].
228-
* For corporations, we'll need you to
220+
- For individuals, we have a [simple click-through form][individual-cla].
221+
- For corporations, we'll need you to
229222
[print, sign and one of scan+email, fax or mail the form][corporate-cla].
230223
231224
If you have more than one GitHub accounts, or multiple email addresses associated with a single GitHub account, you must sign the CLA using the primary email address of the GitHub account used to author Git commits and send pull requests.
232225
233226
The following documents can help you sort out issues with GitHub accounts and multiple email addresses:
234227
235-
* https://help.github.com/articles/setting-your-commit-email-address-in-git/
236-
* https://stackoverflow.com/questions/37245303/what-does-usera-committed-with-userb-13-days-ago-on-github-mean
237-
* https://help.github.com/articles/about-commit-email-addresses/
238-
* https://help.github.com/articles/blocking-command-line-pushes-that-expose-your-personal-email-address/
239-
240-
241-
228+
- https://help.github.com/articles/setting-your-commit-email-address-in-git/
229+
- https://stackoverflow.com/questions/37245303/what-does-usera-committed-with-userb-13-days-ago-on-github-mean
230+
- https://help.github.com/articles/about-commit-email-addresses/
231+
- https://help.github.com/articles/blocking-command-line-pushes-that-expose-your-personal-email-address/
242232
243233
[coc]: https://github.com/angular/code-of-conduct/blob/main/CODE_OF_CONDUCT.md
244234
[corporate-cla]: https://cla.developers.google.com/about/google-corporate

adev/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,12 @@ pnpm bazel clean
5252
pnpm bazel clean --expunge
5353
```
5454

55-
56-
## High level architecture
55+
## High level architecture
5756

5857
The angular.dev website is a modern Angular application that utilizes Static Site Generation (SSG) to deliver pre-rendered, high-performance content to users.
5958

6059
The architecture is designed for efficiency and maintainability:
6160

6261
Content Sources: The documentation is sourced from two main places within the monorepo. The guides and tutorials are written in Markdown files, while the API reference pages are automatically generated by extracting documentation directly from the TypeScript source code of the Angular framework packages.
6362

64-
Build Process: During the build process, the Markdown files are converted into HTML. Simultaneously, the API documentation is extracted from the code comments. This content is then integrated into the Angular application.
63+
Build Process: During the build process, the Markdown files are converted into HTML. Simultaneously, the API documentation is extracted from the code comments. This content is then integrated into the Angular application.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
`CommonModule`, `ApplicationRef.tick`, `Router.lastSuccessfulNavigation()`.
1+
`CommonModule`, `ApplicationRef.tick`, `Router.lastSuccessfulNavigation()`.

adev/shared-docs/pipeline/shared/marked/test/docs-alert/docs-alert.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ IMPORTANT: Use Important for information that's crucial to comprehending the tex
1717

1818
HELPFUL: Use Best practice to call out practices that are known to be successful or better than alternatives.
1919

20-
NOTE: THIS NOTE WITHOUT A LINE RETURN
20+
NOTE: THIS NOTE WITHOUT A LINE RETURN

adev/shared-docs/pipeline/shared/marked/test/docs-callout/docs-callout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313

1414
<docs-callout helpful title="Callout title for helpful">
1515
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
16-
</docs-callout>
16+
</docs-callout>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<docs-card-container>
22
<docs-card ></docs-card>
33
<docs-card ></docs-card>
4-
</docs-card-container>
4+
</docs-card-container>

0 commit comments

Comments
 (0)