mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 14:00:39 -07:00
docs: highlight npx in bash blocks and polish English copy
Use Prism insertBefore for CLI commands like npx, tighten tutorial and reference wording, and keep YAML titles free of backticks so sidebar and page headings stay correct. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
+18
-6
@@ -20,6 +20,9 @@ pre
|
||||
border: none
|
||||
display: block
|
||||
padding: 0
|
||||
&.line-numbers
|
||||
white-space: pre
|
||||
overflow-x: auto
|
||||
|
||||
.highlight
|
||||
padding: 10px 15px
|
||||
@@ -101,11 +104,20 @@ pre
|
||||
.keyword
|
||||
.javascript .function
|
||||
color: var(--highlight-purple)
|
||||
// Prism bash uses "builtin" / "class-name", not pygments-style "built_in"
|
||||
.language-bash, .language-shell
|
||||
.builtin
|
||||
.class-name
|
||||
.function
|
||||
color: var(--highlight-orange)
|
||||
// Prism bash: builtins (echo), external commands (npm), and cli-command (npx)
|
||||
code.language-bash
|
||||
.builtin,
|
||||
.class-name,
|
||||
.function,
|
||||
.cli-command
|
||||
color: var(--highlight-bash-command)
|
||||
.operator
|
||||
color: var(--highlight-purple)
|
||||
code.language-shell
|
||||
.builtin,
|
||||
.class-name,
|
||||
.function,
|
||||
.cli-command
|
||||
color: var(--highlight-bash-command)
|
||||
.operator
|
||||
color: var(--highlight-purple)
|
||||
|
||||
+2
@@ -31,6 +31,7 @@ vendor-prefixes = webkit moz ms official
|
||||
--highlight-comment: #6e7781
|
||||
--highlight-red: #cf222e
|
||||
--highlight-orange: #953800
|
||||
--highlight-bash-command: #c95100
|
||||
--highlight-yellow: #7d4e00
|
||||
--highlight-green: #116329
|
||||
--highlight-aqua: #0550ae
|
||||
@@ -68,6 +69,7 @@ vendor-prefixes = webkit moz ms official
|
||||
--highlight-comment: #8b949e
|
||||
--highlight-red: #ff7b72
|
||||
--highlight-orange: #ffa657
|
||||
--highlight-bash-command: var(--highlight-orange)
|
||||
--highlight-yellow: #e3b341
|
||||
--highlight-green: #7ee787
|
||||
--highlight-aqua: #79c0ff
|
||||
|
||||
Reference in New Issue
Block a user