Sphinx 1.2.3与rst2pd集成

2024-04-28 16:14:43 发布

您现在位置:Python中文网/ 问答频道 /正文

我在windows机器上安装了Python和Sphinx。我从here开始学习本教程,有几件事我不清楚:

下面的文字是来自教程的一个参考,对我来说没有意义,我猜测这就是为什么我不能创建PDF文件。在

Again in the conf.py file, add the below content at the end. Change the pdf_documents parameter according your project (index filename, pdf file name, document title on first page, and the author name)

基本上,我从github下载了rst2pdf库,并将其提取到下载文件夹中,然后从那里执行:

C:\Users\Luyando.Siko\Downloads\rst2pdf-master\rst2pdf-master>python setup.py install

我遇到了很多问题,不知道该不该担心。这是正确的方式让rst2pdf安装到我的斯芬克斯开始吗?有人能给我解释一下作者在这篇文章中的意思吗。在

提前谢谢


Tags: thenamepymaster机器herepdfwindows
1条回答
网友
1楼 · 发布于 2024-04-28 16:14:43

Again in the conf.py file, add the below content at the end. Change the pdf_documents parameter according your project (index filename, pdf file name, document title on first page, and the author name)

基本上,这意味着你复制了大量的PDF选项(从以下开始: # Options for PDF output - etc. )放入conf.py文件的底部。在

然后,您可以修改这些配置设置以适合您的项目。以他们的例子:

pdf_documents = [
('index', u'EMSDocumentation', u'EMS Documentation', u'Thyag Sundaramoorthy'),
]

index.rst开始,然后将其转换为EMSDocumentation.pdf,名为{},作者为Thyag Sundaramoorthy。在

相关问题 更多 >