-
Notifications
You must be signed in to change notification settings - Fork 25
feat: Add Renderers for Yields #402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #402 +/- ##
==========================================
- Coverage 88.86% 88.75% -0.11%
==========================================
Files 40 40
Lines 3027 3033 +6
==========================================
+ Hits 2690 2692 +2
- Misses 337 341 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Thanks so much for adding this! I'm dumping the numpydoc yields spec below, just so I can quickly reference:
|
|
This seems pretty straightforward, and should be quick to merge! Would you mind adding a simple test? I think it'd be okay to just duplicate this returns test for now. (I'm always happy to swing in and add the test if useful :) edit: I think the CI for doc build will always fail, since it's an external PR. I can fix separate from this PR 😓. |
Have added testcases for Numpy and Google style docstrings with |
|
Hi @machow @Lawrence-Godfrey - is this still planned? We're also running into this issue and the fix would be great to have. |
|
Hey @machow, any updates on this? Would be great to get it in. Let me know if there's something I need to do here. |

Should solve #338
quartodocversion: 0.11.1Problem
Currently if I have a
Yields:section in a function, e.g.,I get the following error:
Solution
Adding renderers in
md_renderer.pyforDocstringSectionYieldsandDocstringSectionYields(basically exactly the same renders forReturns) everything renders nicely.Seems to work with
parser: numpytoo.Also seems to handle
interlinkscorrectly as far as I can tell.