Lightning-AI / Lightning-AI/pytorch-lightning

Docs style renders unreadable yaml code snippets

Open
#19,011 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

docs
Dominant language
Python
Stars
31.4k
Forks
3.8k
Avg merge
6d 7h
Merged PRs (30d)
6

Description

### 📚 Documentation

When a code snippet is yaml, the keys are rendered in a dark blue with a black background, making it ugly and difficult to read. See for example [what-is-a-yaml-config-file](https://lightning.ai/docs/pytorch/stable/cli/lightning_cli_faq.html#what-is-a-yaml-config-file).

Screenshot 2023-11-16 at 05 43 42

cc @borda

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 with the linked rendered page at the what-is-a-yaml-config-file anchor and inspect the documentation styling or configuration responsible for YAML code blocks. Confirm the dark-blue-on-black rendering and update the relevant presentation so YAML keys are readable; done when the example displays with clear contrast.

Written by the indexing model from the issue text.

Assessment

Tech stack
yaml
Domain
documentation
Issue type
Bug
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.