如何增加狮身人面像中代码样本的字体尺寸?
当我想在Sphinx中显示一些带有固定宽度字体的字体时,我将其放置在两个倒tick之间(“代码示例的内联标记”): The class ``Test1`` is pure virtual…
如何在GitHub上托管基于狮身狮身来临的文档的多个版本?
当使用github页面托管狮身人面像文档时,可能需要为不同分支或代码的标签托管多个版本的同一文档的多个版本。 但是, sphinxcontrib-multiversion 和 …
无法导入扩展Sphinx_panels
尝试使用 sphinx_panels 在rst(ComplactucturedText)中,我正在面临错误无法导入扩展sphinx_panels 。 我添加了 conf.py文件中的扩展名如 “ https:…
rinohtype/spinx-如何在样式表中使用python变量
我使用sphinx生成HTML和PDF文档,并直到现在使用乳胶来生成PDF,但现在正在寻找Rinohtype的交换。 我正在考虑设置一些自定义的标题和页脚,但想在其中…
为什么我无法使用Sphinx Python软件包打印出docstring?
我正在使用狮身人面像记录我的功能。但是,它没有阅读我的Doc字符串,以便使用装饰器读取功能。 sphinx只需用<魔术替换函数doc字符串。魔术在这里…
编译Kedro Build-docs后,Kedro文档并未显示所有功能
我尝试使用 kedro build-docs 命令来记录我的项目。 . ├── docs └── src ├── setup.py ├── tests ├── │ ├── __init__.py │ ├─…
Sphinx覆盖扩展名的应用程序配置值
我安装的Sphinx扩展名之一的配置名为:drawio_binary_path 在扩展中,有一个值集。 如果我尝试在我的conf.py中覆盖它: app.add_config_value(“ dra…
Sphinx RTD:更改输出文件夹名称
我想将sphinx/read-the-docs 更改为html output 文件夹名称而不是'docs'而不是'html'。有办法这样做吗?我一直在浏览conf.py文档,唯一看起来很接近的…
Sphinx 自动摘要:数据类继承
以下代码使Sphinx AutoSummary失败: @dataclasses.dataclass class Foo: bar: int class FooChild(Foo): pass 我的autosummary模板( _templates/aut…
Sphinx / autodoc:如何交联到另一页上记录的函数
我正在使用 Sphinx 构建 Python 包的文档。 我有一个 API.rst 文件,其中列出了我的函数,如下所示: .. autofunction:: mymodule.foo.bar1 对于自动…
当 gettext_compact=False 时,sphinx gettext 与子目录中的文本域不匹配
我目前正在使用Python Sphinx进行一个复杂的文档项目。 我的下一步是实现国际化。 项目概述(简化): doc\ build\ # contains sphinx build output i…
sphinx画廊的正则表达式解释
我正在调试Sphinx Gallery Tooltip Generation,其中涉及以下代码: def extract_intro_and_title(filename, docstring): """Extract and clean the f…
在Sphinx中,使用sphinx.ext.autosummary时,如何排除基类成员?
我正在使用狮身人面像记录代码库DocString;在Python。我有这样的代码 - class foo(np.ndarray): def foo_func(): pass class bar(foo): def bar_func…