11const { EleventyRenderPlugin } = require ( '@11ty/eleventy' ) ;
22const SyntaxHighlightPlugin = require ( '@11ty/eleventy-plugin-syntaxhighlight' ) ;
33const DirectoryOutputPlugin = require ( '@11ty/eleventy-plugin-directory-output' ) ;
4- const LitSSRPlugin = require ( '@lit-labs/eleventy-plugin-lit' ) ;
54
65const PfeAssetsPlugin = require ( './docs/_plugins/pfe-assets.cjs' ) ;
76const EmptyParagraphPlugin = require ( './docs/_plugins/empty-p.cjs' ) ;
@@ -19,7 +18,7 @@ const TocPlugin = require('@patternfly/pfe-tools/11ty/plugins/table-of-contents.
1918const markdownItAnchor = require ( 'markdown-it-anchor' ) ;
2019
2120/** @param {import('@11ty/eleventy/src/UserConfig') } eleventyConfig */
22- module . exports = function ( eleventyConfig ) {
21+ module . exports = function ( eleventyConfig ) {
2322 eleventyConfig . amendLibrary ( 'md' , md => md . use ( markdownItAnchor ) ) ;
2423
2524 eleventyConfig . setQuietMode ( true ) ;
@@ -50,10 +49,10 @@ module.exports = function(eleventyConfig) {
5049 eleventyConfig . addPlugin ( TodosPlugin ) ;
5150
5251 /** format date strings */
53- eleventyConfig . addFilter ( 'prettyDate' , function ( dateStr , options = { } ) {
52+ eleventyConfig . addFilter ( 'prettyDate' , function ( dateStr , options = { } ) {
5453 const { dateStyle = 'medium' } = options ;
5554 return new Intl . DateTimeFormat ( 'en-US' , { dateStyle } )
56- . format ( new Date ( dateStr ) ) ;
55+ . format ( new Date ( dateStr ) ) ;
5756 } ) ;
5857
5958 /** fancy syntax highlighting with diff support */
@@ -87,20 +86,12 @@ module.exports = function(eleventyConfig) {
8786 return null ;
8887 } else {
8988 return eleventyConfig . javascriptFunctions
90- . slug ( $ . text ( ) )
91- . replace ( / [ & , + ( ) $ ~ % . ' " : * ? ! < > { } ] / g, '' ) ;
89+ . slug ( $ . text ( ) )
90+ . replace ( / [ & , + ( ) $ ~ % . ' " : * ? ! < > { } ] / g, '' ) ;
9291 }
9392 } ,
9493 } ) ;
9594
96- eleventyConfig . addPlugin ( LitSSRPlugin , {
97- componentModules : [
98- 'elements/pf-card/pf-card.js' ,
99- 'elements/pf-jump-links/pf-jump-links.js' ,
100- ] ,
101- } ) ;
102-
103-
10495 if ( ! process . argv . some ( arg =>
10596 arg . match ( / - - ( ( w ) ( a t c h ) ? ) | ( ( s ) ( e r v e ) ) ? / ) ) ) {
10697 eleventyConfig . addPlugin ( DirectoryOutputPlugin , {
0 commit comments