V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2012-10-20 13:53:52 +08:00 · 3318 次点击
    这是一个创建于 4199 天前的主题,其中的信息可能已经有所发展或是发生改变。
    6 条回复    1970-01-01 08:00:00 +08:00
    dingstyle
        1
    dingstyle  
       2012-10-20 14:07:21 +08:00
    sphinx
    ratazzi
        2
    ratazzi  
       2012-10-20 14:08:51 +08:00   ❤️ 1
    sphinx 然后找个好看的 theme,比如:
    https://github.com/lepture/flask-sphinx-themes
    013231
        3
    013231  
    OP
       2012-10-20 14:36:32 +08:00
    @dingstyle
    @ratazzi
    剛剛看了下教程, 雖說sphinx也可以自動生成文档, 但比起pydoc還是麻煩的多呀.
    `pydoc -p port`就可以看文档了(我只是爲了看文档), sphinx生成文档前還要各種配置. 有更簡單的方案嗎?
    lowstz
        4
    lowstz  
       2012-10-20 14:47:21 +08:00
    直接pydoc module_name 像man手册一样看不行吗?
    013231
        5
    013231  
    OP
       2012-10-20 14:53:56 +08:00
    @lowstz 跳轉没有在網頁裏點鏈接方便.
    dingstyle
        6
    dingstyle  
       2012-10-20 19:09:52 +08:00   ❤️ 1
    @013231 自动生成的话可以看一下sphinx-apidoc:
    http://sphinx.pocoo.org/man/sphinx-apidoc.html?highlight=apidoc
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2746 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 13:00 · PVG 21:00 · LAX 06:00 · JFK 09:00
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.