diff --git a/docs/assets/plugins/metadata/metadata.js b/docs/assets/plugins/metadata/metadata.js index 774b06de5..aa44de7d9 100644 --- a/docs/assets/plugins/metadata/metadata.js +++ b/docs/assets/plugins/metadata/metadata.js @@ -175,6 +175,21 @@ return table.outerHTML; } + function createDependenciesList(dependencies) { + const ul = document.createElement('ul'); + ul.innerHTML = ` + ${dependencies + .map( + dependency => ` +
${escapeHtml(dependency)}${tag}.
- ${createDependentsList(data.dependents)}
+ ${createDependenciesList(data.dependencies)}
`;
}
diff --git a/docs/getting-started/changelog.md b/docs/getting-started/changelog.md
index 6a9052809..a44c4a75f 100644
--- a/docs/getting-started/changelog.md
+++ b/docs/getting-started/changelog.md
@@ -16,6 +16,7 @@ _During the beta period, these restrictions may be relaxed in the event of a mis
- Fixed a bug where `sl-hide` would be emitted twice when closing an alert with `hide()`
- Fixed a bug in `sl-color-picker` where the toggle button was smaller than the preview button in Safari
- Fixed a bug in `sl-tab-group` where activating a nested tab group didn't work properly [#299](https://github.com/shoelace-style/shoelace/issues/299)
+- Updated the docs to show dependencies instead of dependents which is much more useful when working with the custom elements bundle
## 2.0.0-beta.25