Skip to content

Commit 848a2d6

Browse files
committed
chore: revert ssr
we'll have to either patch or reimplement like we did in rhds
1 parent f4a6dd9 commit 848a2d6

File tree

3 files changed

+19
-35
lines changed

3 files changed

+19
-35
lines changed

eleventy.config.cjs

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const { EleventyRenderPlugin } = require('@11ty/eleventy');
22
const SyntaxHighlightPlugin = require('@11ty/eleventy-plugin-syntaxhighlight');
33
const DirectoryOutputPlugin = require('@11ty/eleventy-plugin-directory-output');
4-
const LitSSRPlugin = require('@lit-labs/eleventy-plugin-lit');
54

65
const PfeAssetsPlugin = require('./docs/_plugins/pfe-assets.cjs');
76
const EmptyParagraphPlugin = require('./docs/_plugins/empty-p.cjs');
@@ -19,7 +18,7 @@ const TocPlugin = require('@patternfly/pfe-tools/11ty/plugins/table-of-contents.
1918
const 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)(atch)?)|((s)(erve))?/))) {
10697
eleventyConfig.addPlugin(DirectoryOutputPlugin, {

package-lock.json

Lines changed: 14 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@
186186
],
187187
"dependencies": [
188188
"build:core",
189-
"build:elements",
190189
"analyze"
191190
]
192191
},
@@ -299,9 +298,6 @@
299298
"@commitlint/cli": "^19.4.0",
300299
"@commitlint/config-conventional": "^19.2.2",
301300
"@jspm/generator": "^2.1.3",
302-
"@lit-labs/eleventy-plugin-lit": "^1.0.5",
303-
"@lit-labs/ssr": "^3.3.1",
304-
"@lit-labs/ssr-client": "^1.1.7",
305301
"@lit/react": "^1.0.5",
306302
"@octokit/core": "^6.1.2",
307303
"@patternfly/patternfly": "^4.224.5",

0 commit comments

Comments
 (0)