Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -421,14 +421,13 @@ conventional_branch = <span class="cc-t-pass">true</span></div>
<li><span><b>A fix you can paste</b>, whenever the correction is unambiguous.</span></li>
</ol>
</div>
<!-- Real output of commit-check 2.20.4, laid out in numbered rows; the one-line header it prints first is left out. -->
<!-- Real output of commit-check 2.23.0, laid out in numbered rows; the one-line header it prints first is left out. -->
<div class="cc-diag">
<p class="cc-t-dim">$ echo "Fix: add streaming support" | commit-check -m</p>
<p><span class="cc-mark">1</span><span><span class="cc-t-fail cc-b">✖ CC001</span> message failed:</span></p>
<p><span class="cc-mark">2</span><span class="cc-t-white">Fix: add streaming support</span></p>
<p><span class="cc-mark">3</span><span class="cc-t-dim">The commit message should follow Conventional Commits. See https://www.conventionalcommits.org</span></p>
<p><span class="cc-mark">1</span><span><span class="cc-t-fail cc-b">✖ CC001</span> message failed:<span class="cc-mark cc-mark--inline">2</span><span class="cc-t-white">Fix: add streaming support</span></span></p>
<p class="cc-diag__wrap"><span class="cc-mark">3</span><span class="cc-t-dim">The commit message should follow Conventional Commits. See https://www.conventionalcommits.org</span></p>
<p><span class="cc-mark">4</span><span><span class="cc-t-blue">Suggest:</span> Use "<span class="cc-t-pass cc-b">fix: add streaming support</span>"</span></p>
<p class="cc-diag__docs cc-t-dim">Docs: https://commit-check.com/rules/#cc001</p>
<p class="cc-diag__docs cc-t-dim">Docs: https://commit-check.com/rules/#cc001</p>
</div>
</div>
</section>
Expand Down
23 changes: 23 additions & 0 deletions docs/stylesheets/landing.css
Original file line number Diff line number Diff line change
Expand Up @@ -2032,6 +2032,29 @@
padding-left: 34px;
}

/* The explanation is longer than the panel is wide: wrap it like a terminal
would, under its own text, instead of scrolling the panel sideways. */
.md-typeset .cc-diag p.cc-diag__wrap {
white-space: normal;
align-items: flex-start;
line-height: 1.6;
padding: 5px 0;
}

/* The CLI prints the value on the rule's own line, so its mark sits inline. */
.cc-diag .cc-mark--inline {
display: inline-flex;
vertical-align: middle;
position: relative;
top: -1px;
margin: 0 8px 0 10px;
}

/* Keep "Docs:" padded to line up with "Suggest:", as the CLI prints it. */
.md-typeset .cc-diag p.cc-diag__docs {
white-space: pre-wrap;
}

/* ---------------------------------------------------------------- proof -- */

.md-typeset .cc-proof {
Expand Down