推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
013231
V2EX  ›  Python

pydoc生成的網頁着實難看, 有没有功能類似但更加美觀的替代品?

  •  
  •   013231 · Oct 20, 2012 · 4133 views
    This topic created in 4961 days ago, the information mentioned may be changed or developed.
    6 replies    1970-01-01 08:00:00 +08:00
    dingstyle
        1
    dingstyle  
       Oct 20, 2012
    sphinx
    ratazzi
        2
    ratazzi  
       Oct 20, 2012   ❤️ 1
    sphinx 然后找个好看的 theme,比如:
    https://github.com/lepture/flask-sphinx-themes
    013231
        3
    013231  
    OP
       Oct 20, 2012
    @dingstyle
    @ratazzi
    剛剛看了下教程, 雖說sphinx也可以自動生成文档, 但比起pydoc還是麻煩的多呀.
    `pydoc -p port`就可以看文档了(我只是爲了看文档), sphinx生成文档前還要各種配置. 有更簡單的方案嗎?
    lowstz
        4
    lowstz  
       Oct 20, 2012
    直接pydoc module_name 像man手册一样看不行吗?
    013231
        5
    013231  
    OP
       Oct 20, 2012
    @lowstz 跳轉没有在網頁裏點鏈接方便.
    dingstyle
        6
    dingstyle  
       Oct 20, 2012   ❤️ 1
    @013231 自动生成的话可以看一下sphinx-apidoc:
    http://sphinx.pocoo.org/man/sphinx-apidoc.html?highlight=apidoc
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5211 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 66ms · UTC 06:01 · PVG 14:01 · LAX 23:01 · JFK 02:01
    ♥ Do have faith in what you're doing.