Repository navigation
Simplify the codebase and fix display paths - #5
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A pass over the codebase to simplify architecture and code reuse, plus the fixes that turned up along the way. Each commit is one self-contained step.
Fixes
fix: show items under the paths rustdoc publishes them at):Universe::newnow derives the reader-facingstd::spelling the way rustdoc's HTML inlining does. It walks each crate's public namespace, follows named and glob re-exports across crates, and skips#[doc(no_inline)]. This replaces the hard-coded mirror list, which had started showingRcasstd::rcafter nightly moved it.MaybeUninitwas missing fromstd::mem.LangString::parsedoes. Unknown words mean another language, and hidden#lines are only stripped from Rust blocks.Refactors
kind.rs: one place that names and classifies item kinds.page.rs: the builder owns its sections, member rows share a singlepush_member, anddefault_expandedis gone.render.rs: link ids travel beside spans instead of being smuggled throughunderline_color. The syntax theme is derived fromDEFAULT_THEME, padding goes through onepad_to, and rules use a theme style.app.rs:current_mut(), a singleresize(w, h), and help as an overlay flag.main.rs: the status message is cleared insidehandle_key, and dead key arms are removed.format.rs: sharedpath,reference,returnsand parameter helpers.Tests
Tests now assert on page structure (targets, sections) rather than scraped text. Redundant tests are removed, and
text_ofcopies are replaced withLine::to_string().Other
chore: update dependencieschore: switch the default theme to Catppuccin MochaVerification
cargo test,cargo clippy --all-targets -- -D warningsandcargo fmt --checkpass on every step. The refactors were also checked by diffing rendered output before and after across every item in std/core/alloc:format.rs: byte-identical.render.rs: only wide-character padding changed.