-
Notifications
You must be signed in to change notification settings - Fork 509
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(various): small fixes from diffing with rari (#12045)
* Localize "page-not-created" title. * Don't put .html files into history. * fix html of GlossarySidebar (it had <ol><ol></ol></ol>. * strip https://developer.mozilla.org from links. * use href instead of the deprecated xlink:href. * <code><a>...</a></code> -> <a><code>...</code></a> to be consistent. * reuse PreviousMenuNext for PreviousNext macro. * Consistent attribute order. * Don't inject id's into divs anymore. * Warn on fallback for code collection for live samples (if there's no header found). * Always remove href from "page-not-created" links. * Sort history entries.
- Loading branch information
Showing
17 changed files
with
73 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,5 @@ | ||
<% | ||
/* | ||
Parameter | ||
$0 (first parameter): path of Previous page | ||
$1 (second parameter): path of Next page | ||
Issue | ||
* Problem of Apostrophe (https://developer.mozilla.org/fr/docs/JavaScript_Guide/Op%C3%A9rateurs/Op%C3%A9rateurs_sp%C3%A9ciaux) | ||
*/ | ||
var lang = env.locale; | ||
var strPrevious = ""; | ||
var strNext = ""; | ||
var s_PreviousNext = mdn.localString({ | ||
"en-US": ["« Previous", "Next »"], | ||
"es" : ["« Anterior", "Siguiente »"], | ||
"fr" : ["« Précédent", "Suivant »"], | ||
"ja" : ["« 前のページ", "次のページ »"], | ||
"ko" : ["« 이전", "다음 »"], | ||
"ru" : ["« Предыдущая статья", "Следующая статья »"], | ||
"zh-CN": ["« 上一页", "下一页 »"], | ||
"zh-TW": ["« 前頁", "次頁 »"] | ||
}); | ||
if ($0) { | ||
strPrevious = '<li><a class="button secondary" href="/' + lang + '/docs/' + $0.replace(/ /g, '_') + '">' + s_PreviousNext[0] + '</a></li>'; | ||
} | ||
if ($1) { | ||
strNext = '<li><a class="button secondary" href="/' + lang + '/docs/' + $1.replace(/ /g, '_') + '">' + s_PreviousNext[1] + '</a></li>'; | ||
} | ||
/* two parameters: path of previous page and path to next */ | ||
/* Calls PreviousMenuNext to avoid duplication of translations */ | ||
%> | ||
<ul class="prev-next"> | ||
<%- strPrevious %> | ||
<%- strNext %> | ||
</ul> | ||
<%- await template("PreviousMenuNext", [$0, $1]) %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.