Skip to content

Commit 2946963

Browse files
committed
Change preview to 11ty
1 parent 2320d4c commit 2946963

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+13865
-3009
lines changed

.editorconfig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ root = true
55
[*]
66
charset = utf-8
77
end_of_line = lf
8-
indent_size = 2
8+
indent_size = 4
99
indent_style = space
1010
insert_final_newline = true
1111
trim_trailing_whitespace = true
1212
eclint_block_comment_start = /*
1313
eclint_block_comment = *
1414
eclint_block_comment_end = */
15+
16+
[*.{scss,css,js,json}]
17+
indent_size = 2

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,7 @@ $RECYCLE.BIN/
141141
*.lnk
142142

143143
# Preview's HTML and CSS
144-
preview/assets/css
145-
preview/html
144+
preview/src/assets/css
146145

147146
# .map files
148147
*.map

.vscode/settings.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

eleventy.config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
export default function (config) {
2+
config.addPassthroughCopy('./preview/src/css/**');
3+
config.addPassthroughCopy('./preview/src/font/**');
4+
config.addPassthroughCopy('./preview/src/js/**');
5+
6+
return {
7+
markdownTemplateEngine: 'njk',
8+
dataTemplateEngine: 'njk',
9+
htmlTemplateEngine: 'njk',
10+
dir: {
11+
input: 'preview/src',
12+
output: 'preview/dist'
13+
}
14+
};
15+
};

0 commit comments

Comments
 (0)