Skip to content

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented Sep 15, 2025

This adds the ToUrlPath helper trait to convert a Path to a path suitable for use in HTML (replacing normalize_path).

This also fixes a minor bug where on Windows the next/prev links were using a double forward slash. I don't think this is possible, since chapter links are derived from the summary, but I'm noting just in case. It's also not too much of an issue since double slashes are normally just treated as a single.

@rustbot rustbot added the S-waiting-on-review Status: waiting on a review label Sep 15, 2025
@ehuss ehuss enabled auto-merge September 15, 2025 14:34
@ehuss ehuss disabled auto-merge September 15, 2025 14:39
This adds the `ToUrlPath` helper trait to convert a Path to a path
suitable for use in HTML (replacing `normalize_path`).

This also fixes a minor bug where on Windows the next/prev links were
using a double forward slash. I don't think this is possible, since
chapter links are derived from the summary, but I'm noting just in case.
It's also not too much of an issue since double slashes are normally
just treated as a single.
@ehuss ehuss enabled auto-merge September 15, 2025 14:44
@ehuss ehuss added this pull request to the merge queue Sep 15, 2025
@ehuss ehuss added the Breaking Change This would require a SemVer breaking change label Sep 15, 2025
Merged via the queue into rust-lang:master with commit 1daa650 Sep 15, 2025
14 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: waiting on a review label Sep 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Breaking Change This would require a SemVer breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants