Skip to content

Commit

Permalink
Update docs for --publish-url to avoid duplication. (#8561)
Browse files Browse the repository at this point in the history
## Summary

These two sentences in the docs for `--publish-url` seem to basically be
duplicates:


https://github.com/astral-sh/uv/blob/3eda248ef5678fe07b5424fb4f256011800fbb15/crates/uv-cli/src/lib.rs#L4616-L4618

I found the first to be easier to read, so this commit removes the
second.

## Test Plan

No tests, change is docs-only.

---------

Co-authored-by: Zanie Blue <[email protected]>
  • Loading branch information
nathanjmcdougall and zanieb authored Oct 25, 2024
1 parent 374d4af commit d2cd09b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions crates/uv-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4614,8 +4614,6 @@ pub struct PublishArgs {
/// and index upload.
///
/// Defaults to PyPI's publish URL (<https://upload.pypi.org/legacy/>).
///
/// The default value is publish URL for PyPI (<https://upload.pypi.org/legacy/>).
#[arg(long, env = EnvVars::UV_PUBLISH_URL)]
pub publish_url: Option<Url>,

Expand Down
2 changes: 0 additions & 2 deletions docs/reference/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -7479,8 +7479,6 @@ uv publish [OPTIONS] [FILES]...

<p>Defaults to PyPI&#8217;s publish URL (&lt;https://upload.pypi.org/legacy/&gt;).</p>

<p>The default value is publish URL for PyPI (&lt;https://upload.pypi.org/legacy/&gt;).</p>

<p>May also be set with the <code>UV_PUBLISH_URL</code> environment variable.</p>
</dd><dt><code>--python-preference</code> <i>python-preference</i></dt><dd><p>Whether to prefer uv-managed or system Python installations.</p>

Expand Down

0 comments on commit d2cd09b

Please sign in to comment.