|
1 | | -'use strict'; |
| 1 | +"use strict"; |
2 | 2 |
|
3 | 3 | module.exports = function (eleventyConfig) { |
4 | 4 | eleventyConfig.addPlugin( |
5 | | - require('@11ty/eleventy-plugin-inclusive-language'), |
| 5 | + require("@11ty/eleventy-plugin-inclusive-language"), |
6 | 6 | { |
7 | 7 | words: |
8 | | - 'simply,obviously,basically,of course,clearly,everyone knows,however,easy' |
9 | | - } |
| 8 | + "simply,obviously,basically,of course,clearly,everyone knows,however,easy", |
| 9 | + }, |
10 | 10 | ); |
11 | 11 |
|
12 | | - eleventyConfig.addPassthroughCopy('docs/css'); |
13 | | - eleventyConfig.addPassthroughCopy('docs/js'); |
14 | | - eleventyConfig.addPassthroughCopy('docs/images'); |
15 | | - eleventyConfig.addPassthroughCopy('docs/CNAME'); |
16 | | - eleventyConfig.addPassthroughCopy('docs/_headers'); |
17 | | - eleventyConfig.addPassthroughCopy('docs/favicon.ico'); |
18 | | - eleventyConfig.addPassthroughCopy('docs/example'); |
19 | | - eleventyConfig.addPassthroughCopy('docs/api/images'); |
20 | | - eleventyConfig.addPassthroughCopy('docs/api/scripts'); |
21 | | - eleventyConfig.addPassthroughCopy('docs/api/styles'); |
| 12 | + eleventyConfig.addPassthroughCopy("docs/css"); |
| 13 | + eleventyConfig.addPassthroughCopy("docs/js"); |
| 14 | + eleventyConfig.addPassthroughCopy("docs/images"); |
| 15 | + eleventyConfig.addPassthroughCopy("docs/CNAME"); |
| 16 | + eleventyConfig.addPassthroughCopy("docs/_headers"); |
| 17 | + eleventyConfig.addPassthroughCopy("docs/favicon.ico"); |
| 18 | + eleventyConfig.addPassthroughCopy("docs/example"); |
| 19 | + eleventyConfig.addPassthroughCopy("docs/api/images"); |
| 20 | + eleventyConfig.addPassthroughCopy("docs/api/scripts"); |
| 21 | + eleventyConfig.addPassthroughCopy("docs/api/styles"); |
22 | 22 |
|
23 | 23 | /* Markdown Plugins */ |
24 | | - const markdown = require('markdown-it')({ |
| 24 | + const markdown = require("markdown-it")({ |
25 | 25 | html: true, |
26 | 26 | linkify: true, |
27 | | - typographer: true |
| 27 | + typographer: true, |
28 | 28 | }); |
29 | 29 |
|
30 | | - markdown.use(require('markdown-it-anchor'), { |
31 | | - slugify: require('uslug'), |
| 30 | + markdown.use(require("markdown-it-anchor"), { |
| 31 | + slugify: require("uslug"), |
32 | 32 | permalink: true, |
33 | 33 | permalinkBefore: true, |
34 | | - permalinkClass: 'direct-link', |
35 | | - permalinkSymbol: '#' |
| 34 | + permalinkClass: "direct-link", |
| 35 | + permalinkSymbol: "#", |
36 | 36 | }); |
37 | 37 |
|
38 | | - markdown.use(require('markdown-it-attrs'), { |
39 | | - leftDelimiter: '{:', |
40 | | - rightDelimiter: '}' |
| 38 | + markdown.use(require("markdown-it-attrs"), { |
| 39 | + leftDelimiter: "{:", |
| 40 | + rightDelimiter: "}", |
41 | 41 | }); |
42 | 42 |
|
43 | | - markdown.use(require('markdown-it-prism')); |
| 43 | + markdown.use(require("markdown-it-prism")); |
44 | 44 |
|
45 | | - markdown.use(require('markdown-it-emoji')); |
| 45 | + markdown.use(require("markdown-it-emoji")); |
46 | 46 |
|
47 | | - eleventyConfig.setLibrary('md', markdown); |
| 47 | + eleventyConfig.setLibrary("md", markdown); |
48 | 48 |
|
49 | 49 | eleventyConfig.setUseGitIgnore(false); |
50 | 50 |
|
51 | 51 | return { |
52 | 52 | passthroughFileCopy: true, |
53 | 53 | dir: { |
54 | | - input: 'docs', |
55 | | - output: 'docs/_site' |
56 | | - } |
| 54 | + input: "docs", |
| 55 | + output: "docs/_site", |
| 56 | + }, |
57 | 57 | }; |
58 | 58 | }; |
0 commit comments