Skip to content

Conversation

@gtjoseph
Copy link
Member

@gtjoseph gtjoseph commented Mar 11, 2024

Using admonitions for notes and warnings in the API documentation
resulted in bad formatting when used in parameter lists or enums.
Instead we now just leave them in-line and wrapped with
**Info: <text>** or **Warning: <text>**.

Resolves: #65

@gtjoseph gtjoseph force-pushed the main-fix-api-note branch from 554cff7 to 34ba763 Compare March 12, 2024 12:42
@gtjoseph gtjoseph changed the title main fix api note astxml2markdown.xslt: Change processing of "note" and "warning" Mar 12, 2024
@jcolp
Copy link
Member

jcolp commented Mar 12, 2024

I barely speak XSLT, does anyone else?

@gtjoseph gtjoseph force-pushed the main-fix-api-note branch 2 times, most recently from 7a9300a to b835b9d Compare March 12, 2024 19:28
@gtjoseph
Copy link
Member Author

gtjoseph commented Mar 13, 2024

@seanbright While I'm here... The "replaceable" elements are currently rendered as italic. Do you think maybe monospaced is better?

The filename parameter
instead of
The filename parameter

@gtjoseph gtjoseph force-pushed the main-fix-api-note branch from b835b9d to 879927f Compare March 13, 2024 16:52
@seanbright
Copy link
Contributor

I think <replaceable> is fine as italic as long as <literal> is monospaced

@gtjoseph
Copy link
Member Author

I think <replaceable> is fine as italic as long as <literal> is monospaced

<literal> is single-quoted currently... this is 'literal' text

Admonitions used inside lists were throwing off the list rendering
and making a mess.

* Changed to the pymarkdown-blocks style admonitions which
  use `/// <admonition>` and, more importantly, use a closing
  delimiter of `///`.
* Added blank lines before every list item to get around another
  issue where list indentation was getting reset.
* Fixed indentation in example blocks.

Resolves: asterisk#65
@gtjoseph gtjoseph force-pushed the main-fix-api-note branch from 879927f to f9dbef1 Compare March 13, 2024 17:26
@gtjoseph gtjoseph merged commit 494824a into asterisk:main Mar 13, 2024
@gtjoseph gtjoseph deleted the main-fix-api-note branch December 27, 2024 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Note parsing does not parse end note

3 participants