-
Notifications
You must be signed in to change notification settings - Fork 603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support relative URLs from repo-subdirectory packages #3973
Conversation
Confirmed things worked with a repo called Reproed with publishing innercrate via
and double checked the backfill as well with
|
Going to remove any work around admin::render_readmes from this diff in favor of #4095. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nipunn1313 sorry for letting this wait for so long. I misunderstood that this was ready for review. 🙈
looks very good though. nice work! ❤️
I've rebased and resolved the conflict, otherwise this is identical to the original commits :) @bors r+ |
📌 Commit 86d852f has been approved by |
☀️ Test successful - checks-actions |
Hooray! Thanks @Turbo87 |
When rendering a readme file, <https://crates.io> [rewrites][3] image URLs to point to GitHub raw URLs (e.g., [1]). However, this doesn't work as intended if the referenced file is a symbolic link, for which the raw URL will just return the link path instead of the referenced file's contents. Consequently, `logo-large-bg.svg` fails to load on [the `r3` package description][2]. This commit addresses this problem by converting `src/r3/doc/logo-large- bg.svg` to a normal file. It's unavoidable to have two copies of this file because `doc/logo-large-bg.svg` also has to be a real file for `README.md` to render correctly [on GitHub][4]. [1]: https://github.com/r3-os/r3/raw/HEAD/src/r3/doc/logo-large-bg.svg [2]: https://crates.io/crates/r3 [3]: rust-lang/crates.io#3973 [4]: https://github.com/r3-os/r3/blob/%F0%9F%A6%86/README.md
Extract
.cargo_vcs_info.json
from the tarball and use it to determine the path in vcs.Support for this was added to cargo with
rust-lang/cargo#9866
Fixes #3484
(note that support for this in admin::render_readmes not yet exists - would come with #4095)
Depends on #4097 (Because of community/community#4477 - github ends up rendering the diffs together. Go to the commits tab and just look at the most recent commits to review).