Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

Commit

Permalink
Tweak docs, in particular the styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ichard26 committed Jul 27, 2021
1 parent 35b0956 commit e40f3b5
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@
html_theme = "furo"
html_title = f"Blackbench {release}"
html_favicon = "static/ichard26-favicon.png"
html_static_path = ["static"]
html_css_files = ["custom.css"]
5 changes: 2 additions & 3 deletions docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,8 @@ less values.

See the rest of the User Guide for an indepth explanation and guide to using blackbench
effectively, to learn blackbench's more advanced features, and overall get better at
benchmarking effectively. You can also take a look at the
[pyperf documentation][pyperf-docs] since blackbench heavily depends on it for many
parts of its functionality.
benchmarking. You can also take a look at the [pyperf documentation][pyperf-docs] since
blackbench heavily depends on it for many parts of its functionality.

Thank you for using blackbench and I hope you make good use out of it!

Expand Down
19 changes: 19 additions & 0 deletions docs/static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* Sadly the default pygments theme has very bad contrast of only 3.34,
* let's fix this. */
.highlight .go {
color: #545454;
}

/* Tweak inline code blocks to be a bit more visually distinct and
* noticable. */
code.literal {
border: 1px solid #f4f4f4;
margin-left: 0.2em;
margin-right: 0.2em;
}

@media (prefers-color-scheme: dark) {
code.literal {
border: 1px solid #151515;
}
}

0 comments on commit e40f3b5

Please sign in to comment.