uv/docs/guides/integration
Reza Gharibi d4e8df9b94
Fix PowerShell code blocks (#13511)
<!--
Thank you for contributing to uv! To help us out with reviewing, please
consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->

## Summary

The PowerShell prompt is not `$`, so it is not detected as a
`Generic.Prompt` token by Pygments lexers. Therefore, the JavaScript
code does not strip the prompt when copying from PowerShell code blocks,
such as
[here](https://docs.astral.sh/uv/getting-started/installation/#__tabbed_5_2).

Other places in the docs have removed the prompt completely to address
this issue:
* https://docs.astral.sh/uv/guides/projects/#__tabbed_1_2
* https://docs.astral.sh/uv/guides/integration/jupyter/#__tabbed_1_2

This PR updates the PowerShell prompt to `PS>` and changes the code
fence language to `pwsh-session` to match the lexer name from
[Pygments](https://pygments.org/docs/lexers/#pygments.lexers.shell.PowerShellSessionLexer).
This allows the prompt to be correctly detected as a `Generic.Prompt`
token and is stripped during copy.

Related: https://github.com/astral-sh/uv/pull/12520
2025-05-17 21:06:48 -05:00
..
alternative-indexes.md Fix `#keyring-provider` references in alternative index docs (#12315) 2025-03-19 16:40:22 +00:00
aws-lambda.md Bump version to v0.7.5 (#13500) 2025-05-16 20:37:17 -04:00
dependency-bots.md docs: update dependency-bots.md (#12454) 2025-03-24 19:08:58 -04:00
docker.md Bump version to v0.7.5 (#13500) 2025-05-16 20:37:17 -04:00
fastapi.md teeny gramatical error in docs (#12908) 2025-04-15 16:13:51 -05:00
github.md Bump version to v0.7.5 (#13500) 2025-05-16 20:37:17 -04:00
gitlab.md docs: suggest copy linking for GitLab integration guide (#11067) 2025-01-29 17:58:14 +00:00
index.md Add AWS Lambda integration guide (#10278) 2025-01-07 13:50:31 -05:00
jupyter.md Fix PowerShell code blocks (#13511) 2025-05-17 21:06:48 -05:00
pre-commit.md Bump version to v0.7.5 (#13500) 2025-05-16 20:37:17 -04:00
pytorch.md Add ROCm example to the PyTorch guide (#13200) 2025-04-29 15:13:13 -04:00