Skip to content

Commit

Permalink
Docs: Change formatting of paragraphs under <h2> on chapter pages
Browse files Browse the repository at this point in the history
We'd like to put explanation on chapter pages. Reading large amounts of
text that is center justified feels strange. This change does not modify
the format of existing chapter pages. However, any <p> element after a
<h2> element on a chapter page will now be formatted consistently with
the rest of the documentation.
  • Loading branch information
mssalvatore committed Jul 16, 2024
1 parent 7780976 commit 3fb3f21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ theme = "learn"
# Order sections in menu by "weight" or "title". Default to "weight"
ordersectionsby = "weight"
# Provide a list of custom css files to load relative from the `static/` folder in the site root.
custom_css = ["css/labels.css", "css/shadow-around-images.css", "css/table-of-contents.css"]
custom_css = ["css/chapters.css", "css/labels.css", "css/shadow-around-images.css", "css/table-of-contents.css"]

[outputs]
home = ["HTML", "RSS", "JSON"]
Expand Down
4 changes: 4 additions & 0 deletions docs/static/css/chapters.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#chapter h2 ~ p {
text-align: left;
font-size: 1rem;
}

0 comments on commit 3fb3f21

Please sign in to comment.