【问题标题】:Documentation main page like in Python doc or Sphinx doc?文档主页,例如 Python 文档或 Sphinx 文档?
【发布时间】:2013-11-28 00:35:20
【问题描述】:

我试图获得在 Python 和 Sphinx 文档主页上获得的效果。我的意思是目录结构。 toctree 是否有任何关键字可以获得类似的效果,或者我必须手动执行此操作?我试图在文档中找到一些东西,但没有成功,遗憾的是 Sphinx 文档的主页没有提供 rst 文件的来源。

有什么想法吗?

这里是Sphinx doc main page

我需要 DOCUMENTATION 部分的格式效果,其中包含第一步、搜索页面、内容和一般索引等成员。

【问题讨论】:

    标签: python documentation python-sphinx


    【解决方案1】:

    Sphinx 文档start page 不是从 reST 文件生成的;它是从Jinja templates 构建的。主模板为index.html。使用继承:index.html 扩展layout.html,而后者又扩展basic/layout.html

    为了获得所需的“格式效果”,您需要查看主题和模板:

    【讨论】:

      猜你喜欢
      • 2021-12-25
      • 2011-07-16
      • 1970-01-01
      • 1970-01-01
      • 2012-10-31
      • 1970-01-01
      • 1970-01-01
      • 2013-09-28
      相关资源
      最近更新 更多