Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ticket
DOP-3211
Notes
Creating a
reference
that doesn't precede a heading and then attempts toreference
that target without providing a label does not emit an error. It successfully builds, but theref
has no children to render, leaving the user with a visually empty spot where a link should be.Through my investigation I found many instances of this stemming from the one bug report. As many as eleven invisible refs in
docs-mongodb-internal
alone. This error will help content writers to identify before production.Examples
Current site
Documentation of JavaScript methods and helpers in the legacy mongo shell.
there should be a link to the mongo legacy shell. This is one such example of an invisible ref.Three in quick succession on current docs site
A JavaScript function that associates
map
,reduce
, andout
- you will see "See for more information"The refs without labels that are causing this are seen here, here, and here.
And the target refs they are pointing to (which do not have headers directly below) are seen in a row here.
They all three point to starting lines in the same file, however none of these directly precede a header.
A/C:
:ref:
s that cannot be rendered due to a lack of label emit an error in the parser log