[英]Why sphinx does not recognize some part of docstring
我想用 sphinx 來記錄一個 django 項目。 使用sphinx.ext.autodoc
時一切正常。 但是我遇到了以下問題。 無法識別Parameters
和Returns
下的文檔字符串。 請提供任何幫助!
class CampaignNamingTool(models.Model):
"""
The goal of Campaign Naming Tool is to help account mangers
to respect campaigns nomenclature and thus avoid bugs or
missing campaigns. Because campaigns are case sensitives in
the workflow process. So every bad named or misnamed campaign
are ignored and it won't be displayed in the users insertions orders.
Plase use this formular to create your first campaign.
Parameters:
----------
user : owner or in charge of the campaign.
year, month : year and month when launching campaign online.
advertiser : advertiser of the campaign.
name : name of the campaign.
device : device the campaign must be served (Desktop, Mobile, tablette).
type_of_format : format that campaign must be served (IAB, Video, Habillage, etc)
kpi : KPI of the campaign (CPM, CPC, CPV, CPA, etc)
Returns:
-------
An Insertion Order object with the concatenation of all these parameters
"""
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.