Overriding the default field name limit in sphinx/docutils

前端 未结 3 1625
别跟我提以往
别跟我提以往 2021-02-05 22:26

I am using sphinx for generating html documentation for a project. I make extensive use of field lists.

When generating html, each label/value pair is rendered as a sing

3条回答
  •  既然无缘
    2021-02-05 23:10

    I think your approach doesn't work because sphinx uses its own html writer.

    However I think it should work, if you adapt the style for field_name. I (once) used a custom css file with

    .field-name {
        white-space: nowrap;
    }
    

    or set it to a fixed width.

提交回复
热议问题