leanprover / leanprover/reference-manual
Top-level parts with no chapter number appear as "null" in search
Nobody has claimed this yet.
- Dominant language
- Lean
- Stars
- 129
- Forks
- 67
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 16
Description
Searching for "Type System" yields "4. The Type System" in the pop-up autocomplete as expected.
Searching for "null" yields several chapters that (intentionally) don't have chapter numbers, but they stringify as, e.g. "null Release Notes".
"null" should not produce these search results, and searching for "Release Notes" should suggest "Release Notes" rather than "null Release Notes".
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in the reference manual's search autocomplete: search for "null", "Release Notes", and "Type System". Trace how top-level parts without chapter numbers are converted into suggestion labels and verify the resulting suggestions no longer include a literal "null" while numbered chapters remain unchanged.
Written by the indexing model from the issue text.
Assessment
- Domain
- documentation, search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100