You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ur...@apache.org on 2022/05/13 06:44:01 UTC
[pulsar-site] branch main updated: feat: add line number in code blocks
This is an automated email from the ASF dual-hosted git repository.
urfree pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
The following commit(s) were added to refs/heads/main by this push:
new 056b05d1c9c feat: add line number in code blocks
new 8e9830ba723 Merge pull request #75 from SignorMercurio/main
056b05d1c9c is described below
commit 056b05d1c9ce8d963fcd02eceb9214ed595b3b97
Author: Mercurio <si...@gmail.com>
AuthorDate: Thu May 12 18:49:05 2022 +0100
feat: add line number in code blocks
---
site2/website-next/src/css/custom.css | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/site2/website-next/src/css/custom.css b/site2/website-next/src/css/custom.css
index 06feb70309e..d32855ba9ec 100644
--- a/site2/website-next/src/css/custom.css
+++ b/site2/website-next/src/css/custom.css
@@ -981,4 +981,20 @@ footer .row.footer__links {
}
.theme-doc-version-badge {
display: none;
+}
+
+.prism-code {
+ counter-reset: line-number;
+}
+
+.prism-code .token-line::marker {
+ color: var(--ifm-color-gray-700);
+ content: counter(line-number);
+}
+
+.prism-code .token-line {
+ counter-increment: line-number;
+ display: list-item;
+ padding-left: var(--ifm-pre-padding);
+ margin-left: var(--ifm-global-spacing);
}
\ No newline at end of file