uv/docs
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
..
.overrides Add ``last updated`` for document (#11164) 2025-02-03 22:28:47 -05:00
assets Add `static` assets to docs pages (#6951) 2024-09-02 20:00:30 -04:00
concepts Build backend: Make preview default and add configuration docs (#12804) 2025-05-05 13:52:31 +00:00
configuration Fix PowerShell code blocks (#13511) 2025-05-17 21:06:48 -05:00
getting-started Fix PowerShell code blocks (#13511) 2025-05-17 21:06:48 -05:00
guides Fix PowerShell code blocks (#13511) 2025-05-17 21:06:48 -05:00
js Fix typo in a reference (#12858) 2025-04-14 10:19:02 +02:00
pip Fix PowerShell code blocks (#13511) 2025-05-17 21:06:48 -05:00
reference uv export docs: "export" instead of "install" (#13430) 2025-05-13 15:53:10 +02:00
stylesheets Remove the last edited date from documentation pages (#11753) 2025-02-24 13:27:00 -06:00
.gitignore Add structured documentation (#4426) 2024-06-26 11:28:42 -05:00
index.md Fix PowerShell code blocks (#13511) 2025-05-17 21:06:48 -05:00
requirements-insiders.in Reference the root requirements from the insiders requirements file (#5105) 2024-07-16 09:51:16 -05:00
requirements-insiders.txt Move content from the `mkdocs.public.yml` into the template (#11246) 2025-02-05 16:13:46 +00:00
requirements.in Add ``last updated`` for document (#11164) 2025-02-03 22:28:47 -05:00
requirements.txt Add ``last updated`` for document (#11164) 2025-02-03 22:28:47 -05:00