Commit 8428326
committed
docs(argparse_exemplar): Add doctest to _create_example_section
Add working doctests demonstrating:
- Basic section creation from definition nodes
- Page prefix for unique section IDs across docs
- Category-prefixed examples with descriptive IDs/titles
This helper function creates docutils section nodes and is
straightforward to test, unlike complex visitor traversals.1 parent 40abbf3 commit 8428326
1 file changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
519 | 546 | | |
520 | 547 | | |
521 | 548 | | |
| |||
0 commit comments