Skip to content

Commit

Permalink
Fix rendering of clone's/init's synopses
Browse files Browse the repository at this point in the history
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 <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Jul 19, 2024
1 parent 40a1ae5 commit a492d05
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/assets/stylesheets/man-pages.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@
font-weight: bold;
font-style: normal;
}

code {
background-color: #e8e7dd;
margin-bottom: 0;
border: none;
padding-left: 0;
padding-right: 0;
}
}
}

Expand Down

0 comments on commit a492d05

Please sign in to comment.