Skip to content

Commit

Permalink
Deploying to gh-pages from @ 2c648cd 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 25, 2023
1 parent b4d046f commit 6f67aad
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion functions/batchConv.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h5>locale: <span class="tsd-signature-type">string</span><span class="tsd-signa
</div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/wikimedia-gadgets/HanAssist/blob/961e484/lib/conversion.ts#L87">conversion.ts:87</a></li></ul></aside></li></ul></section></div>
<li>Defined in <a href="https://github.com/wikimedia-gadgets/HanAssist/blob/2c648cd/lib/conversion.ts#L87">conversion.ts:87</a></li></ul></aside></li></ul></section></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
Expand Down
2 changes: 1 addition & 1 deletion functions/conv.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h5>locale: <span class="tsd-signature-type">string</span><span class="tsd-signa
</div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/wikimedia-gadgets/HanAssist/blob/961e484/lib/conversion.ts#L68">conversion.ts:68</a></li></ul></aside></li></ul></section></div>
<li>Defined in <a href="https://github.com/wikimedia-gadgets/HanAssist/blob/2c648cd/lib/conversion.ts#L68">conversion.ts:68</a></li></ul></aside></li></ul></section></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
Expand Down
2 changes: 1 addition & 1 deletion functions/convByVar.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h5>candidates: <span class="tsd-signature-type">Partial</span><span class="tsd-
</div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/wikimedia-gadgets/HanAssist/blob/961e484/lib/conversion.ts#L77">conversion.ts:77</a></li></ul></aside></li></ul></section></div>
<li>Defined in <a href="https://github.com/wikimedia-gadgets/HanAssist/blob/2c648cd/lib/conversion.ts#L77">conversion.ts:77</a></li></ul></aside></li></ul></section></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h2>HanAssist Documentation</h2></div>
<h1>HanAssist v4 <img src="https://github.com/diskdance/HanAssist/actions/workflows/lint.yml/badge.svg" alt="Linter"> <img src="https://github.com/diskdance/HanAssist/actions/workflows/test.yml/badge.svg" alt="Test status"></h1>
</a>
<p><a href="./README.EN.MD">English</a>
<a href="https://diskdance.github.io/HanAssist/">代码文档</a></p>
<a href="https://wikimedia-gadgets.github.io/HanAssist/">代码文档</a></p>
<p>HanAssist v4 是帮助中文维基百科及其他 MediaWiki 网站上的用户脚本和小工具更优雅地处理中文变体消息的实用程序。</p>
<p>本程序的目标是取代 <code>wgULS()</code><code>wgUVS()</code></p>
<pre><code class="language-javascript"><span class="hl-0">// 小工具需要先添加对 ext.gadget.HanAssist 的依赖</span><br/><span class="hl-1">const</span><span class="hl-2"> { </span><span class="hl-3">conv</span><span class="hl-2">, </span><span class="hl-3">convByVar</span><span class="hl-2"> } = </span><span class="hl-4">require</span><span class="hl-2">( </span><span class="hl-5">&#39;ext.gadget.HanAssist&#39;</span><span class="hl-2"> );</span><br/><br/><span class="hl-0">// 也可动态加载</span><br/><span class="hl-6">mw</span><span class="hl-2">.</span><span class="hl-6">loader</span><span class="hl-2">.</span><span class="hl-4">using</span><span class="hl-2">( </span><span class="hl-5">&#39;ext.gadget.HanAssist&#39;</span><span class="hl-2"> ).</span><span class="hl-4">then</span><span class="hl-2">( ( </span><span class="hl-6">require</span><span class="hl-2"> ) </span><span class="hl-1">=&gt;</span><span class="hl-2"> {</span><br/><span class="hl-2"> </span><span class="hl-1">const</span><span class="hl-2"> { </span><span class="hl-3">conv</span><span class="hl-2">, </span><span class="hl-3">convByVar</span><span class="hl-2"> } = </span><span class="hl-4">require</span><span class="hl-2">( </span><span class="hl-5">&#39;ext.gadget.HanAssist&#39;</span><span class="hl-2"> );</span><br/><span class="hl-2"> </span><span class="hl-0">// ...</span><br/><span class="hl-2">} );</span><br/><br/><span class="hl-4">conv</span><span class="hl-2">( { </span><span class="hl-6">hans:</span><span class="hl-2"> </span><span class="hl-5">&#39;一天一苹果,医生远离我。&#39;</span><span class="hl-2">, </span><span class="hl-6">hant:</span><span class="hl-2"> </span><span class="hl-5">&#39;一天一蘋果,醫生遠離我。&#39;</span><span class="hl-2"> } );</span><br/><span class="hl-0">// =&gt; 界面语言为简中:“一天一苹果,医生远离我。”;繁中:“一天一蘋果,醫生遠離我。”</span><br/><br/><span class="hl-4">convByVar</span><span class="hl-2">( { </span><span class="hl-6">hans:</span><span class="hl-2"> </span><span class="hl-5">&#39;一天一苹果,医生远离我。&#39;</span><span class="hl-2">, </span><span class="hl-6">hant:</span><span class="hl-2"> </span><span class="hl-5">&#39;一天一蘋果,醫生遠離我。&#39;</span><span class="hl-2"> } );</span><br/><span class="hl-0">// =&gt; 页面变体为简中:“一天一苹果,医生远离我。”;繁中:“一天一蘋果,醫生遠離我。”</span><br/><br/><span class="hl-0">// 由于技术限制,如果 HanAssist 位于其他 wiki 上,那么函数将会导出到 mw.libs.HanAssist 全局空间</span><br/><span class="hl-6">mw</span><span class="hl-2">.</span><span class="hl-6">loader</span><span class="hl-2">.</span><span class="hl-4">load</span><span class="hl-2">( </span><span class="hl-5">&#39;https://another.wiki/w/index.php?title=MediaWiki:Gadget-HanAssist.js&amp;action=raw&amp;ctype=text/javascript&#39;</span><span class="hl-2"> );</span><br/><span class="hl-0">// 按照如下方式使用:</span><br/><span class="hl-0">// mw.libs.HanAssist.conv( ... );</span><br/><span class="hl-0">// mw.libs.HanAssist.convByVar( ... );</span>
Expand Down
2 changes: 1 addition & 1 deletion types/CandidateKey.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<h1>Type alias CandidateKey</h1></div>
<div class="tsd-signature">Candidate<wbr/>Key<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;other&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;zh&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;hans&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;hant&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;cn&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;tw&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;hk&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;sg&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;mo&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;my&quot;</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/wikimedia-gadgets/HanAssist/blob/961e484/lib/conversion.ts#L3">conversion.ts:3</a></li></ul></aside></div>
<li>Defined in <a href="https://github.com/wikimedia-gadgets/HanAssist/blob/2c648cd/lib/conversion.ts#L3">conversion.ts:3</a></li></ul></aside></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
Expand Down
2 changes: 1 addition & 1 deletion types/Candidates.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<h1>Type alias Candidates</h1></div>
<div class="tsd-signature">Candidates<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Partial</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol">&lt;</span><a href="CandidateKey.html" class="tsd-signature-type" data-tsd-kind="Type alias">CandidateKey</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/wikimedia-gadgets/HanAssist/blob/961e484/lib/conversion.ts#L4">conversion.ts:4</a></li></ul></aside></div>
<li>Defined in <a href="https://github.com/wikimedia-gadgets/HanAssist/blob/2c648cd/lib/conversion.ts#L4">conversion.ts:4</a></li></ul></aside></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
Expand Down

0 comments on commit 6f67aad

Please sign in to comment.