Skip to content

Commit 50ec21c

Browse files
committed
docs: use @web/rollup-plugin-html with latest @open-wc/building-rollup
1 parent 73fad94 commit 50ec21c

File tree

7 files changed

+90
-245
lines changed

7 files changed

+90
-245
lines changed

patches/@popperjs+core+2.10.2.patch

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/node_modules/@popperjs/core/dist/esm/modifiers/computeStyles.js b/node_modules/@popperjs/core/dist/esm/modifiers/computeStyles.js
2-
index 4434402..6379324 100644
2+
index 4434402..16bd6a9 100644
33
--- a/node_modules/@popperjs/core/dist/esm/modifiers/computeStyles.js
44
+++ b/node_modules/@popperjs/core/dist/esm/modifiers/computeStyles.js
55
@@ -22,8 +22,8 @@ function roundOffsetsByDPR(_ref) {
@@ -8,18 +8,16 @@ index 4434402..6379324 100644
88
return {
99
- x: round(round(x * dpr) / dpr) || 0,
1010
- y: round(round(y * dpr) / dpr) || 0
11-
+ x: round(x * dpr) / dpr || 0,
12-
+ y: round(y * dpr) / dpr || 0,
11+
+ x: round(x * dpr) / dpr || 0,
12+
+ y: round(y * dpr) / dpr || 0,
1313
};
1414
}
1515

16-
@@ -88,6 +88,10 @@ export function mapToStyles(_ref2) {
16+
@@ -88,6 +88,8 @@ export function mapToStyles(_ref2) {
1717
position: position
1818
}, adaptive && unsetSides);
1919

2020
+ ({x, y} = roundOffsets === true ? roundOffsetsByDPR({x, y}) : {x, y});
21-
+
22-
+ console.log(x,y);
2321
+
2422
if (gpuAcceleration) {
2523
var _Object$assign;

projects/documentation/.eleventy.cjs

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ const syntaxHighlight = require('@11ty/eleventy-plugin-syntaxhighlight');
1313

1414
module.exports = function (eleventyConfig) {
1515
eleventyConfig.setUseGitIgnore(false);
16+
eleventyConfig.addPassthroughCopy('content/favicon.ico');
17+
eleventyConfig.addPassthroughCopy('content/favicon.svg');
1618
eleventyConfig.addPassthroughCopy('content/404.html');
1719
eleventyConfig.addPassthroughCopy('content/serviceWorker.js');
1820
eleventyConfig.addPassthroughCopy('content/images/**/*');

projects/documentation/_building-rollup/createMpaConfig.js

-50
This file was deleted.

projects/documentation/_building-rollup/utils.js

-117
This file was deleted.

projects/documentation/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"build-search-index": "node scripts/build-search-index.js",
1313
"build:eleventy": "eleventy --config=.eleventy.cjs --incremental",
1414
"build:move-css": "cp src/components/*.css _site/src/components/",
15-
"build:postcss": "postcss src/components/{styles,fonts}.css -d dist/ --config src/postcss.config.cjs",
15+
"build:postcss": "postcss src/components/{styles,fonts}.css -d _site/ --config src/postcss.config.cjs",
1616
"build:production": "SWC_DIR=spectrum-web-components yarn build",
1717
"build:rollup": "rollup -c rollup.config.js",
1818
"build:tsc": "tsc --build tsconfig.json",
@@ -38,6 +38,7 @@
3838
"@types/prismjs": "^1.16.6",
3939
"@web/dev-server": "^0.1.25",
4040
"@web/rollup-plugin-copy": "^0.3.0",
41+
"@web/rollup-plugin-html": "^1.10.1",
4142
"alex": "^9.1.0",
4243
"lunr": "^2.3.9",
4344
"markdown-it-anchor": "^7.1.0",

0 commit comments

Comments
 (0)