rust-lang / rust-lang/docs.rs

Source view: add line number and per-line anchor

Open
#1,292 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-enhancement help-wanted
Dominant language
Rust
Stars
1.2k
Forks
232
Avg merge
11h 35m
Merged PRs (30d)
60

Description

It would be useful for the source view to show line numbers that can also be used as link targets, similar to what the typical source view of rustdoc/GitLab/GitHub does.

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 locating the docs.rs source-view implementation and reviewing how source lines are rendered. Implement visible line numbers with per-line link targets, following the behavior described for rustdoc, GitLab, and GitHub. Done means source-view lines can be addressed directly by links.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.