Skip to content

chore: Move Games sidebar into front matter #40322

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

Merged
merged 1 commit into from
Jul 11, 2025

Conversation

dipikabh
Copy link
Contributor

Description

This PR:

  • Renames files/sidebars/gamessidebar.yaml to files/sidebars/games.yaml
  • Adds sidebar: games to the front matter
  • Removes the {{GamesSidebar}} macro

Motivation

With the support for sidebars in front matter, the sidebar macro can be removed now

Related issues and pull requests

@dipikabh dipikabh requested a review from bsmth July 11, 2025 14:42
@dipikabh dipikabh requested review from a team as code owners July 11, 2025 14:43
@github-actions github-actions bot added Content:Games Games docs size/m [PR only] 51-500 LoC changed labels Jul 11, 2025
Copy link
Contributor

Preview URLs (66 pages)
Flaws (104)

Note! 38 documents with no flaws that don't need to be listed. 🎉

URL: /en-US/docs/Games/Tutorials/2D_breakout_game_Phaser
Title: 2D breakout game using Phaser
Flaw count: 2

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Initialize_the_framework which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Initialize_the_framework which is a redirect

URL: /en-US/docs/Games/Tutorials/2D_breakout_game_Phaser/Animations_and_tweens
Title: Animations and tweens
Flaw count: 4

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Extra_lives which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Buttons which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Extra_lives which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Buttons which is a redirect

URL: /en-US/docs/Games/Tutorials/2D_breakout_game_Phaser/Bounce_off_the_walls
Title: Bounce off the walls
Flaw count: 4

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Physics which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Player_paddle_and_controls which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Physics which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Player_paddle_and_controls which is a redirect

URL: /en-US/docs/Games/Tutorials/2D_breakout_game_Phaser/Build_the_brick_field
Title: Build the brick field
Flaw count: 4

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Game_over which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Collision_detection which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Game_over which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Collision_detection which is a redirect

URL: /en-US/docs/Games/Tutorials/2D_breakout_game_Phaser/Buttons
Title: Buttons
Flaw count: 4

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Animations_and_tweens which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Randomizing_gameplay which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Animations_and_tweens which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Randomizing_gameplay which is a redirect

URL: /en-US/docs/Games/Tutorials/2D_breakout_game_Phaser/Collision_detection
Title: Collision detection
Flaw count: 4

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Build_the_brick_field which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/The_score which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Build_the_brick_field which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/The_score which is a redirect

URL: /en-US/docs/Games/Tutorials/2D_breakout_game_Phaser/Extra_lives
Title: Extra lives
Flaw count: 4

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Win_the_game which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Animations_and_tweens which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Win_the_game which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Animations_and_tweens which is a redirect

URL: /en-US/docs/Games/Tutorials/2D_breakout_game_Phaser/Game_over
Title: Game over
Flaw count: 4

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Player_paddle_and_controls which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Build_the_brick_field which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Player_paddle_and_controls which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Build_the_brick_field which is a redirect

URL: /en-US/docs/Games/Tutorials/2D_breakout_game_Phaser/Initialize_the_framework
Title: Initialize the framework
Flaw count: 4

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Scaling which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Scaling which is a redirect

URL: /en-US/docs/Games/Tutorials/2D_breakout_game_Phaser/Load_the_assets_and_print_them_on_screen
Title: Load the assets and print them on screen
Flaw count: 4

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Scaling which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Move_the_ball which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Scaling which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Move_the_ball which is a redirect

URL: /en-US/docs/Games/Tutorials/2D_breakout_game_Phaser/Move_the_ball
Title: Move the ball
Flaw count: 4

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Load_the_assets_and_print_them_on_screen which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Physics which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Load_the_assets_and_print_them_on_screen which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Physics which is a redirect

URL: /en-US/docs/Games/Tutorials/2D_breakout_game_Phaser/Physics
Title: Physics
Flaw count: 4

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Move_the_ball which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Bounce_off_the_walls which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Move_the_ball which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Bounce_off_the_walls which is a redirect

URL: /en-US/docs/Games/Tutorials/2D_breakout_game_Phaser/Player_paddle_and_controls
Title: Player paddle and controls
Flaw count: 4

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Bounce_off_the_walls which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Game_over which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Bounce_off_the_walls which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Game_over which is a redirect

URL: /en-US/docs/Games/Tutorials/2D_breakout_game_Phaser/Randomizing_gameplay
Title: Randomizing gameplay
Flaw count: 2

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Buttons which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Buttons which is a redirect

URL: /en-US/docs/Games/Tutorials/2D_breakout_game_Phaser/Scaling
Title: Scaling
Flaw count: 4

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Initialize_the_framework which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Load_the_assets_and_print_them_on_screen which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Initialize_the_framework which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Load_the_assets_and_print_them_on_screen which is a redirect

URL: /en-US/docs/Games/Tutorials/2D_breakout_game_Phaser/The_score
Title: The score
Flaw count: 4

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Collision_detection which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Win_the_game which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Collision_detection which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Win_the_game which is a redirect

URL: /en-US/docs/Games/Tutorials/2D_breakout_game_Phaser/Win_the_game
Title: Win the game
Flaw count: 4

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/The_score which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Extra_lives which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/The_score which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_Phaser/Extra_lives which is a redirect

URL: /en-US/docs/Games/Tutorials/2D_Breakout_game_pure_JavaScript
Title: 2D breakout game using pure JavaScript
Flaw count: 2

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Create_the_Canvas_and_draw_on_it which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Create_the_Canvas_and_draw_on_it which is a redirect

URL: /en-US/docs/Games/Tutorials/2D_Breakout_game_pure_JavaScript/Bounce_off_the_walls
Title: Bounce off the walls
Flaw count: 4

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Move_the_ball which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Paddle_and_keyboard_controls which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Move_the_ball which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Paddle_and_keyboard_controls which is a redirect

URL: /en-US/docs/Games/Tutorials/2D_Breakout_game_pure_JavaScript/Build_the_brick_field
Title: Build the brick field
Flaw count: 4

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Game_over which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Collision_detection which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Game_over which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Collision_detection which is a redirect

URL: /en-US/docs/Games/Tutorials/2D_Breakout_game_pure_JavaScript/Collision_detection
Title: Collision detection
Flaw count: 4

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Build_the_brick_field which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Track_the_score_and_win which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Build_the_brick_field which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Track_the_score_and_win which is a redirect

URL: /en-US/docs/Games/Tutorials/2D_Breakout_game_pure_JavaScript/Create_the_Canvas_and_draw_on_it
Title: Create the Canvas and draw on it
Flaw count: 4

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Move_the_ball which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Move_the_ball which is a redirect

URL: /en-US/docs/Games/Tutorials/2D_Breakout_game_pure_JavaScript/Finishing_up
Title: Finishing up
Flaw count: 2

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Mouse_controls which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Mouse_controls which is a redirect

URL: /en-US/docs/Games/Tutorials/2D_Breakout_game_pure_JavaScript/Game_over
Title: Game over
Flaw count: 4

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Paddle_and_keyboard_controls which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Build_the_brick_field which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Paddle_and_keyboard_controls which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Build_the_brick_field which is a redirect

URL: /en-US/docs/Games/Tutorials/2D_Breakout_game_pure_JavaScript/Mouse_controls
Title: Mouse controls
Flaw count: 4

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Track_the_score_and_win which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Finishing_up which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Track_the_score_and_win which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Finishing_up which is a redirect

URL: /en-US/docs/Games/Tutorials/2D_Breakout_game_pure_JavaScript/Move_the_ball
Title: Move the ball
Flaw count: 4

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Create_the_Canvas_and_draw_on_it which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Bounce_off_the_walls which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Create_the_Canvas_and_draw_on_it which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Bounce_off_the_walls which is a redirect

URL: /en-US/docs/Games/Tutorials/2D_Breakout_game_pure_JavaScript/Paddle_and_keyboard_controls
Title: Paddle and keyboard controls
Flaw count: 4

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Bounce_off_the_walls which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Game_over which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Bounce_off_the_walls which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Game_over which is a redirect

URL: /en-US/docs/Games/Tutorials/2D_Breakout_game_pure_JavaScript/Track_the_score_and_win
Title: Track the score and win
Flaw count: 4

  • macros:
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Collision_detection which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Mouse_controls which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Collision_detection which is a redirect
    • Macro produces link /en-US/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript/Mouse_controls which is a redirect

Copy link
Member

@bsmth bsmth left a comment

Choose a reason for hiding this comment

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

LGTM, if we land this, we should remove the macro from translated content because it's been renamed. See https://redirect.github.com/mdn/translated-content/pull/27971

@dipikabh dipikabh merged commit 21addd3 into mdn:main Jul 11, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:Games Games docs size/m [PR only] 51-500 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants