-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update kumascript macros with latest (#1698)
* add missing macro AddonSidebarMain * update macros * Update kumascript/macros/CSSAnimatedProperties.ejs Co-authored-by: Peter Bengtsson <[email protected]> * fix ks unit tests and prettier formatting Co-authored-by: Peter Bengtsson <[email protected]>
- Loading branch information
Showing
10 changed files
with
641 additions
and
353 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<% | ||
var currentSection = $0; | ||
var locale = env.locale; | ||
var slug = env.slug; | ||
var baseURL = '/' + locale + '/docs/Mozilla/Add-ons/'; | ||
function currentPageIsUnder(root) { | ||
rootSlug = 'Mozilla/Add-ons/' + root; | ||
if (slug && slug.indexOf(rootSlug) != -1) { | ||
return 'open'; | ||
} | ||
return ''; | ||
} | ||
var text = mdn.localStringMap({ | ||
'en-US': { | ||
'WebExtensions': 'Browser extensions', | ||
'Themes': 'Themes', | ||
'Community_and_Support': 'Community and Support', | ||
'Channels': 'Channels', | ||
'Blog': 'Add-ons blog', | ||
'Forums': 'Add-on forums', | ||
'#Contact_us': 'Contact us' | ||
}, | ||
'fr': { | ||
'WebExtensions': 'WebExtensions', | ||
'Themes': 'Thèmes', | ||
'Community_and_Support': 'Communauté et Support', | ||
'Channels': 'Canaux de discussions', | ||
'Blog': 'Blog extensions', | ||
'Forums': 'Forum extensions', | ||
'#Contact_us': 'Nous contacter' | ||
}, | ||
'ja': { | ||
'WebExtensions': 'ブラウザー拡張機能', | ||
'Themes': 'テーマ', | ||
'Community_and_Support': 'コミュニティとサポート', | ||
'Channels': 'チャンネル', | ||
'Blog': 'ブログ', | ||
'Forums': 'フォーラム', | ||
'#Contact_us': 'コンタクト' | ||
}, | ||
'ko': { | ||
'WebExtensions': '브라우저 확장 기능', | ||
'Themes': '테마', | ||
'Community_and_Support': '커뮤니티와 지원', | ||
'Channels': '채널', | ||
'Blog': '부가 기능 블로그', | ||
'Forums': '부가 기능 포럼', | ||
'#Contact_us': '연락하기' | ||
}, | ||
'zh-CN': { | ||
'WebExtensions': '浏览器扩展程序', | ||
'Themes': '主题', | ||
'Channels': '渠道', | ||
'Blog': 'Add-ons博客', | ||
'Forums': 'Add-ons论坛', | ||
'Chat': 'Add-ons chat', | ||
'Contact_us': '联系我们' | ||
} | ||
}); | ||
%> | ||
|
||
<section class="Quick_links" id="Quick_Links"> | ||
<ol> | ||
<li><a href="<%=baseURL%>WebExtensions"><strong><%=text['WebExtensions']%></strong></a></li> | ||
<li><a href="<%=baseURL%>Themes"><strong><%=text['Themes']%></strong></a></li> | ||
<li><a href="https://discourse.mozilla.org/c/add-ons"><strong><%=text['Community_and_Support']%></strong></a></li> | ||
<li class="toggle"> | ||
<details> | ||
<summary><%=text['Channels']%></summary> | ||
<ol> | ||
<li><a href="https://blog.mozilla.org/addons"><%=text['Blog']%></a></li> | ||
<li><a href="https://discourse.mozilla.org/c/add-ons"><%=text['Forums']%></a></li> | ||
<li><a href="https://stackoverflow.com/questions/tagged/firefox-addon">Stack Overflow</a></li> | ||
<li><a href="<%=baseURL%>#Contact_us"><%=text['#Contact_us']%></a></li> | ||
</ol> | ||
</details> | ||
</li> | ||
</ol> | ||
</section> |
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.