rust-lang / rust-lang/docs.rs

Remove template code duplication

Open
#955 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

A-frontend C-technical-debt E-easy P-low
Dominant language
Rust
Stars
1.2k
Forks
232
Avg merge
11h 35m
Merged PRs (30d)
60

Description

There's some code duplication in templates that's really annoying me

crate/details.html => rustdoc/body.html

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the referenced sections in templates/crate/details.html (lines 14-115) and templates/rustdoc/body.html (lines 53-118) to identify the duplicated template code and how each file uses it. Done means the shared template behavior is preserved without keeping the reported duplication.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
frontend
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.