Skip to content

pydantic example formatting: Use generic nodes rather than raw html#52

Merged
t20100 merged 2 commits into
mainfrom
generic-examples-code
Jun 4, 2026
Merged

pydantic example formatting: Use generic nodes rather than raw html#52
t20100 merged 2 commits into
mainfrom
generic-examples-code

Conversation

@t20100

@t20100 t20100 commented Jun 4, 2026

Copy link
Copy Markdown
Member

This PR makes use of literal and literal_block rather than raw to render pydantic examples.
This leads to a poorer display but supports all formats.

Follow-up of #51 (comment)

image

@t20100 t20100 requested review from loichuder and payno June 4, 2026 08:48
@codecov

codecov Bot commented Jun 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@t20100 t20100 force-pushed the generic-examples-code branch from 737658b to 3f26c4d Compare June 4, 2026 08:59
@t20100 t20100 marked this pull request as draft June 4, 2026 09:13
@t20100 t20100 force-pushed the generic-examples-code branch from 5b18d96 to 01cddf3 Compare June 4, 2026 11:20
@t20100

t20100 commented Jun 4, 2026

Copy link
Copy Markdown
Member Author

Almost back to what it was with css tweaks:

image

@t20100 t20100 requested a review from loichuder June 4, 2026 11:23
@t20100 t20100 marked this pull request as ready for review June 4, 2026 11:30
@t20100

t20100 commented Jun 4, 2026

Copy link
Copy Markdown
Member Author

added examples in the output:

image

@t20100 t20100 force-pushed the generic-examples-code branch from c0d4929 to 104ffa4 Compare June 4, 2026 11:47
@t20100 t20100 merged commit ea5c2cc into main Jun 4, 2026
8 checks passed
@t20100 t20100 deleted the generic-examples-code branch June 4, 2026 11:53
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.

2 participants