Skip to content

Commit

Permalink
refactor(*): dont parse unused highlight theme (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrAlpha committed May 30, 2024
1 parent 35abecd commit d6b15a3
Show file tree
Hide file tree
Showing 215 changed files with 13,782 additions and 7 deletions.
4 changes: 2 additions & 2 deletions layout/_plugins/highlight/highlight/source.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<link rel="stylesheet" id="hl-dark-theme" href="<%= `${theme.vendors.highlight}${theme.style.highlight.darkmode || 'dark'}.min.css` %>" media="none">
<% } %>
<% } else { %>
<link rel="stylesheet" id="hl-default-theme" href="<%= url_for(`css/highlight/${theme.style.highlight.default || 'default'}.css`) %>" media="none" <%- theme.darkmode === true ? "" : `onload="this.media='all'"` %>>
<link rel="stylesheet" id="hl-default-theme" href="<%= url_for(`css/highlight/highlight.css`) %>" media="none" <%- theme.darkmode === true ? "" : `onload="this.media='all'"` %>>
<% if (theme.darkmode === true && (theme.style.highlight.darkmode !== theme.style.highlight.default || theme.style.highlight.darkmode === null)) { %>
<link rel="stylesheet" id="hl-dark-theme" href="<%= url_for(`css/highlight/${theme.style.highlight.darkmode || 'dark'}.css`) %>" media="none">
<link rel="stylesheet" id="hl-dark-theme" href="<%= url_for(`css/highlight/highlight.dark.css`) %>" media="none">
<% } %>
<% } %>
<% } %>
6 changes: 3 additions & 3 deletions layout/_plugins/highlight/hljs/source.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<link rel="stylesheet" id="hl-default-theme" href="<%= `${theme.vendors.hljs}${theme.style.hljs.default || 'default'}.css` %>" media="none" <%- theme.darkmode === true ? "" : `onload="this.media='all'"` %>>
<% if (theme.darkmode === true && (theme.style.hljs.darkmode !== theme.style.hljs.default || theme.style.hljs.darkmode === null)) { %>
<link rel="stylesheet" id="hl-dark-theme" href="<%= `${theme.vendors.hljs}${theme.style.hljs.darkmode || 'dark'}.css` %>" media="none">
<% } %>
<% } %>
<% } else { %>
<link rel="stylesheet" id="hl-default-theme" href="<%= `https://cdn.jsdelivr.net/npm/highlight.js@10.1.2/styles/${theme.style.hljs.default || 'default'}.min.css` %>" media="none" <%- theme.darkmode === true ? "" : `onload="this.media='all'"` %>>
<link rel="stylesheet" id="hl-default-theme" href="<%= url_for(`css/highlight/hljs.css`) %>" media="none" <%- theme.darkmode === true ? "" : `onload="this.media='all'"` %>>
<% if (theme.darkmode === true && (theme.style.hljs.darkmode !== theme.style.hljs.default || theme.style.hljs.darkmode === null)) { %>
<link rel="stylesheet" id="hl-dark-theme" href="<%= `https://cdn.jsdelivr.net/npm/highlight.js@10.1.2/styles/${theme.style.hljs.darkmode || 'dark'}.min.css` %>" media="none">
<link rel="stylesheet" id="hl-dark-theme" href="<%= url_for(`css/highlight/hljs.dark.css`) %>" media="none">
<% } %>
<% } %>
<% } %>
4 changes: 2 additions & 2 deletions layout/_plugins/highlight/prismjs/source.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<link rel="stylesheet" id="hl-dark-theme" href="<%= `${theme.vendors.prismjs}${theme.style.prismjs.darkmode || 'prism-dark'}.css` %>" media="none">
<% } %>
<% } else { %>
<link rel="stylesheet" id="hl-default-theme" href="<%= `https://cdn.jsdelivr.net/npm/prismjs@1.21.0/themes/${theme.style.prismjs.default || 'prism'}.min.css` %>" media="none" <%- theme.darkmode === true ? "" : `onload="this.media='all'"` %>>
<link rel="stylesheet" id="hl-default-theme" href="<%= url_for(`css/highlight/prismjs.css`) %>" media="none" <%- theme.darkmode === true ? "" : `onload="this.media='all'"` %>>
<% if (theme.darkmode === true && (theme.style.prismjs.darkmode !== theme.style.prismjs.default || theme.style.prismjs.darkmode === null)) { %>
<link rel="stylesheet" id="hl-dark-theme" href="<%= `https://cdn.jsdelivr.net/npm/prismjs@1.21.0/themes/${theme.style.prismjs.darkmode || 'prism-dark'}.min.css` %>" media="none">
<link rel="stylesheet" id="hl-dark-theme" href="<%= url_for(`css/highlight/prismjs.dark.css`) %>" media="none">
<% } %>
<% } %>
<% if (config.prismjs.line_number === true) { %>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
121 changes: 121 additions & 0 deletions source/css/highlight/_hljs/1c-light.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
/*!
Theme: 1c-light
Description: Style IDE 1C:Enterprise 8
Author: (c) Barilko Vitaliy <barilkovetal@gmail.com>
Maintainer: @Diversus23
Website: https://softonit.ru/
License: see project LICENSE
Touched: 2023
*/

/* end baseline CSS */

.hljs {
color: #0000ff;
background: #ffffff;
}

/* Base color: saturation 0; */

.hljs-subst {
/* default */
}

/* purposely ignored */
.hljs-formula,
.hljs-attr,
.hljs-property {}

.hljs-comment {
color: #008000;
}
.hljs-tag {
color: #444a;
}

.hljs-tag .hljs-name,
.hljs-tag .hljs-attr {
color: #444;
}

.hljs-punctuation,
.hljs-function,
.hljs-keyword,
.hljs-attribute,
.hljs-selector-tag,
.hljs-doctag,
.hljs-name {
color: #ff0000;
}

.hljs-type,
.hljs-params {
color: #0000ff;
}

/* User color: hue: 0 */

.hljs-string,
.hljs-number,
.hljs-selector-id,
.hljs-selector-class,
.hljs-quote,
.hljs-template-tag,
.hljs-symbol,
.hljs-deletion {
color: #000000;
}

.hljs-title,
.hljs-section {
color: #0000ff;
}

.hljs-regexp,
.hljs-variable,
.hljs-template-variable,
.hljs-link,
.hljs-selector-attr,
.hljs-operator,
.hljs-selector-pseudo {
color: #ab5656;
}

/* Language color: hue: 90; */

.hljs-literal {
color: #ff0000;
}

.hljs-built_in,
.hljs-bullet,
.hljs-code,
.hljs-addition {
color: #0000ff;
}


/* Meta color: hue: 200 */

.hljs-meta {
color: #963200;
}

.hljs-meta .hljs-string {
color: #963200;
}

.hljs-meta .hljs-keyword {
color: #963200;
}

/* Misc effects */

.hljs-emphasis {
font-style: italic;
}

.hljs-strong {
font-weight: bold;
}

98 changes: 98 additions & 0 deletions source/css/highlight/_hljs/a11y-dark.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
/*!
Theme: a11y-dark
Author: @ericwbailey
Maintainer: @ericwbailey
Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css
*/

.hljs {
background: #2b2b2b;
color: #f8f8f2;
}

/* Comment */
.hljs-comment,
.hljs-quote {
color: #d4d0ab;
}

/* Red */
.hljs-variable,
.hljs-template-variable,
.hljs-tag,
.hljs-name,
.hljs-selector-id,
.hljs-selector-class,
.hljs-regexp,
.hljs-deletion {
color: #ffa07a;
}

/* Orange */
.hljs-number,
.hljs-built_in,
.hljs-literal,
.hljs-type,
.hljs-params,
.hljs-meta,
.hljs-link {
color: #f5ab35;
}

/* Yellow */
.hljs-attribute {
color: #ffd700;
}

/* Green */
.hljs-string,
.hljs-symbol,
.hljs-bullet,
.hljs-addition {
color: #abe338;
}

/* Blue */
.hljs-title,
.hljs-section {
color: #00e0e0;
}

/* Purple */
.hljs-keyword,
.hljs-selector-tag {
color: #dcc6e0;
}

.hljs-emphasis {
font-style: italic;
}

.hljs-strong {
font-weight: bold;
}

@media screen and (-ms-high-contrast: active) {
.hljs-addition,
.hljs-attribute,
.hljs-built_in,
.hljs-bullet,
.hljs-comment,
.hljs-link,
.hljs-literal,
.hljs-meta,
.hljs-number,
.hljs-params,
.hljs-string,
.hljs-symbol,
.hljs-type,
.hljs-quote {
color: highlight;
}

.hljs-keyword,
.hljs-selector-tag {
font-weight: bold;
}
}
98 changes: 98 additions & 0 deletions source/css/highlight/_hljs/a11y-light.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
/*!
Theme: a11y-light
Author: @ericwbailey
Maintainer: @ericwbailey
Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css
*/

.hljs {
background: #fefefe;
color: #545454;
}

/* Comment */
.hljs-comment,
.hljs-quote {
color: #696969;
}

/* Red */
.hljs-variable,
.hljs-template-variable,
.hljs-tag,
.hljs-name,
.hljs-selector-id,
.hljs-selector-class,
.hljs-regexp,
.hljs-deletion {
color: #d91e18;
}

/* Orange */
.hljs-number,
.hljs-built_in,
.hljs-literal,
.hljs-type,
.hljs-params,
.hljs-meta,
.hljs-link {
color: #aa5d00;
}

/* Yellow */
.hljs-attribute {
color: #aa5d00;
}

/* Green */
.hljs-string,
.hljs-symbol,
.hljs-bullet,
.hljs-addition {
color: #008000;
}

/* Blue */
.hljs-title,
.hljs-section {
color: #007faa;
}

/* Purple */
.hljs-keyword,
.hljs-selector-tag {
color: #7928a1;
}

.hljs-emphasis {
font-style: italic;
}

.hljs-strong {
font-weight: bold;
}

@media screen and (-ms-high-contrast: active) {
.hljs-addition,
.hljs-attribute,
.hljs-built_in,
.hljs-bullet,
.hljs-comment,
.hljs-link,
.hljs-literal,
.hljs-meta,
.hljs-number,
.hljs-params,
.hljs-string,
.hljs-symbol,
.hljs-type,
.hljs-quote {
color: highlight;
}

.hljs-keyword,
.hljs-selector-tag {
font-weight: bold;
}
}
Loading

0 comments on commit d6b15a3

Please sign in to comment.