Skip to content

Commit

Permalink
Generate latest files, update katex and mermaid
Browse files Browse the repository at this point in the history
  • Loading branch information
onigoetz committed Dec 10, 2022
1 parent 0d488da commit add14eb
Show file tree
Hide file tree
Showing 21 changed files with 1,948 additions and 30 deletions.
26 changes: 25 additions & 1 deletion crafty.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,29 @@ module.exports = {
postcss(crafty, config, bundle) {
// Add postcss-page-break
config.processor("postcss-page-break").before("autoprefixer");
}
},
/**
* Represents the extension point for rollup configuration
* @param {Crafty} crafty - The instance of Crafty.
* @param {Gulp} gulp - The instance of Gulp.
* @param {StreamHandler} StreamHandler - A wrapper to create your tasks.
*/
gulp(crafty, gulp, StreamHandler) {
// Create tasks
gulp.task("katex", function() {
const stream = new StreamHandler("node_modules/katex/dist/*.min.*", "daux_libraries");
return stream.generate();
});

gulp.task("mermaid", function() {
const stream = new StreamHandler("node_modules/mermaid/dist/mermaid.min.{js,js.map}", "daux_libraries");
return stream.generate();
});

// Group tasks into other tasks
gulp.task("vendors", gulp.parallel("katex", "mermaid"));

// Register this task to run automatically
crafty.addDefaultTask("vendors");
}
};
3 changes: 1 addition & 2 deletions daux_libraries/katex.min.css

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions daux_libraries/katex.min.js

Large diffs are not rendered by default.

1,281 changes: 1,279 additions & 2 deletions daux_libraries/mermaid.min.js
100755 → 100644

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion daux_libraries/mermaid.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion daux_libraries/search.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion daux_libraries/search.min.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
"@swissquote/crafty-runner-gulp": "1.20.0",
"@swissquote/crafty-runner-rollup": "1.20.0",
"flexsearch": "^0.7.0",
"katex": "^0.16.4",
"mermaid": "^9.2.2",
"postcss-page-break": "^2.0.0",
"preact": "^10.0.5",
"testcafe": "^2.0.0"
Expand Down
2 changes: 1 addition & 1 deletion themes/daux/css/theme-blue.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/daux/css/theme-blue.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/daux/css/theme-green.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/daux/css/theme-green.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/daux/css/theme-navy.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/daux/css/theme-navy.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/daux/css/theme-red.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/daux/css/theme-red.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/daux/js/daux.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit add14eb

Please sign in to comment.