Skip to content

Commit 5577bf1

Browse files
committed
fix syntaxhighlighter styles
The syntax highlighter theme is rather terrible, trying to do its own css reset with !important on everything. This makes it awful to do our own overrides of its behavior. It also tries to do things that are no longer relevant. Vendor the parts of the syntax highlighter theme that we need, removing the !important tags. This allows our own code to be simplified as well.
1 parent 30e74ff commit 5577bf1

File tree

7 files changed

+200
-773
lines changed

7 files changed

+200
-773
lines changed

build-assets.mjs

-6
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ import {
55
lessLoader
66
}
77
from 'esbuild-plugin-less';
8-
import {
9-
sassPlugin
10-
}
11-
from 'esbuild-sass-plugin';
128
import {
139
writeFile,
1410
opendir,
@@ -22,7 +18,6 @@ const config = {
2218
entryPoints: [
2319
'root/static/js/main.mjs',
2420
'root/static/less/style.less',
25-
'root/static/scss/style.scss',
2621
],
2722
assetNames: '[name]-[hash]',
2823
entryNames: '[name]-[hash]',
@@ -40,7 +35,6 @@ const config = {
4035
},
4136
plugins: [
4237
lessLoader(),
43-
sassPlugin(),
4438
new class {
4539
name = 'metacpan-build';
4640

0 commit comments

Comments
 (0)