From 22e801690294e8dea578a2f131dd28cfe5a70451 Mon Sep 17 00:00:00 2001 From: prushfor Date: Tue, 24 Sep 2024 13:55:04 -0400 Subject: [PATCH] Create media attribute docs Add map-link disabled attribute description in en and fr Update description of map-layer media attribute in en and fr Deprecate zoomin, zoomout links Add map-style-api.md in fr and en, add to sidebar.js Add node-version script to package.json Change docusaurus config to only warn on broken links --- docs/api/layer-api.md | 4 + docs/api/map-link-api.md | 15 + docs/api/map-style-api.md | 46 + docs/elements/layer.md | 14 + docs/elements/link.md | 31 +- docs/elements/style.md | 18 +- docusaurus.config.js | 2 +- .../current/api/layer-api.md | 5 + .../current/api/map-link-api.md | 14 + .../current/api/map-style-api.md | 45 + .../current/elements/layer.md | 10 + .../current/elements/link.md | 24 +- .../current/elements/style.md | 10 + package-lock.json | 10433 ++++++++++------ package.json | 5 +- sidebars.js | 3 +- 16 files changed, 7039 insertions(+), 3640 deletions(-) create mode 100644 docs/api/map-style-api.md create mode 100644 i18n/fr/docusaurus-plugin-content-docs/current/api/map-style-api.md diff --git a/docs/api/layer-api.md b/docs/api/layer-api.md index 347ba5c2a..d22005e10 100644 --- a/docs/api/layer-api.md +++ b/docs/api/layer-api.md @@ -124,6 +124,10 @@ To get the ``'s opacity value: let layer = document.querySelector('map-layer'); let opacity = layer.opacity; ``` +--- +### media + +Reflects the [media](../elements/layer#media) attribute of the `` element. ### extent diff --git a/docs/api/map-link-api.md b/docs/api/map-link-api.md index 7fda9c5a2..ad0e3118c 100644 --- a/docs/api/map-link-api.md +++ b/docs/api/map-link-api.md @@ -4,6 +4,21 @@ title: HTMLLinkElement slug: /api/map-link-api --- +# HTMLLinkElement + +The `` element is intended to implement an extension of the HTML `` +element and `HTMLLinkElement` API. This document reflects proposed changes to that +API and is a work in progress. + + +## Properties + +### media + +Reflects the [media](../elements/link#media) attribute of the `` element. + +--- + This document is copied from the old "Custom Rendering API" page, and is under construction. It will eventually describe the API of the map-link custom element; the "Custom Rendering API" is currently sourced from the map-link custom element, diff --git a/docs/api/map-style-api.md b/docs/api/map-style-api.md new file mode 100644 index 000000000..512b9e9cb --- /dev/null +++ b/docs/api/map-style-api.md @@ -0,0 +1,46 @@ +--- +id: map-style-api +title: "HTMLStyleElement" +slug: /api/map-style-api +--- + +# HTMLStyleElement + +The `` element is an extension of the HTML `