forked from teachaccess/tutorial
-
Notifications
You must be signed in to change notification settings - Fork 75
/
exerslide.config.js
82 lines (70 loc) · 1.77 KB
/
exerslide.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/*
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*/
'use strict';
const isTextPath = require('is-text-path');
const path = require('path');
module.exports = {
/** Standard configuration options **/
/**
* Paths to stylesheets. Can refer to modules.
*/
stylesheets: [
'foundation-sites/dist/foundation.css',
'font-awesome/css/font-awesome.css',
'highlight.js/styles/solarized-light.css',
'./css/style.css',
'./css/taop.css',
'./css/a11y.css',
],
/**
* This map allows you to automatically assign layouts based on file
* extension.
*/
defaultLayouts: {
'.html.md': 'HTMLExercise',
},
/**
* Files matching these patterns are copied verbatim into the "out" directory.
*/
assets: [
'./statics/**/*',
],
/**
* List of plugins to load. Plugins provide layouts, content type converters,
* or other extensions to the exerslide or webpack config.
*
* A list of module names (exerslide-plugin-* can be omitted) or paths.
*/
plugins: [
'bulletlist-layout',
'center-layout',
'column-layout',
'html-converter',
'markdown-converter',
],
/** Advanced configuration options **/
/**
* Absolute path to save the built presentation.
*/
out: path.join(__dirname, './docs'),
/**
* File path patterns used to watch slides for changes while creating the
* presentation.
*/
slidePaths: [
'./slides/*',
'./slides/*/*',
],
/**
* A function with which you can filter and reorder the file paths matched by
* the patterns in "slidePaths".
*/
processSlides(paths) {
return paths.filter(isTextPath).sort();
},
};