Sphinx (文檔生成器)

SphinxPython社區編寫和使用的文檔生成器。它是用Python編寫的,也可以在其他環境中使用。

Sphinx
開發者Georg Brandl
首次發布2008年3月21日 (2008-03-21)
當前版本
  • 7.3.7 (2024年4月19日;穩定版本)[1]
編輯維基數據鏈接
源代碼庫 編輯維基數據鏈接
編程語言Python
操作系統跨平台
類型文檔生成器
許可協議BSD許可證
網站sphinx-doc.org

目的和功能

編輯

Sphinx將reStructuredText文件轉換為HTML網站和其他格式,包括PDFEPUB、Texinfo和man

reStructuredText是可擴展的,Sphinx通過許多擴展來利用其可擴展性 — 用於從源代碼自動生成文檔、編寫數學符號或突出顯示源代碼等。

歷史和使用

編輯

2008年3月21日,發布了第一個公共版本0.1.61611。[3]它是為Python項目的文檔開發的,也已得到了廣泛的應用。[4]

自2008年Sphinx被引入以來,已經被許多其他重要的Python項目採用,包括Bazaar、SQLAlchemy、MayaVi、SageMathSciPyDjangoPylons。它還用於Blender用戶手冊[5]和Python API文檔。[6]

2010年,Eric Holscher宣布[7]創建Read the Docs項目,作為使軟件文檔維護更容易的努力的一部分。Read the Docs可以在每次提交之後自動構建和上傳Sphinx文檔。

Linux內核

編輯

Linux內核的文檔子系統在2016年發生了變化。從4.7開發周期開始,文檔開始切換到使用Sphinx。[8]

另請參閱

編輯

參考文獻

編輯
  1. ^ Release 7.3.7. 2024年4月19日 [2024年4月25日]. 
  2. ^ Changes in Sphinx. [2018-12-07]. (原始內容存檔於2015-12-26). 
  3. ^ Sphinx is released! » And now for something completely Pythonic.... And now for something completely Pythonic... Georg Brandl. [2011-04-03]. (原始內容存檔於2012-03-22). 
  4. ^ About these documents — Python v2.7.1 documentation. Python documentation. Python Software Foundation. [2011-04-03]. (原始內容存檔於2012-10-25). 
  5. ^ Blender User Manual. Blender Wiki. Blender Foundation. [2018-12-07]. (原始內容存檔於2016-08-26). 
  6. ^ Dev:2.5/Py/API/Generating API Reference - BlenderWiki!. Blender Foundation. Blender Foundation. [2018-12-07]. (原始內容存檔於2013-01-26). 
  7. ^ Announcing Read The Docs. Python Software Foundation News. Eric Holscher. [2015-02-15]. (原始內容存檔於2013-01-26). 
  8. ^ Kernel documentation update. LWN.net. 2016-11-02 [2018-12-07]. (原始內容存檔於2018-11-23). 

外部連結

編輯