Skip to content

Commit

Permalink
Fix API spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
aalexmmaldonado committed Nov 22, 2024
1 parent 248db33 commit 0f59154
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@
margin-bottom: 1in;
margin-left: 0in;
}

.md-typeset h2 {
line-height: 0.9;
}
7 changes: 7 additions & 0 deletions docs/css/jupyter.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
html
/*
This adjusts the font size of Jupyter notebook code blocks to be closer to normal.
*/
.highlight {
font-size: 85%;
}
21 changes: 21 additions & 0 deletions docs/css/mkdocstrings.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ div.doc-contents:not(.first) {
border-left: .15rem solid #ededed;
}

.doc-heading .highlight {
font-size: 18px;
background-color: transparent;
}

/*Mark external links as such. */
a.external::after,
a.autorefs-external::after {
Expand All @@ -25,3 +30,19 @@ a.external:hover::after,
a.autorefs-external:hover::after {
background-color: var(--md-accent-fg-color);
}

/* Fancier color for operators such as * and |. */
.doc-signature .o {
color: var(--md-code-hl-special-color);
}

/* Fancier color for constants such as None, True, and False. */
.doc-signature .kc {
color: var(--md-code-hl-constant-color);
}

/* Fancier color for built-in types (only useful when cross-references are used). */
.doc-signature .n > a[href^="https://docs.python.org/"][href*="/functions.html#"],
.doc-signature .n > a[href^="https://docs.python.org/"][href*="/stdtypes.html#"] {
color: var(--md-code-hl-constant-color);
}
3 changes: 2 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,11 @@ extra_css:
- css/colors.css
- css/mkdocstrings.css
- css/launchy.css
- css/jupyter.css

extra_javascript:
- js/mathjax-config.js
- https://unpkg.com/mathjax@3/es5/tex-mml-chtml.js
- js/mathjax-config.js

markdown_extensions:
- abbr
Expand Down

0 comments on commit 0f59154

Please sign in to comment.