mdn / mdn/rari

Annotate `learn-module-assessment` pages in sidebar

Open
#362 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

p1
Dominant language
Rust
Stars
57
Forks
47
Avg merge
1d 11h
Merged PRs (30d)
68

Description

In https://github.com/mdn/fred/issues/664, the Content team has requested to add an icon in the sidebar after "Test your skills" articles (page-type: learn-module-assessment).

In order to identify these sidebar items across locales, we need to annotate them in the sidebar HTML.

I would suggest to add data-page-type="learn-module-assessment" to these items (but only for this page type for now).

Contributor guide

Open the contributing guide

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 sidebar HTML generation and the handling of page-type: learn-module-assessment in the Rari source. Confirm how sidebar items are emitted across locales, then add the requested annotation only for this page type. Done means matching items include data-page-type="learn-module-assessment" and other sidebar items remain unchanged.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.