Skip to content

Commit

Permalink
PR #781 made some cosmetic changes, but this is a better fix. (#793)
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlatr committed May 10, 2024
1 parent cb36e03 commit 27f5d4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ This is the last major release to support Python 3.7.
* Make sure the line number coming from ast analysis has precedence over the line of a ``ivar`` field.
* Ensure that all docutils generated css classes have the ``rst-`` prefix, the base theme have been updated accordingly.
* Fix compatibility issue with docutils 0.21.x
* Transform annotations to use python 3.10 style: ``typing.Union[x ,y]`` -> ``x | y``; ``typing.Optional[x]`` -> ``x | None``; ``typing.List[x]`` -> ``list[x]``.
* Transform annotations to use python 3.10 style: ``typing.Union[x, y]`` -> ``x | y``; ``typing.Optional[x]`` -> ``x | None``; ``typing.List[x]`` -> ``list[x]``.
* Do not output useless parenthesis when colourizing subscripts.

pydoctor 23.9.1
Expand Down
7 changes: 4 additions & 3 deletions pydoctor/themes/base/apidocs.css
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ ul ul ul ul ul ul ul {

.fieldTable tr:not(.fieldStart) td:first-child,
.valueTable tr:not(.fieldStart) td:first-child{
padding: 3px 4px 3px 10px;
padding: 3px 4px 3px 15px;
}

.fieldTable tr td {
Expand All @@ -246,14 +246,15 @@ ul ul ul ul ul ul ul {

/* parameters names in parameters table */
.fieldTable tr td.fieldArgContainer > .fieldArg {
display: inline;
float: left;
margin-left: -5px;
}

/* parameters types (in parameters table) */
.fieldTable tr td.fieldArgContainer > code {
/* we don't want word break for the types because we already add <wbr> tags inside the type HTML, and that should suffice. */
word-break: normal;
display: inline-block;
display: inline;
flex-wrap: wrap;
}

Expand Down

0 comments on commit 27f5d4d

Please sign in to comment.