Skip to content

Commit

Permalink
fix(macros): fix URL issues in sidebar macros (#11082)
Browse files Browse the repository at this point in the history
This updates redirected and deleted document locations in sidebar macros.
The changes will fix ~800 flaws.
  • Loading branch information
OnkarRuikar authored May 14, 2024
1 parent 54a9bc8 commit 2cfbb67
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions kumascript/macros/AddonSidebar.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ async function renderItem(slug) {
"/docs/Mozilla/Add-ons/WebExtensions/Your_second_WebExtension",
"/docs/Mozilla/Add-ons/WebExtensions/Anatomy_of_a_WebExtension",
"/docs/Mozilla/Add-ons/WebExtensions/Examples",
"/docs/Mozilla/Add-ons/WebExtensions/What_next_",
"/docs/Mozilla/Add-ons/WebExtensions/What_next",
]) %>
</ol>
</details>
Expand Down Expand Up @@ -200,7 +200,7 @@ async function renderItem(slug) {
<ol>
<%- await renderItems([
"/docs/Mozilla/Add-ons/WebExtensions/user_interface",
"/docs/Mozilla/Add-ons/WebExtensions/user_interface/Browser_action",
"/docs/Mozilla/Add-ons/WebExtensions/user_interface/Toolbar_button",
"/docs/Mozilla/Add-ons/WebExtensions/user_interface/Page_actions",
"/docs/Mozilla/Add-ons/WebExtensions/user_interface/Sidebars",
"/docs/Mozilla/Add-ons/WebExtensions/user_interface/Context_menu_items",
Expand Down
4 changes: 2 additions & 2 deletions kumascript/macros/FirefoxSidebar.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ const text = mdn.localStringMap({
<details>
<summary><%=text["Add-ons"]%></summary>
<ol>
<li><%-web.smartLink(`${addonsURL}WebExtensions`, null, text["Browser_extensions"])%></li>
<li><%-web.smartLink(`${addonsURL}Themes`, null, text["Themes"])%></li>
<li><%-web.smartLink(`${baseURL}Add-ons/WebExtensions`, null, text["Browser_extensions"])%></li>
<li><a href="https://extensionworkshop.com/documentation/themes/"><%=text["Themes"]%></a></li>
</ol>
</details>
</li>
Expand Down
3 changes: 1 addition & 2 deletions kumascript/macros/GamesSidebar.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -489,9 +489,8 @@ const text = mdn.localStringMap({
<summary><%=text["Techniques"]%></summary>
<ol>
<li><%-web.smartLink(`${baseURL}Techniques/Async_scripts`, null, text["Using_async_scripts_for_asm.js"])%></li>
<li><%-web.smartLink(`${appsURL}Developing/Optimizing_startup_performance`, null, text["Optimizing_startup_performance"])%></li>
<li><%-web.smartLink(`${webURL}Performance/Optimizing_startup_performance`, null, text["Optimizing_startup_performance"])%></li>
<li><%-web.smartLink(`${baseURL}Techniques/WebRTC_data_channels`, null, text["Using_WebRTC_peer-to-peer_data_channels"])%></li>
<li><%-web.smartLink(`${baseURL}Techniques/Efficient_animation_for_web_games`, null, text["Efficient_animation_for_web_games"])%></li>
<li><%-web.smartLink(`${baseURL}Techniques/Audio_for_Web_Games`, null, text["Audio_for_Web_Games"])%></li>
<li><%-web.smartLink(`${baseURL}Techniques/2D_collision_detection`, null, text["2D_collision_detection"])%></li>
<li><%-web.smartLink(`${baseURL}Techniques/Tilemaps`, null, text["Tiles_and_tilemaps_overview"])%></li>
Expand Down

0 comments on commit 2cfbb67

Please sign in to comment.