mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Use prettier to format the documentation (#5708)
To enforce the 100 character line limit in markdown files introduced in https://github.com/astral-sh/uv/pull/5635, and to automate the formatting of markdown files, i've added prettier and formatted our markdown files with it. I've excluded the changelog and the generated references documentation from this for having too many changes, but we can also include them. I'm not particular on which style we use. My main motivations are (major) not having to reflow markdown files myself anymore and (minor) consistence between all markdown files. I've chosen prettier for similar reason as we chose black, it's a single good style that's automated and shared in the community. I do prefer prettier's style of not breaking inside of a link name though. This PR is in two parts, the first adds prettier to CI and documents using it, while the second actually formats the docs. When merge conflicts arise, we can drop the last commit and regenerate it with `npx prettier --prose-wrap always --write BENCHMARKS.md CONTRIBUTING.md README.md STYLE.md docs/*.md docs/concepts/**/*.md docs/guides/**/*.md docs/pip/**/*.md`. --------- Co-authored-by: Zanie Blue <contact@zanie.dev>
This commit is contained in:
parent
f2c4b9c752
commit
db371560bc
42 changed files with 711 additions and 646 deletions
|
@ -10,8 +10,8 @@ Using SSH:
|
|||
- `git+ssh://git@<hostname>/...` (e.g. `git+ssh://git@github.com/astral-sh/uv`)
|
||||
- `git+ssh://git@<host>/...` (e.g. `git+ssh://git@github.com-key-2/astral-sh/uv`)
|
||||
|
||||
See the [GitHub SSH
|
||||
documentation](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/about-ssh)
|
||||
See the
|
||||
[GitHub SSH documentation](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/about-ssh)
|
||||
for more details on how to configure SSH.
|
||||
|
||||
Using a password or token:
|
||||
|
@ -25,8 +25,8 @@ When using a GitHub personal access token, the username is arbitrary. GitHub doe
|
|||
logging in with password directly, although other hosts may. If a username is provided without
|
||||
credentials, you will be prompted to enter them.
|
||||
|
||||
If there are no credentials present in the URL and authentication is needed, the [Git credential
|
||||
helper](https://git-scm.com/doc/credential-helpers) will be queried.
|
||||
If there are no credentials present in the URL and authentication is needed, the
|
||||
[Git credential helper](https://git-scm.com/doc/credential-helpers) will be queried.
|
||||
|
||||
## HTTP authentication
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue