|
579 | 579 | | b | str | The b parameter. | _required_ | |
580 | 580 | ''' |
581 | 581 | # --- |
| 582 | +# name: test_render_full_numpydoc |
| 583 | + ''' |
| 584 | + # full_numpydoc_function { #quartodoc.tests.example_docstring_full.full_numpydoc_function } |
| 585 | + |
| 586 | + ```python |
| 587 | + tests.example_docstring_full.full_numpydoc_function( |
| 588 | + x, |
| 589 | + y=None, |
| 590 | + *args, |
| 591 | + option=False, |
| 592 | + **kwargs, |
| 593 | + ) |
| 594 | + ``` |
| 595 | + |
| 596 | + A one-line summary. |
| 597 | + |
| 598 | + An extended summary that provides more detail about what this |
| 599 | + function does. This demonstrates the full range of numpydoc |
| 600 | + sections that are supported. |
| 601 | + |
| 602 | + ## Parameters {.doc-section .doc-section-parameters} |
| 603 | + |
| 604 | + | Name | Type | Description | Default | |
| 605 | + |----------|--------|--------------------------------|------------| |
| 606 | + | x | int | The first parameter. | _required_ | |
| 607 | + | y | str | The second parameter. | `None` | |
| 608 | + | *args | float | Variable positional arguments. | `()` | |
| 609 | + | option | bool | A keyword-only parameter. | `False` | |
| 610 | + | **kwargs | dict | Variable keyword arguments. | `{}` | |
| 611 | + |
| 612 | + ## Returns {.doc-section .doc-section-returns} |
| 613 | + |
| 614 | + | Name | Type | Description | |
| 615 | + |--------|--------|------------------------------------------| |
| 616 | + | result | int | The computed result with name and type. | |
| 617 | + | | list | A secondary return value with only type. | |
| 618 | + |
| 619 | + ## Yields {.doc-section .doc-section-yields} |
| 620 | + |
| 621 | + | Name | Type | Description | |
| 622 | + |--------|--------|--------------------------| |
| 623 | + | value | str | Generated string values. | |
| 624 | + |
| 625 | + ## Raises {.doc-section .doc-section-raises} |
| 626 | + |
| 627 | + | Type | Description | |
| 628 | + |------------|-----------------------| |
| 629 | + | ValueError | If x is negative. | |
| 630 | + | TypeError | If y is not a string. | |
| 631 | + |
| 632 | + ## See Also {.doc-section .doc-section-see-also} |
| 633 | + |
| 634 | + other_function : Related functionality. |
| 635 | + module.another_function : Another related function. |
| 636 | + |
| 637 | + ## Notes {.doc-section .doc-section-notes} |
| 638 | + |
| 639 | + I am a note. |
| 640 | + |
| 641 | + ## References {.doc-section .doc-section-references} |
| 642 | + |
| 643 | + .. [1] Author Name, "Paper Title", Journal, 2024. TODO |
| 644 | + |
| 645 | + ## Examples {.doc-section .doc-section-examples} |
| 646 | + |
| 647 | + Basic usage: |
| 648 | + |
| 649 | + ```python |
| 650 | + >>> full_numpydoc_function(1, "test") |
| 651 | + (42, [1, 2, 3]) |
| 652 | + ``` |
| 653 | + |
| 654 | + With optional parameters: |
| 655 | + |
| 656 | + ```python |
| 657 | + >>> full_numpydoc_function(1, option=True) |
| 658 | + (42, []) |
| 659 | + ``` |
| 660 | + ''' |
| 661 | +# --- |
| 662 | +# name: test_render_full_numpydoc_description_list |
| 663 | + ''' |
| 664 | + # full_numpydoc_function { #quartodoc.tests.example_docstring_full.full_numpydoc_function } |
| 665 | + |
| 666 | + ```python |
| 667 | + tests.example_docstring_full.full_numpydoc_function( |
| 668 | + x, |
| 669 | + y=None, |
| 670 | + *args, |
| 671 | + option=False, |
| 672 | + **kwargs, |
| 673 | + ) |
| 674 | + ``` |
| 675 | + |
| 676 | + A one-line summary. |
| 677 | + |
| 678 | + An extended summary that provides more detail about what this |
| 679 | + function does. This demonstrates the full range of numpydoc |
| 680 | + sections that are supported. |
| 681 | + |
| 682 | + ## Parameters {.doc-section .doc-section-parameters} |
| 683 | + |
| 684 | + <code>[**x**]{.parameter-name} [:]{.parameter-annotation-sep} [int]{.parameter-annotation}</code> |
| 685 | + |
| 686 | + : The first parameter. |
| 687 | + |
| 688 | + <code>[**y**]{.parameter-name} [:]{.parameter-annotation-sep} [str]{.parameter-annotation} [ = ]{.parameter-default-sep} [None]{.parameter-default}</code> |
| 689 | + |
| 690 | + : The second parameter. |
| 691 | + |
| 692 | + <code>[***args**]{.parameter-name} [:]{.parameter-annotation-sep} [float]{.parameter-annotation} [ = ]{.parameter-default-sep} [()]{.parameter-default}</code> |
| 693 | + |
| 694 | + : Variable positional arguments. |
| 695 | + |
| 696 | + <code>[**option**]{.parameter-name} [:]{.parameter-annotation-sep} [bool]{.parameter-annotation} [ = ]{.parameter-default-sep} [False]{.parameter-default}</code> |
| 697 | + |
| 698 | + : A keyword-only parameter. |
| 699 | + |
| 700 | + <code>[****kwargs**]{.parameter-name} [:]{.parameter-annotation-sep} [dict]{.parameter-annotation} [ = ]{.parameter-default-sep} [{}]{.parameter-default}</code> |
| 701 | + |
| 702 | + : Variable keyword arguments. |
| 703 | + |
| 704 | + ## Returns {.doc-section .doc-section-returns} |
| 705 | + |
| 706 | + <code>[**result**]{.parameter-name} [:]{.parameter-annotation-sep} [int]{.parameter-annotation}</code> |
| 707 | + |
| 708 | + : The computed result with name and type. |
| 709 | + |
| 710 | + <code>[]{.parameter-name} [:]{.parameter-annotation-sep} [list]{.parameter-annotation}</code> |
| 711 | + |
| 712 | + : A secondary return value with only type. |
| 713 | + |
| 714 | + ## Yields {.doc-section .doc-section-yields} |
| 715 | + |
| 716 | + <code>[**value**]{.parameter-name} [:]{.parameter-annotation-sep} [str]{.parameter-annotation}</code> |
| 717 | + |
| 718 | + : Generated string values. |
| 719 | + |
| 720 | + ## Raises {.doc-section .doc-section-raises} |
| 721 | + |
| 722 | + <code>[ValueError]{.parameter-annotation}</code> |
| 723 | + |
| 724 | + : If x is negative. |
| 725 | + |
| 726 | + <code>[TypeError]{.parameter-annotation}</code> |
| 727 | + |
| 728 | + : If y is not a string. |
| 729 | + |
| 730 | + ## See Also {.doc-section .doc-section-see-also} |
| 731 | + |
| 732 | + other_function : Related functionality. |
| 733 | + module.another_function : Another related function. |
| 734 | + |
| 735 | + ## Notes {.doc-section .doc-section-notes} |
| 736 | + |
| 737 | + I am a note. |
| 738 | + |
| 739 | + ## References {.doc-section .doc-section-references} |
| 740 | + |
| 741 | + .. [1] Author Name, "Paper Title", Journal, 2024. TODO |
| 742 | + |
| 743 | + ## Examples {.doc-section .doc-section-examples} |
| 744 | + |
| 745 | + Basic usage: |
| 746 | + |
| 747 | + ```python |
| 748 | + >>> full_numpydoc_function(1, "test") |
| 749 | + (42, [1, 2, 3]) |
| 750 | + ``` |
| 751 | + |
| 752 | + With optional parameters: |
| 753 | + |
| 754 | + ```python |
| 755 | + >>> full_numpydoc_function(1, option=True) |
| 756 | + (42, []) |
| 757 | + ``` |
| 758 | + ''' |
| 759 | +# --- |
582 | 760 | # name: test_render_google_section_yields[int: A description.] |
583 | 761 | ''' |
584 | 762 | Code |
|
0 commit comments