Skip to content

[Discuss] Inline admonitions #108

Closed as not planned
Closed as not planned

Description

@bmorelli25

Summary

You can find an example of an inline admonition in this page:

Data set quality | Elastic Observability [8.17] | Elastic

The text [beta] on top of the page is an inline admonition. If you have over it, you will see a tooltip-style box. There is no equivalent functionality in MyST, so for now we are converting it an admonition of type ‘important'.

```{admonition} <title>
:class: important
<text>
```

To do

Activity

  1. added
    authoring
    on Dec 17, 2024
  2. Mpdreamz commented on Dec 17, 2024

    @Mpdreamz
    Member

    I don't think we should support this for reasons mentioned here: #94 (comment)

  3. bmorelli25 commented on Jan 10, 2025

    @bmorelli25
    MemberAuthor

    This decision to be validated during migration. Added as an open question to #160.

  4. bmorelli25 commented on Jan 12, 2025

    @bmorelli25
    MemberAuthor

    From @siamakp-elastic in regards to inline admonitions in code callouts:

    Look at this page:
    https://www.elastic.co/guide/en/observability/current/apm-open-telemetry-direct.html
    The callout #8 has an inline admonition preview. I used to render them ('beta', 'preview', etc) as block admonitions. But admonition won't work in the callout case above. I've changed it to be just the title in the brackets: [preview].
    That means that the documents that have an inline beta inline admonition, will just show [beta] without any more information. Note that the Asciidoc inline admonition acts like a hover tooltip.

  5. changed the title [-][Migration tooling] Inline admonition[/-] [+][Discuss] Inline admonitions[/+] on Jan 13, 2025
  6. added
    question
    on Jan 13, 2025
  7. charlotte-hoblik commented on Feb 13, 2025

    @charlotte-hoblik
    Contributor

    I came across a couple of inline admonitions inside table cells, as shown in the screenshot. It is tricky to replace them using callouts or prose when only a few rows are marked in the table.

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    authoringquestion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions