我正在使用pdoc3来生成我的项目文档。该项目由 2 个 py 模块组成:
- api.py
- 模型.py
数据结构在 model.py 中定义并在 api.py 中使用。
生成的 HTML 不会将函数参数生成为链接。
如何使 pdoc 生成函数 args(数据结构)作为链接?
==代码片段==
api.py
def create_user(auth: Auth, user: User) -> CreateUserApiCallResult:
"""
Create a User
"""
return create_users(auth, [user])
模型.py
@dataclass
class User:
email: str
inviteMessage: str
accessGroups: List[str]
profileData: ProfileData
生成的 HTML