Skip to content

False positive about link fails? #566

@leemthompo

Description

@leemthompo

Describe the bug

@craigtaverner has a link like this.

[`AVG`](../../esql-functions-operators.md#esql-avg)

where [esql-avg] is defined in a snippet file

  1. The link works
  2. Build errors with

:: fail: Documentation.Builder.Log[0] esql-avg does not exist in esql-functions-operators.md.
(/Users/craig/dev/elastic/asciidocalypse/docs/elasticsearch/docs/reference/query-languages/esql/_snippets/lists/aggregation-functions.md:1)

But clicking on AVG in either the dropdown list, or the list further down the page, works fine. So the links work. No idea why it prints this error.

Expected behavior

Should either fail with broken link or not fail given link works.

Steps to reproduce

  1. Create a snippet file with a custom anchor
  2. Include that in a parent file
  3. Link to that custom anchor from another page

Tooling

  • docs-builder
  • migration tooling
  • I'm not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions