如何以Texinfo信息格式获取Python文档? [英] How do you get Python documentation in Texinfo Info format?

查看:138
本文介绍了如何以Texinfo信息格式获取Python文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从Python 2.6起,文档似乎在新的 reStructuredText 格式,并且似乎很容易构建一个 Texinfo Info 文件开箱即可。

Since Python 2.6, it seems the documentation is in the new reStructuredText format, and it doesn't seem very easy to build a Texinfo Info file out of the box anymore.

我是一个Emacs瘾君子,更喜欢我在Info中安装的文档。

I'm an Emacs addict and prefer my documentation installed in Info.

有没有人拥有Texinfo格式的Python 2.6或更高版本的文档?你是怎么转换的?或者,在那里有一个维护的建设吗?

Does anyone have Python 2.6 or later docs in Texinfo format? How did you convert them? Or, is there a maintained build somewhere out there?

我知道我可以使用w3m或 haddoc 查看html文档 - 我真的想要他们在信息。

I know I can use w3m or haddoc to view the html docs - I really want them in Info.

我玩过 Pandoc ,但经过一些小的实验,似乎并没有很好地处理文档之间的链接,而我的更大的实验 - 全部运行文件夹在一起,看看会发生什么 - 自从我开始以来,还有两天的时间仍在紧张!

I've played with Pandoc but after a few small experiments it doesn't seem to deal well with links between documents, and my larger experiment - running it across all docs cat'ed together to see what happens - is still chugging along two days since I started it!

在下面突出显示两个答案,因为SO不会允许我接受两个答案:

Highlighting two answers below, because SO won't allow me to accept both answers:


  • @ wilfred-hughes:从MELPA安装是将预构建信息导入Emacs的最快方式

  • @alioth :建立自己 loo ks喜欢比2009年我问这个问题要容易得多。

  • @wilfred-hughes: Installing from MELPA is the quickest way to get pre-build info into Emacs
  • @alioth: Building it yourself looks like it's a lot easier than when I asked this question in 2009

推荐答案

Python文档打包为texinfo文件

如果您使用Emacs与MELPA,您可以使用 Mx package-install python-info

If you're using Emacs with MELPA, you can simply install this with M-x package-install python-info.

这篇关于如何以Texinfo信息格式获取Python文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆