Skip to content

Commit

Permalink
docs: add CSS for nicer signatures
Browse files Browse the repository at this point in the history
The parameters of call signatures now each get their own line, making it
much more readable.
  • Loading branch information
rmnldwg committed Mar 4, 2024
1 parent 6a60059 commit c020660
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
11 changes: 11 additions & 0 deletions docs/source/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* Indent by four spaces */
.sig-param::before {
content: "\a\20\20\20\20";
white-space: pre;
}

/* Don't indent closing bracket */
dt em.sig-param:last-of-type::after {
content: "\a";
white-space: pre;
}
5 changes: 4 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,7 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
# html_static_path = ['./_static']
html_static_path = ['./_static']
html_css_files = [
"css/custom.css",
]
2 changes: 1 addition & 1 deletion docs/source/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ Types

.. automodule:: lymph.types
:members:
:special-members: __init__
:show-inheritance:

0 comments on commit c020660

Please sign in to comment.