【问题标题】:Is it possible to have separate new lines for method definition sphinx docs是否可以为方法定义 sphinx 文档添加单独的新行
【发布时间】:2019-03-17 05:35:42
【问题描述】:

可以分开吗 方法定义的新行 输入参数 sphinx 文档 例如:

所以它看起来像:

lib.dashboards.post_all_dashboards(   # black line
         dashboards_location,         # blue line
         values,                      # ...
         values,                      # ...
         user,
         ...
)

【问题讨论】:

    标签: python python-sphinx


    【解决方案1】:

    您可以使用插入主题样式表的自定义 CSS 或使用以下内容覆盖它:

    dt em:nth-child(n+2)::before {
        content: " ";
        display: block;
    }
    

    它接近你想要的,但它不缩进 args。

    查看此帖子以获取how to customize a theme's CSS file

    【讨论】:

    • 您能帮我导航到哪里可以找到这个 css 文件吗?它是由make html 生成的文档的一部分吗?谢谢
    猜你喜欢
    • 1970-01-01
    • 2013-03-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-30
    • 1970-01-01
    • 2010-09-12
    相关资源
    最近更新 更多