Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
如何为 reStructuredText、Sphinx、ReadTheDocs 等设置自定义样式?
我想扩展使用的主题Sphinx and 阅读文档与我自己的自定义样式 为了让我的更改得以保留 最好的方法是什么 编辑 截至 2021 年 以下答案已过时 请使用html css files 在你的conf py而不是使用版本 1 8 之后的
css
pythonsphinx
reStructuredText
ReadTheDocs
在 Python 文档字符串中嵌入 reStructuredText
我希望在我的 Python 文档字符串中看到一些不错的语法突出显示和着色 它们 当然 是有效的 RESt 例如 A section an example some code rest of python code 我最接近的是我的 vim
python
Vim
pythonsphinx
reStructuredText
是否可以在 reST 中从小节级别开始自动进行节标题编号?
无论如何 有没有办法让 reST 开始仅对第二级的部分进行编号 我正在使用自动编号设置 section numbering 我想要的是输入 Section A Subsection A 1 Subsection A 2 Section B
reStructuredText
pelican
覆盖 sphinx/docutils 中的默认字段名称限制
我在用sphinx http sphinx pocoo org 用于为项目生成 html 文档 我广泛使用字段列表 http docutils sourceforge net docs user rst quickref html fiel
python
pythonsphinx
reStructuredText
docutils
Sphinx 将代码格式添加到 :ref:
我想向引用添加代码格式 如下所示 ref slots
python
pythonsphinx
reStructuredText
扩展第一个容器以输出额外的 div 属性
我开始将 pelican 与 reStructuredText 一起使用rst页面格式 我有自定义 javascript jQuery 的东西 我想用 div 属性来控制 比如data default tpl basename 具有嵌套内容
python
reStructuredText
docutils
pelican
是否可以在重构文本中以两栏样式书写?
我想使用重组文本写一篇研究论文 是否可以采用此类文档固有的两栏样式 我看了看规格 http docutils sourceforge net docs ref rst restructuredtext html但除了使用桌子这将是一个真正的
reStructuredText
如何在Sphinx Alabaster主题下编辑侧边栏
我有以下内容index rst file Know the cell population of your data Some content toctree maxdepth 2 Installation toctree maxdepth
python
pythonsphinx
sidebar
reStructuredText
toctree
RestructedText 文件中可能存在文本的私有部分吗?
我正在将公司的一些文档从 md 转换为 rst 以便在 ReadTheDocs com 中显示 其中一些文档中的内部部分不适合我们的客户使用 有没有办法标记这些部分 以便 Sphinx 不会将其呈现为 HTML Use the ifconf
conditionalstatements
pythonsphinx
reStructuredText
Python Sphinx 锚点在任意线上
如何使用 Sphinx 在 ReST 中的任意行设置锚点引用 为了更清楚 这里有一个例子 A title with an anchor some stuff 这将创建一个标题A title with an anchor并添加一个额外的on
python
Anchor
pythonsphinx
reStructuredText
在 Sphinx 中生成外部链接
我想链接到 Sphinx 文档中的某个 URL a href http some url blah a 我在文档中发现了类似的内容 http sphinx doc org ext extlinks html http sphinx doc
hyperlink
pythonsphinx
reStructuredText
Sphinx 从自定义代码参考中删除代码格式
我有以下课程 class A def x Do the thing class B A def x Do the thing but better than the py meth parent
python
pythonsphinx
reStructuredText
sphinx 构建时出现重复索引警告;如何包含文件而不对其内容建立索引?
我希望创建一个single html rst包含我所有的文件class method attribute etc 还可以将分类符号拆分到单独的页面中 e g single html rst single html include foo r
pythonsphinx
reStructuredText
如何在Python中解析重构文本?
是否有任何模块可以将重构文本解析为树模型 docutils 或 sphinx 可以做到这一点吗 我想扩展加雷斯 拉蒂 Gareth Latty 的回答 你可能想要的是解析器docutils parsers rst 是答案的一个很好的起点 但
python
Parsing
DOM
reStructuredText
如何在reStructuredText中定义csv表的高度?
我使用此代码从 csv 创建一个表 用于 readthedocs 中的文档 csv table Markram et al Model Network configuration file file config files Markram
reStructuredText
跳过 reStructuredText 中的标题级别
是否可以通过某种方式跳过 RestructedText 中的标题级别 例如 给定 PART Chapter Section Subsection Subsubsection Paragraph Another section Another
pythonsphinx
reStructuredText
heading
在 reStructuredText 中格式化链接中的文本
如何格式化 reStructuredText 中指定链接内的文本 具体来说 我希望从我的第一个代码生成以下 HTML a href http docs python org library optparse html a
pythonsphinx
reStructuredText
Sphinx 内联包括
我想使用 include 函数内联 但只有当我用两行新行与前面的文本分开时 我才能让它实际包含我想要的文件 在有人问之前 我想包含的文件是一个协议号 所以不 它根本不会从新行中受益 我希望能够轻松更改它 以便我可以在文档的多个位置使用它 我
pythonsphinx
reStructuredText
Sphinx 出现“意外的章节标题”——是 numpy 的问题吗?
跑步时 sphinx build html in my doc 目录中 我得到以下输出 sphinx build html Running Sphinx v0 6 4 No builder selected using default ht
python
NumPy
pythonsphinx
reStructuredText
Sphinx:对不同的输出格式使用不同的指令
假设您有一个 reStructuredText 文档 并希望使用 Sphinx 2 x 将其导出为两种格式 HTML 和 PDF 您想在这两种格式中放入一些略有不同的内容 例如 文本 我是HTML 出现在 HTML 版本中 而 我是PDF
pythonsphinx
reStructuredText
rst2pdf
«
1
2
3
4
5
»