File tree Expand file tree Collapse file tree 10 files changed +36
-32
lines changed Expand file tree Collapse file tree 10 files changed +36
-32
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ const languageIds = fs
2727 . sort ( ) ;
2828const pluginIds = fs . readdirSync ( path . join ( SRC_DIR , 'plugins' ) ) . sort ( ) ;
2929const themeIds = fs
30- . readdirSync ( path . join ( SRC_DIR , '../themes' ) )
30+ . readdirSync ( path . join ( SRC_DIR , 'themes' ) )
31+ . filter ( f => / \. c s s $ / i. test ( f ) )
3132 . map ( f => f . slice ( 0 , - '.css' . length ) )
3233 . sort ( ) ;
3334
@@ -46,10 +47,8 @@ async function loadComponent (id: string) {
4647async function minifyCSS ( ) {
4748 const input : Record < string , string > = { } ;
4849
49- const THEMES_DIR = path . join ( __dirname , '../themes' ) ;
50- const themes = await readdir ( THEMES_DIR ) ;
51- for ( const theme of themes . filter ( f => / \. c s s $ / i. test ( f ) ) ) {
52- input [ `themes/${ theme } ` ] = path . join ( THEMES_DIR , theme ) ;
50+ for ( const id of themeIds ) {
51+ input [ `themes/${ id } .css` ] = path . join ( SRC_DIR , `themes/${ id } .css` ) ;
5352 }
5453
5554 for ( const id of pluginIds ) {
Original file line number Diff line number Diff line change 1414 },
1515 "prism" : {
1616 "title" : " Default" ,
17- "option" : " default"
17+ "option" : " default" ,
18+ "owner" : " LeaVerou"
19+ },
20+ "dark" : {
21+ "title" : " Dark" ,
22+ "owner" : " LeaVerou"
23+ },
24+ "funky" : {
25+ "title" : " Funky" ,
26+ "owner" : " LeaVerou"
1827 },
19- "prism-dark" : " Dark" ,
20- "prism-funky" : " Funky" ,
21- "prism-okaidia" : {
28+ "okaidia" : {
2229 "title" : " Okaidia" ,
2330 "owner" : " ocodia"
2431 },
25- "prism- twilight" : {
32+ "twilight" : {
2633 "title" : " Twilight" ,
2734 "owner" : " remybach"
2835 },
29- "prism- coy" : {
36+ "coy" : {
3037 "title" : " Coy" ,
3138 "owner" : " tshedor"
3239 },
33- "prism- solarizedlight" : {
40+ "solarizedlight" : {
3441 "title" : " Solarized Light" ,
3542 "owner" : " hectormatos2011 "
3643 },
37- "prism- tomorrow" : {
44+ "tomorrow" : {
3845 "title" : " Tomorrow Night" ,
3946 "owner" : " Rosey"
4047 }
Original file line number Diff line number Diff line change 11/**
22 * prism.js Coy theme for JavaScript, CoffeeScript, CSS and HTML
3- * Based on https://github.com/tshedor/workshop-wp-theme (Example: http://workshop.kansan.com/category/sessions/basics or http://workshop.timshedor.com/category/sessions/basics);
4- * @author Tim Shedor
3+ * Based on https://github.com/tshedor/workshop-wp-theme.
4+ * @author Tim Shedor
55 */
66
77code [class *= "language-" ],
Original file line number Diff line number Diff line change 11/**
22 * prism.js Dark theme for JavaScript, CSS and HTML
3- * Based on the slides of the talk “/Reg(exp){2}lained/”
3+ * Based on the slides of the talk [ “/Reg(exp){2}lained/”](https://regexplained.com/slides.html).
44 * @author Lea Verou
55 */
66
Original file line number Diff line number Diff line change 11/**
22 * prism.js Funky theme
3- * Based on “Polyfilling the gaps” talk slides http ://lea .verou.me/polyfilling-the-gaps/
3+ * Based on [ “Polyfilling the gaps”](https ://talks .verou.me/polyfilling-the-gaps/) talk slides.
44 * @author Lea Verou
55 */
66
Original file line number Diff line number Diff line change 11/**
2- * okaidia theme for JavaScript, CSS and HTML
3- * Loosely based on Monokai textmate theme by http ://www. monokai.nl/
4- * @author ocodia
2+ * prism.js Okaidia theme for JavaScript, CSS and HTML
3+ * Loosely based on Monokai textmate theme by https ://monokai.com/.
4+ * @author Paul Livingstone
55 */
66
77code [class *= "language-" ],
Original file line number Diff line number Diff line change 11/**
22 * prism.js default theme for JavaScript, CSS and HTML
3- * Based on dabblet (http ://dabblet.com)
3+ * Based on [ dabblet](https ://dabblet.com).
44 * @author Lea Verou
55 */
66
Original file line number Diff line number Diff line change 1- /*
2- Solarized Color Schemes originally by Ethan Schoonover
3- http://ethanschoonover.com/solarized
4-
5- Ported for PrismJS by Hector Matos
6- Website: https://krakendev.io
7- Twitter Handle: https://twitter.com/allonsykraken)
1+ /**
2+ * prism.js Solarized Light theme
3+ * Based on [Solarized Color Schemes](https://ethanschoonover.com/solarized) by Ethan Schoonover.
4+ * @author Hector Matos
85*/
96
107/*
Original file line number Diff line number Diff line change 11/**
2- * prism.js tomorrow night eighties for JavaScript, CoffeeScript, CSS and HTML
3- * Based on https://github.com/chriskempson/tomorrow-theme
4- * @author Rose Pritchard
2+ * prism.js Tomorrow Night theme for JavaScript, CoffeeScript, CSS and HTML
3+ * Based on https://github.com/chriskempson/tomorrow-theme.
4+ * @author Rose Robertson
55 */
66
77code [class *= "language-" ],
Original file line number Diff line number Diff line change 11/**
22 * prism.js Twilight theme
33 * Based (more or less) on the Twilight theme originally of Textmate fame.
4- * @author Remy Bach
4+ * @author Rémy Bach
55 */
6+
67code [class *= "language-" ],
78pre [class *= "language-" ] {
89 color : white;
You can’t perform that action at this time.
0 commit comments