Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lint front-matter, part 2 #26178

Merged
merged 3 commits into from
Apr 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "ARIA: radiogroup role"
slug: web/accessibility/aria/roles/radiogroup_role
slug: Web/Accessibility/ARIA/Roles/radiogroup_role
page-type: aria-role
spec-urls:
- https://w3c.github.io/aria/#radiogroup
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/accelerometer/y/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Accelerometer: y property"
short-title: y
short-title: "y"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for this one?

Copy link
Contributor Author

@OnkarRuikar OnkarRuikar Apr 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The js-yaml library is doing this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why "y" and not "x"?

Copy link
Contributor Author

@OnkarRuikar OnkarRuikar Apr 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha, welcome to the world of YAML!

In YAML boolean value can be y|Y|yes|Yes|YES|n|N|no|No|NO|true|True|TRUE|false|False|FALSE |on|On|ON|off|Off|OFF.[ref]
So short-title: y is treated as short-title: true, hence short-title: "y" is technically correct. 🤓

How do you want to handle this? We can leave it as it is. Or in front matter schema define short-title as string or boolean type, this would be technically very wrong.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ha! That makes sense. Thank you!

slug: Web/API/Accelerometer/y
page-type: web-api-instance-property
status:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ slug: Web/API/Background_Synchronization_API
page-type: web-api-overview
status:
- experimental
spec-urls: https://wicg.github.io/background-sync/spec/
browser-compat: api.SyncManager
spec-urls: https://wicg.github.io/background-sync/spec/
---

{{DefaultAPISidebar("Background Sync")}}{{Securecontext_Header}}{{SeeCompatTable}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/csspositionvalue/y/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "CSSPositionValue: y property"
short-title: y
short-title: "y"
slug: Web/API/CSSPositionValue/y
page-type: web-api-instance-property
status:
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/cssrotate/y/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "CSSRotate: y property"
short-title: y
short-title: "y"
slug: Web/API/CSSRotate/y
page-type: web-api-instance-property
browser-compat: api.CSSRotate.y
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/cssscale/y/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "CSSScale: y property"
short-title: y
short-title: "y"
slug: Web/API/CSSScale/y
page-type: web-api-instance-property
browser-compat: api.CSSScale.y
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/csstranslate/y/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "CSSTranslate: y property"
short-title: y
short-title: "y"
slug: Web/API/CSSTranslate/y
page-type: web-api-instance-property
browser-compat: api.CSSTranslate.y
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "DeviceMotionEventAcceleration: y property"
short-title: y
short-title: "y"
slug: Web/API/DeviceMotionEventAcceleration/y
page-type: web-api-instance-property
browser-compat: api.DeviceMotionEventAcceleration.y
Expand Down
3 changes: 2 additions & 1 deletion files/en-us/web/api/document/startviewtransition/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ title: "Document: startViewTransition() method"
short-title: startViewTransition()
slug: Web/API/Document/startViewTransition
page-type: web-api-instance-method
status: experimental
status:
- experimental
browser-compat: api.Document.startViewTransition
---

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/dompoint/y/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "DOMPoint: y property"
short-title: y
short-title: "y"
slug: Web/API/DOMPoint/y
page-type: web-api-instance-property
browser-compat: api.DOMPoint.y
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/dompointreadonly/y/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "DOMPointReadOnly: y property"
short-title: y
short-title: "y"
slug: Web/API/DOMPointReadOnly/y
page-type: web-api-instance-property
browser-compat: api.DOMPointReadOnly.y
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/domrectreadonly/y/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "DOMRectReadOnly: y property"
short-title: y
short-title: "y"
slug: Web/API/DOMRectReadOnly/y
page-type: web-api-instance-property
browser-compat: api.DOMRectReadOnly.y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "Element: animationcancel event"
short-title: animationcancel
slug: Web/API/Element/animationcancel_event
browser-compat: api.Element.animationcancel_event
page-type: web-api-event
browser-compat: api.Element.animationcancel_event
---

{{APIRef}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/element/animationend_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "Element: animationend event"
short-title: animationend
slug: Web/API/Element/animationend_event
browser-compat: api.Element.animationend_event
page-type: web-api-event
browser-compat: api.Element.animationend_event
---

{{APIRef}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "Element: animationiteration event"
short-title: animationiteration
slug: Web/API/Element/animationiteration_event
browser-compat: api.Element.animationiteration_event
page-type: web-api-event
browser-compat: api.Element.animationiteration_event
---

{{APIRef}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "Element: animationstart event"
short-title: animationstart
slug: Web/API/Element/animationstart_event
browser-compat: api.Element.animationstart_event
page-type: web-api-event
browser-compat: api.Element.animationstart_event
---

{{APIRef}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "Element: gotpointercapture event"
short-title: gotpointercapture
slug: Web/API/Element/gotpointercapture_event
browser-compat: api.Element.gotpointercapture_event
page-type: web-api-event
browser-compat: api.Element.gotpointercapture_event
---

{{APIRef}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "Element: lostpointercapture event"
short-title: lostpointercapture
slug: Web/API/Element/lostpointercapture_event
browser-compat: api.Element.lostpointercapture_event
page-type: web-api-event
browser-compat: api.Element.lostpointercapture_event
---

{{APIRef}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/element/pointercancel_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "Element: pointercancel event"
short-title: pointercancel
slug: Web/API/Element/pointercancel_event
browser-compat: api.Element.pointercancel_event
page-type: web-api-event
browser-compat: api.Element.pointercancel_event
---

{{APIRef}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/element/pointerdown_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "Element: pointerdown event"
short-title: pointerdown
slug: Web/API/Element/pointerdown_event
browser-compat: api.Element.pointerdown_event
page-type: web-api-event
browser-compat: api.Element.pointerdown_event
---

{{APIRef}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/element/pointerenter_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "Element: pointerenter event"
short-title: pointerenter
slug: Web/API/Element/pointerenter_event
browser-compat: api.Element.pointerenter_event
page-type: web-api-event
browser-compat: api.Element.pointerenter_event
---

{{APIRef}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/element/pointerleave_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "Element: pointerleave event"
short-title: pointerleave
slug: Web/API/Element/pointerleave_event
browser-compat: api.Element.pointerleave_event
page-type: web-api-event
browser-compat: api.Element.pointerleave_event
---

{{APIRef}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/element/pointermove_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "Element: pointermove event"
short-title: pointermove
slug: Web/API/Element/pointermove_event
browser-compat: api.Element.pointermove_event
page-type: web-api-event
browser-compat: api.Element.pointermove_event
---

{{APIRef}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/element/pointerout_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "Element: pointerout event"
short-title: pointerout
slug: Web/API/Element/pointerout_event
browser-compat: api.Element.pointerout_event
page-type: web-api-event
browser-compat: api.Element.pointerout_event
---

{{APIRef}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/element/pointerover_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "Element: pointerover event"
short-title: pointerover
slug: Web/API/Element/pointerover_event
browser-compat: api.Element.pointerover_event
page-type: web-api-event
browser-compat: api.Element.pointerover_event
---

{{APIRef}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/element/pointerup_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "Element: pointerup event"
short-title: pointerup
slug: Web/API/Element/pointerup_event
browser-compat: api.Element.pointerup_event
page-type: web-api-event
browser-compat: api.Element.pointerup_event
---

{{APIRef}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "Element: transitioncancel event"
short-title: transitioncancel
slug: Web/API/Element/transitioncancel_event
browser-compat: api.Element.transitioncancel_event
page-type: web-api-event
browser-compat: api.Element.transitioncancel_event
---

{{APIRef}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/element/transitionend_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "Element: transitionend event"
short-title: transitionend
slug: Web/API/Element/transitionend_event
browser-compat: api.Element.transitionend_event
page-type: web-api-event
browser-compat: api.Element.transitionend_event
---

{{APIRef}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/element/transitionrun_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "Element: transitionrun event"
short-title: transitionrun
slug: Web/API/Element/transitionrun_event
browser-compat: api.Element.transitionrun_event
page-type: web-api-event
browser-compat: api.Element.transitionrun_event
---

{{APIRef}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "Element: transitionstart event"
short-title: transitionstart
slug: Web/API/Element/transitionstart_event
browser-compat: api.Element.transitionstart_event
page-type: web-api-event
browser-compat: api.Element.transitionstart_event
---

{{APIRef}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/gyroscope/y/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Gyroscope: y property"
short-title: y
short-title: "y"
slug: Web/API/Gyroscope/y
page-type: web-api-instance-property
browser-compat: api.Gyroscope.y
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/htmlimageelement/y/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "HTMLImageElement: y property"
short-title: y
short-title: "y"
slug: Web/API/HTMLImageElement/y
page-type: web-api-instance-property
browser-compat: api.HTMLImageElement.y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "HTMLInputElement: select event"
short-title: select
slug: Web/API/HTMLInputElement/select_event
browser-compat: api.HTMLInputElement.select_event
page-type: web-api-event
browser-compat: api.HTMLInputElement.select_event
---

{{APIRef}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: "HTMLTextAreaElement: select event"
short-title: select
slug: Web/API/HTMLTextAreaElement/select_event
browser-compat: api.HTMLTextAreaElement.select_event
page-type: web-api-event
browser-compat: api.HTMLTextAreaElement.select_event
---

{{APIRef}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/layoutshift/hadrecentinput/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ title: "LayoutShift: hadRecentInput property"
short-title: hadRecentInput
slug: Web/API/LayoutShift/hadRecentInput
page-type: web-api-instance-property
browser-compat: api.LayoutShift.hadRecentInput
status:
- experimental
browser-compat: api.LayoutShift.hadRecentInput
---

{{SeeCompatTable}}{{APIRef("Performance API")}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/layoutshift/lastinputtime/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ title: "LayoutShift: lastInputTime property"
short-title: lastInputTime
slug: Web/API/LayoutShift/lastInputTime
page-type: web-api-instance-property
browser-compat: api.LayoutShift.lastInputTime
status:
- experimental
browser-compat: api.LayoutShift.lastInputTime
---

{{SeeCompatTable}}{{APIRef("Performance API")}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/layoutshift/sources/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ title: "LayoutShift: sources property"
short-title: sources
slug: Web/API/LayoutShift/sources
page-type: web-api-instance-property
browser-compat: api.LayoutShift.sources
status:
- experimental
browser-compat: api.LayoutShift.sources
---

{{SeeCompatTable}}{{APIRef("Performance API")}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/layoutshift/value/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ title: "LayoutShift: value property"
short-title: value
slug: Web/API/LayoutShift/value
page-type: web-api-instance-property
browser-compat: api.LayoutShift.value
status:
- experimental
browser-compat: api.LayoutShift.value
---

{{SeeCompatTable}}{{APIRef("Performance API")}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/magnetometer/y/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Magnetometer: y property"
short-title: y
short-title: "y"
slug: Web/API/Magnetometer/y
page-type: web-api-instance-property
status:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: Media Capture and Streams API (Media Stream)
slug: Web/API/Media_Capture_and_Streams_API
browser-compat: api.MediaStream
page-type: web-api-overview
browser-compat: api.MediaStream
---

{{DefaultAPISidebar("Media Capture and Streams")}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/mouseevent/y/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "MouseEvent: y property"
short-title: y
short-title: "y"
slug: Web/API/MouseEvent/y
page-type: web-api-instance-property
browser-compat: api.MouseEvent.y
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/performance/memory/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ title: "Performance: memory property"
short-title: memory
slug: Web/API/Performance/memory
page-type: web-api-instance-property
browser-compat: api.Performance.memory
status:
- deprecated
- non-standard
browser-compat: api.Performance.memory
---

{{APIRef("Performance API")}} {{Deprecated_Header}}{{Non-standard_header}}
Expand Down
Loading