Skip to content

Commit a492d05

Browse files
committed
Fix rendering of clone's/init's synopses
Since git/git@76880f0510c (doc: git-clone: apply new documentation formatting guidelines, 2024-03-29) and its parent commit, the synopses of the manual pages of the `git clone` and the `git init` command are rendered in a different way. This matters because the changes were clearly only tested with AsciiDoc, but not with AsciiDoctor. Using the latter, the formatting is all off, unless the default stylesheet is overridden. On Git's home page, AsciiDoctor is used to render the manual pages, and the default stylesheet is overridden. However, the synopses still look unpleasant to my eye, e.g. because of the inconsistent background color of the `<code>` blocks. This commit changes the style of the `<code>` blocks in the synopses so that they flow better again, visually. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 40a1ae5 commit a492d05

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/assets/stylesheets/man-pages.scss

+8
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@
5454
font-weight: bold;
5555
font-style: normal;
5656
}
57+
58+
code {
59+
background-color: #e8e7dd;
60+
margin-bottom: 0;
61+
border: none;
62+
padding-left: 0;
63+
padding-right: 0;
64+
}
5765
}
5866
}
5967

0 commit comments

Comments
 (0)