Commit 149438e
committed
Enable Prism highlighting and fix code-block display
The `@vuepress/plugin-prismjs` package shipped in package.json but was
never registered, so fences with a language hint (```bash, ```json,
```markdown, ...) produced no tokens. Combined with a global
:not(.language-text) > code rule that painted any non-text block's text
in dark blue (#1f3f5b) and a code-fade-mask gradient that assumed a dark
background variable nobody set, this rendered as dark-blue-on-black
strips on the right side of every highlighted block.
Changes:
* Register prismjsPlugin in config-user/plugins.ts so language hints are
tokenised at build time.
* Scope the inline-code rule to :not(pre):not(.language-text) > code so
the global #1f3f5b color and light-gray background only apply to
inline <code>, not to <pre><code> inside .language-* blocks.
* Set --code-bg-color: #2d2d2d (the project's original dark surface)
and apply it to every language-* wrapper, with #ccc as the default
text/punctuation color, matching the pre-Prism appearance.
* Add a One-Dark-inspired Prism token palette scoped to
div[class*="language-"] so bash/json/yaml/php blocks render with
readable colors on the dark background.
* Unify font-size: 12px across every language-* block so highlighted
blocks no longer render larger than plain `text` blocks.
* Re-tint the code-fade-mask gradient to the same #2d2d2d background so
the right-edge fade blends with the block.
* Scope the ELSSteps :deep(code) override to :not(pre) > code so block
code inside steps uses the unified 12px size while inline code keeps
the slightly smaller 0.85rem.
* Indent the bullet sub-items under steps 1 and 2 in the AlmaLinux
enterprise-support doc so they render inside the numbered list
instead of after it.
https://claude.ai/code/session_01RnQn6mjZMSy5kGjwJaWVeF1 parent f64d42a commit 149438e
4 files changed
Lines changed: 96 additions & 13 deletions
File tree
- docs
- .vuepress
- components
- config-user
- styles
- enterprise-support-for-almalinux
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
202 | 200 | | |
203 | 201 | | |
204 | 202 | | |
205 | 203 | | |
206 | 204 | | |
207 | 205 | | |
208 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
209 | 290 | | |
210 | 291 | | |
211 | 292 | | |
| |||
310 | 391 | | |
311 | 392 | | |
312 | 393 | | |
313 | | - | |
| 394 | + | |
314 | 395 | | |
315 | 396 | | |
316 | 397 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
635 | 635 | | |
636 | 636 | | |
637 | 637 | | |
638 | | - | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | | - | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
646 | | - | |
| 646 | + | |
647 | 647 | | |
648 | 648 | | |
649 | 649 | | |
| |||
0 commit comments