Skip to content

[Migration tooling] Admonitions #106

Closed

Description

@bmorelli25

Summary

  • Supported admonitions in Asciidoc: NOTE, TIP, IMPORTANT, CAUTION, WARNING
  • Supported admonitions in V3: attention, caution, note, tip

Some context in #3.

To do

Either map existing admonitions to new admonitions, or refine the list of supported admonitions.

Conversion output

```{admonition} '#{title}'
:class: important

#{content}
```

Activity

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

    @Mpdreamz
    Member

    We explicitly don't/won't support MYST syntax which directly influences HTML.

    So we never use :class: to set the admonition type or influence any other directive for that matter.

    We also explicitly don't support the open {admonition} and require the type to be specified as part of the directive name

    ```{note}
    ```
    
    ```{caution}
    ```
    
    ```{tip}
    ```
    
    ```{attention}
    ```

    Are the supported admonitions, adding support for others is relatively straightforward if needed.

  3. bmorelli25 commented on Dec 17, 2024

    @bmorelli25
    MemberAuthor

    Currently, admonitions are collapsed by default. We need to change the default behavior to be non-collapsible and open by default.

  4. Mpdreamz commented on Dec 18, 2024

    @Mpdreamz
    Member

    Eek, that's a regression I introduced yesterday. Now the absence of :open: is parsed correctly again @bmorelli25

  5. bmorelli25 commented on Dec 19, 2024

    @bmorelli25
    MemberAuthor

    Supported admonitions should be Note, Warning, Important, and Tip. We currently support note, caution, tip, and attention. Note and Tip are okay as-is. Caution (yellow) should be renamed to Warning. Attention (red) should be renamed to Important.

  6. added a commit that references this issue on Jan 5, 2025
  7. bmorelli25 commented on Jan 10, 2025

    @bmorelli25
    MemberAuthor

    All bugs are fixed and admonitions look good in migration script 👍

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

    authoring

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions