docstrings are inconsistent making Sphinx documentation not display properly

未關閉
#459 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
45/100
Issue 類型
文件
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
python
領域
documentation

研究方向

首先比較 azure-devops/azure/devops/v7_0/build/build_client.py(約第 14–18 行)中的 docstring 與 azure-devops/azure/devops/v7_0/build/models.py(約第 12–26 行)中的 docstring。建置 Sphinx 文件以識別格式錯誤,然後檢查受影響模組的 docstring,並確認文件可以成功編譯。

由索引模型根據 Issue 內容生成。

描述

Related to Issue: https://github.com/microsoft/azure-devops-python-api/issues/349

When using Sphinx to build documentation for this Python module, it appears that there are some modules that do not have appropriate spacing between the summary and the parameters docstrings causing Sphinx to not compile properly.

Some of the docstrings do not have spaces like:

image

https://github.com/microsoft/azure-devops-python-api/blob/b2d0009b2cc457452bc1f8c79b134de877680b06/azure-devops/azure/devops/v7_0/build/build_client.py#L14-L18

But the functional lines that display properly have space around the description, like:

image

https://github.com/microsoft/azure-devops-python-api/blob/b2d0009b2cc457452bc1f8c79b134de877680b06/azure-devops/azure/devops/v7_0/build/models.py#L12-L26

主要語言
Python
星號
684
分支
218
平均合併
8 天 10 小時
30 天內合併 PR
1

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

microsoft/azure-devops-python-api 的其他 Issue

查看 microsoft/azure-devops-python-api 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。