.eleventy.cjs 640 B

123456789101112131415161718192021
  1. const syntaxHighlight = require('@11ty/eleventy-plugin-syntaxhighlight');
  2. module.exports = function (eleventyConfig) {
  3. eleventyConfig.addPlugin(syntaxHighlight);
  4. eleventyConfig.addPassthroughCopy('docs-src/docs.css');
  5. eleventyConfig.addPassthroughCopy('docs-src/.nojekyll');
  6. eleventyConfig.addPassthroughCopy(
  7. 'node_modules/@webcomponents/webcomponentsjs'
  8. );
  9. eleventyConfig.addPassthroughCopy('node_modules/lit/polyfill-support.js');
  10. return {
  11. dir: {
  12. input: 'docs-src',
  13. output: 'docs',
  14. },
  15. templateExtensionAliases: {
  16. '11ty.cjs': '11ty.js',
  17. '11tydata.cjs': '11tydata.js',
  18. },
  19. };
  20. };