Skip to content

1010code/sphinx-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reStructuredText(RST、ReST或reST)是一種用於文字資料的檔案格式,主要用於Python 程式語言社群的技術文件。 reStructuredText. reStructuredText logo. 副檔名 .rst.

Sphinx

Sphinx是一個功能強大的文件產生器,具有許多用於編寫技術文件的強大功能,包括:產生網頁,可列印的PDF,電子閱讀器的文檔(ePub),以及更多來自相同來源的文檔。可以使用reStructuredText或Markdown 編寫文檔。

安裝相依套件

使用pip安裝軟體包

  • Sphinx:用於生成專案的技術文檔。
  • sphinx_rtd_theme:一個專為 Read the Docs 設計的乾淨主題。
  • myst_parser:允許在 Sphinx 中使用 Markdown 格式文檔的解析器。
pip install sphinx sphinx_rtd_theme myst_parser

建立專案

mkdir wiki
cd wiki
sphinx-quickstart

編譯

make clean
make html

markdown語法編寫

pip install myst_parser

Then in your conf.py:

extensions = ['myst_parser']

輸出PDF

參考

Reference

reStructuredText(RST、ReST或reST)是一種用於文字資料的檔案格式,主要用於Python 程式語言社群的技術文件。 reStructuredText. reStructuredText logo. 副檔名 .rst.

Sphinx

Sphinx是一個功能強大的文件產生器,具有許多用於編寫技術文件的強大功能,包括:產生網頁,可列印的PDF,電子閱讀器的文檔(ePub),以及更多來自相同來源的文檔。可以使用reStructuredText或Markdown 編寫文檔。

安裝相依套件

使用pip安裝軟體包

pip install sphinx sphinx - autobuild sphinx_rtd_theme

建立專案

mkdir wiki
cd wiki
sphinx-quickstart

編譯

make clean
make html

markdown語法編寫

pip install myst_parser

Then in your conf.py:

extensions = ['myst_parser']

輸出PDF

參考

Reference

About

一步步教你如何利用 Sphinx 撰寫專業文檔並部署到 Read the Docs

Resources

Stars

Watchers

Forks

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy