Skip to content

Commit 05d4988

Browse files
Highlight theme (#2111)
* Highlight theme * Remove Prism dependency * SHCB customizations --------- Co-authored-by: Paul Hebert <[email protected]>
1 parent c91f85d commit 05d4988

33 files changed

+420
-227
lines changed

.changeset/eleven-tips-greet.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@cloudfour/patterns': major
3+
---
4+
5+
Add Highlight.js theme to support server-side syntax highlighting, replaces Prism theme

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
!/src/prototypes/**/*.stories.*
1111

1212
# Ignore syntax highlighting examples
13-
/src/vendor/prism/demo/samples
13+
/src/vendor/highlight/demo/samples

.eslintrc.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
module.exports = {
22
extends: ['plugin:@cloudfour/recommended', 'plugin:mdx/recommended'],
3-
globals: {
4-
Prism: true,
5-
},
63
plugins: ['react'],
74
settings: {
85
n: {

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
!/src/prototypes/**/*.stories.*
1111

1212
# Ignore syntax highlighting examples
13-
/src/vendor/prism/demo/samples
13+
/src/vendor/highlight/demo/samples
1414

1515
# Ignore changeset files (these are temporary)
1616
.changeset/*

.stylelintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/src/prototypes/**/*
33

44
# Ignore syntax highlighting examples
5-
/src/vendor/prism/demo/samples/**/*
5+
/src/vendor/highlight/demo/samples/**/*
66

77
# Generated files
88
/src/compiled

0 commit comments

Comments
 (0)