NixOS / NixOS/nix.dev

Add tooltips from devenv

Open
#710 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

site
Dominant language
Nix
Stars
4k
Forks
339
Avg merge
2d 11h
Merged PRs (30d)
7

Description

devenv has a really nice interactive tooltip feature for code blocks, allowing the reader to click a button at the end of a line to reveal a message with additional context.

devenv

This might be nice to have in nix.dev also.

My main concern was how to integrate this feature in a way where non-Javascript web clients can still see that information, but it renders the list of just fine. Here's an example from the eww browser.

devenv-eww

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

No repository files or tests are named. Start by locating nix.dev's code-block rendering entry point, then compare it with the linked devenv tooltip behavior. Done means the added context is available through interactive tooltips while remaining visible to non-JavaScript clients.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.