Skip to content

[Feature Request]: Inline applies_to annotations in headings #1574

@colleenmcginnis

Description

@colleenmcginnis

Prerequisites

  • I have searched existing issues to ensure this feature hasn't already been requested
  • I have tested using the latest version of docs-builder

What problem are you trying to solve?

In a recent PR, @efd6 added inline applies_to annotations to some headings, which rendered incorrectly in "On this page".

Image

Proposed Solution

I see a couple possible solutions:

  • Warn against using inline applies_to annotations in headings and point contributors to section annotations instead.
  • Allow docs contributors to use either an inline annotation or a section annotation with a heading, and stripping out the applies_to syntax from "On this page" when using inline annotations.
  • Change the placement of section applies_to annotations to be rendered next to the heading text so docs contributors don't try using inline annotations for style reasons (from @efd6: [the section annotation] is heavier on the page).

Examples and Research

No response

Alternative Solutions

No response

Additional Context

No response

How important is this feature to you?

Nice to have

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions