pdoc3 / pdoc3/pdoc

Support Sphinx / reStructuredText / reST args format

Open
#110 2 comments 15 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue Hacktoberfest
Dominant language
Python
Stars
1.2k
Forks
146
PR merge metrics
No merged PRs in 30d

Description

def func(s, test):
    """
    Returns `True` if the string length is greater than the given integer.
    
    :param s: str
    :param test: int
    :return: bool
    """
    
    pass

This is default docstring style used in many editors.

Expected Behavior

Something like that:
image

Actual Behavior

image

Additional info
  • pdoc version: 0.6.3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the pdoc 0.6.3 output for the sample func docstring containing :param and :return fields. Trace how pdoc parses and renders that docstring, then verify that Sphinx/reStructuredText argument documentation appears as shown in the expected screenshot.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.