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

Deprecate macros only used in translated content #6252

Merged
merged 2 commits into from
May 12, 2022
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
5 changes: 5 additions & 0 deletions kumascript/macros/CSSTutorialTOC.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<%
// Throw a MacroDeprecatedError flaw
// Condition for removal: no more use in translated-content (May 2022: 45 occurrences)
// 0 occurrences left in en-US
mdn.deprecated();

var l = env.locale;

if(l === "ru"){
Expand Down
5 changes: 5 additions & 0 deletions kumascript/macros/DOM0.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<%
// Throw a MacroDeprecatedError flaw
// Condition for removal: no more use in translated-content (May 2022: 285 occurrences)
// 0 occurrences left in en-US
mdn.deprecated();

var s_str = mdn.localString({
"en-US": "DOM Level 0. Not part of any standard.",
"es": "DOM Nivel 0. No es parte de ninguna norma.",
Expand Down
5 changes: 5 additions & 0 deletions kumascript/macros/DiscussionList.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
// $4 Twitter ID (null if none)
// $5 Stack Overflow tag (null if none)

// Throw a MacroDeprecatedError flaw
// Condition for removal: no more use in translated-content (May 2022: 150 occurrences)
// 0 occurrences left in en-US
mdn.deprecated();

var lang = env.locale; /* get the page language */
var mailingList;
var newsgroup;
Expand Down
5 changes: 5 additions & 0 deletions kumascript/macros/EditorGuideQuicklinks.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<%
// Throw a MacroDeprecatedError flaw
// Condition for removal: no more use in translated-content (May 2022: 9 occurrences)
// 0 occurrences left in en-US
mdn.deprecated();

var s_guide = 'Editor guide';
var s_ckeditor = 'CKEditor documentation site';
var s_mxr = 'MXR: Mozilla source cross-reference';
Expand Down
5 changes: 5 additions & 0 deletions kumascript/macros/GlossaryList.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
// * `split` : A string with one of the value `h1`, `h2`, `h3`, `h4`, `h5`, `h6`. If this property is define with a valid value, the list of terms will be split with intermediate title for each letter.
// * `css` : A sring representing some extra CSS class to apply to the list (to the top most UL elements)

// Throw a MacroDeprecatedError flaw
// Condition for removal: no more use in translated-content (May 2022: 42 occurrences)
// 0 occurrences left in en-US
mdn.deprecated();

var URL = "/en-US/docs/Glossary";

var i;
Expand Down
6 changes: 6 additions & 0 deletions kumascript/macros/HTML5ArticleTOC.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
<%

// Throw a MacroDeprecatedError flaw
// Condition for removal: no more use in translated-content (May 2022: 6 occurrences)
// 0 occurrences left in en-US
mdn.deprecated();

var LOCALE = env.locale;
var PATH = "/" + LOCALE + "/docs/";
var HTML5Documentation = "HTML5 Documentation";
Expand Down
5 changes: 5 additions & 0 deletions kumascript/macros/HTMLVersionInline.ejs
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<%
/* one parameter: HTML version */

// Throw a MacroDeprecatedError flaw
// Condition for removal: no more use in translated-content (May 2022: 585 occurrences)
// 0 occurrences left in en-US
mdn.deprecated();

var link = "HTML " + $0;
var envLocale = env.locale;

Expand Down
5 changes: 5 additions & 0 deletions kumascript/macros/Note.ejs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<%
// Throw a MacroDeprecatedError flaw
// Condition for removal: no more use in translated-content (May 2022: 381 occurrences)
// 0 occurrences left in en-US
mdn.deprecated();

/* Purpose: Important paragraphs, NOT endnotes or footnotes */
%><%- await template('NoteStart') %><%-$0%><%- await template('NoteEnd') %>
7 changes: 7 additions & 0 deletions kumascript/macros/NoteEnd.ejs
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
<%
// Throw a MacroDeprecatedError flaw
// Condition for removal: no more use in translated-content (May 2022: 420 occurrences)
// 0 occurrences left in en-US
mdn.deprecated();
%>

</div>
5 changes: 5 additions & 0 deletions kumascript/macros/NoteStart.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
// Parameters
// None.

// Throw a MacroDeprecatedError flaw
// Condition for removal: no more use in translated-content (May 2022: 420 occurrences)
// 0 occurrences left in en-US
mdn.deprecated();

var note = mdn.localString({
"en-US": "Note:",
"de": "Hinweis:",
Expand Down
5 changes: 5 additions & 0 deletions kumascript/macros/ObsoleteGeneric.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ $3 : additional information required for the type specified by the first paramet
method requires the method name
*/

// Throw a MacroDeprecatedError flaw
// Condition for removal: no more use in translated-content (May 2022: 1347 occurrences)
// 0 occurrences left in en-US
mdn.deprecated();

var lang = env.locale;

var str = "";
Expand Down
5 changes: 5 additions & 0 deletions kumascript/macros/Obsolete_Header.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
/* prepend version with HTML, CSS, JS or Gecko for those techs */
/* for backwards compatibility unprefixed is Gecko, please avoid this */

// Throw a MacroDeprecatedError flaw
// Condition for removal: no more use in translated-content (May 2022: 690 occurrences)
// 0 occurrences left in en-US
mdn.deprecated();

var str = "";

if ($0) {
Expand Down
5 changes: 5 additions & 0 deletions kumascript/macros/Obsolete_Inline.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
// compatibility, unprefixed versions are assumed to refer to Gecko, but
// you shouldn't rely on this.

// Throw a MacroDeprecatedError flaw
// Condition for removal: no more use in translated-content (May 2022: 1824 occurrences)
// 0 occurrences left in en-US
mdn.deprecated();

var str = "";
var type = 0; // assume we want the text badge

Expand Down
5 changes: 5 additions & 0 deletions kumascript/macros/TemplateLink.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
* $0 - Name of the template to link to.
*/

// Throw a MacroDeprecatedError flaw
// Condition for removal: no more use in translated-content (May 2022: 915 occurrences)
// 0 occurrences left in en-US
mdn.deprecated();

let dest = "https://github.com/mdn/yari/tree/main/kumascript/macros/" + $0 + ".ejs";
let text = $0;
%>
Expand Down
5 changes: 5 additions & 0 deletions kumascript/macros/ToolsSidebar.ejs
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<%

// Throw a MacroDeprecatedError flaw
// Condition for removal: no more use in translated-content (May 2022: 534 occurrences)
// 0 occurrences left in en-US
mdn.deprecated();

const locale = env.locale;

const baseURL = `/${locale}/docs/Tools/`;
Expand Down
5 changes: 5 additions & 0 deletions kumascript/macros/gecko_callout_heading.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
// Parameters:
// $0 - Gecko version

// Throw a MacroDeprecatedError flaw
// Condition for removal: no more use in translated-content (May 2022: 12 occurrences)
// 0 occurrences left in en-US
mdn.deprecated();

var lang = env.locale;
var str = "Gecko " + $0 + " note";

Expand Down
5 changes: 5 additions & 0 deletions kumascript/macros/jsOverrides.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
* @param a list of properties or methods overridden by this object
*/

// Throw a MacroDeprecatedError flaw
// Condition for removal: no more use in translated-content (May 2022: 84 occurrences)
// 0 occurrences left in en-US
mdn.deprecated();

var prototypes = {
"Array": {
methods: [
Expand Down
7 changes: 7 additions & 0 deletions kumascript/macros/languages.ejs
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<% /* This is a no-op, for now. Kuma handles this in the navbar
on the server-side from database relations */ %>

<%
// Throw a MacroDeprecatedError flaw
// Condition for removal: no more use in translated-content (May 2022: 2208 occurrences)
// 0 occurrences left in en-US
mdn.deprecated();
%>
5 changes: 5 additions & 0 deletions kumascript/macros/nextPage.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
/* $0 = the URL of the previous page */
/* $1 = the title of the previous page */

// Throw a MacroDeprecatedError flaw
// Condition for removal: no more use in translated-content (May 2022: 33 occurrences)
// 0 occurrences left in en-US
mdn.deprecated();

var s_text = mdn.localString({
"en-US": "Go to Next Section:",
"fr": "Retourner à la section suivant :",
Expand Down
5 changes: 5 additions & 0 deletions kumascript/macros/previousPage.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
/* $0 = the URL of the previous page */
/* $1 = the title of the previous page */

// Throw a MacroDeprecatedError flaw
// Condition for removal: no more use in translated-content (May 2022: 39 occurrences)
// 0 occurrences left in en-US
mdn.deprecated();

var s_text = mdn.localString({
"en-US": "Go to Previous Section:",
"fr": "Retourner à la section précédente :",
Expand Down
6 changes: 6 additions & 0 deletions kumascript/macros/web.link.ejs
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
<%
// Throw a MacroDeprecatedError flaw
// Condition for removal: no more use in translated-content (May 2022: 1668 occurrences)
// 0 occurrences left in en-US
mdn.deprecated();
%>
<%-web.link($0, $1, $2, $3)%>
5 changes: 5 additions & 0 deletions kumascript/macros/wiki.localize.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
* For paremeter details see http://developer.mindtouch.com/en/docs/DekiScript/Reference/Wiki_Functions_and_Variables/Wiki.Localize
*/

// Throw a MacroDeprecatedError flaw
// Condition for removal: no more use in translated-content (May 2022: 39 occurrences)
// 0 occurrences left in en-US
mdn.deprecated();

var str = 'Not implemented, update template.';

switch($0) {
Expand Down
16 changes: 0 additions & 16 deletions kumascript/tests/macros/TemplateLink.test.js

This file was deleted.

40 changes: 0 additions & 40 deletions kumascript/tests/macros/toolssidebar.test.js

This file was deleted.