Skip to content

Commit

Permalink
Prepare 3.1 (#68)
Browse files Browse the repository at this point in the history
* Version to 3.1.0.

* Update Jazzy docs.

* More docs.
  • Loading branch information
jshier committed Apr 6, 2020
1 parent 23f9d34 commit 392bed0
Show file tree
Hide file tree
Showing 16 changed files with 78 additions and 43 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.0
2.7.1
6 changes: 2 additions & 4 deletions AlamofireNetworkActivityIndicator.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
MACOSX_DEPLOYMENT_TARGET = 10.12;
MARKETING_VERSION = 3.1.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand All @@ -466,7 +467,6 @@
TARGETED_DEVICE_FAMILY = "1,2";
TVOS_DEPLOYMENT_TARGET = 10.0;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
WATCHOS_DEPLOYMENT_TARGET = 3.0;
};
name = Debug;
Expand Down Expand Up @@ -516,6 +516,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
MACOSX_DEPLOYMENT_TARGET = 10.12;
MARKETING_VERSION = 3.1.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
Expand All @@ -525,7 +526,6 @@
TVOS_DEPLOYMENT_TARGET = 10.0;
VALIDATE_PRODUCT = YES;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
WATCHOS_DEPLOYMENT_TARGET = 3.0;
};
name = Release;
Expand All @@ -543,7 +543,6 @@
INFOPLIST_FILE = "$(SRCROOT)/Source/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MARKETING_VERSION = 3.0.1;
PRODUCT_BUNDLE_IDENTIFIER = org.alamofire.AlamofireNetworkActivityIndicator;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand All @@ -564,7 +563,6 @@
INFOPLIST_FILE = "$(SRCROOT)/Source/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MARKETING_VERSION = 3.0.1;
PRODUCT_BUNDLE_IDENTIFIER = org.alamofire.AlamofireNetworkActivityIndicator;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand Down
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ All notable changes to this project will be documented in this file.
`AlamofireNetworkActivityIndicator` adheres to [Semantic Versioning](http://semver.org/).

#### 3.x Releases
- `3.0.x` Releases - [3.0.0](#300)
- `3.1.x` Releases - [3.1.0](#310)
- `3.0.x` Releases - [3.0.0](#300) | [3.0.1](#301)
- `3.0.0` Betas - [3.0.0-beta.1](#300-beta1) | [3.0.0-beta.2](#300-beta2) | | [3.0.0-beta.3](#300-beta3)

#### 2.x Releases
Expand All @@ -19,6 +20,16 @@ All notable changes to this project will be documented in this file.

---

## [3.1.0](https://github.com/Alamofire/AlamofireNetworkActivityIndicator/releases/tag/3.1.0)
Released on 2020-04-05. All issues associated with this milestone can be found using this
[filter](https://github.com/Alamofire/AlamofireNetworkActivityIndicator/milestone/16?closed=1).

#### Updated
- Project to require Swift 5.1.
- Updated by [Jon Shier](https://github.com/jshier) in Pull Request [#67](https://github.com/Alamofire/AlamofireNetworkActivityIndicator/pull/67).

---

## [3.0.1](https://github.com/Alamofire/AlamofireNetworkActivityIndicator/releases/tag/3.0.1)
Released on 2020-02-29. All issues associated with this milestone can be found using this
[filter](https://github.com/Alamofire/AlamofireNetworkActivityIndicator/milestone/15?closed=1).
Expand Down
12 changes: 6 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ GEM
json (>= 1.5.1)
atomos (0.1.3)
claide (1.0.3)
cocoapods (1.9.0)
cocoapods (1.9.1)
activesupport (>= 4.0.2, < 5)
claide (>= 1.0.2, < 2.0)
cocoapods-core (= 1.9.0)
cocoapods-core (= 1.9.1)
cocoapods-deintegrate (>= 1.0.3, < 2.0)
cocoapods-downloader (>= 1.2.2, < 2.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
Expand All @@ -31,7 +31,7 @@ GEM
nap (~> 1.0)
ruby-macho (~> 1.4)
xcodeproj (>= 1.14.0, < 2.0)
cocoapods-core (1.9.0)
cocoapods-core (1.9.1)
activesupport (>= 4.0.2, < 6)
algoliasearch (~> 1.0)
concurrent-ruby (~> 1.1)
Expand Down Expand Up @@ -61,7 +61,7 @@ GEM
httpclient (2.8.3)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
jazzy (0.13.1)
jazzy (0.13.2)
cocoapods (~> 1.5)
mustache (~> 1.1)
open4
Expand All @@ -88,7 +88,7 @@ GEM
thread_safe (0.3.6)
typhoeus (1.3.1)
ethon (>= 0.9.0)
tzinfo (1.2.6)
tzinfo (1.2.7)
thread_safe (~> 0.1)
xcinvoke (0.3.0)
liferaft (~> 0.0.6)
Expand All @@ -110,4 +110,4 @@ DEPENDENCIES
xcpretty

BUNDLED WITH
2.1.2
2.1.4
4 changes: 2 additions & 2 deletions docs/Classes.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ <h4>Declaration</h4>
</article>
</div>
<section class="footer">
<p>&copy; 2020 <a class="link" href="http://alamofire.org/" target="_blank" rel="external">Alamofire Software Foundation</a>. All rights reserved. (Last updated: 2020-02-29)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.1</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
<p>&copy; 2020 <a class="link" href="http://alamofire.org/" target="_blank" rel="external">Alamofire Software Foundation</a>. All rights reserved. (Last updated: 2020-04-05)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.2</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
</div>
Expand Down
8 changes: 4 additions & 4 deletions docs/Classes/NetworkActivityIndicatorManager.html
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ <h3 class="section-name"><p>Request Tracking</p>
<code>
<a name="/s:33AlamofireNetworkActivityIndicator0bcD7ManagerC15requestDidStart0F2IDySS_tF"></a>
<a name="//apple_ref/swift/Method/requestDidStart(requestID:)" class="dashAnchor"></a>
<a class="token" href="#/s:33AlamofireNetworkActivityIndicator0bcD7ManagerC15requestDidStart0F2IDySS_tF">requestDidStart(requestID:)</a>
<a class="token" href="#/s:33AlamofireNetworkActivityIndicator0bcD7ManagerC15requestDidStart0F2IDySS_tF">requestDidStart(requestID:<wbr>)</a>
</code>
</div>
<div class="height-container">
Expand Down Expand Up @@ -338,7 +338,7 @@ <h4>Parameters</h4>
<code>
<a name="/s:33AlamofireNetworkActivityIndicator0bcD7ManagerC14requestDidStop0F2IDySS_tF"></a>
<a name="//apple_ref/swift/Method/requestDidStop(requestID:)" class="dashAnchor"></a>
<a class="token" href="#/s:33AlamofireNetworkActivityIndicator0bcD7ManagerC14requestDidStop0F2IDySS_tF">requestDidStop(requestID:)</a>
<a class="token" href="#/s:33AlamofireNetworkActivityIndicator0bcD7ManagerC14requestDidStop0F2IDySS_tF">requestDidStop(requestID:<wbr>)</a>
</code>
</div>
<div class="height-container">
Expand Down Expand Up @@ -389,8 +389,8 @@ <h4>Parameters</h4>
</article>
</div>
<section class="footer">
<p>&copy; 2020 <a class="link" href="http://alamofire.org/" target="_blank" rel="external">Alamofire Software Foundation</a>. All rights reserved. (Last updated: 2020-02-29)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.1</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
<p>&copy; 2020 <a class="link" href="http://alamofire.org/" target="_blank" rel="external">Alamofire Software Foundation</a>. All rights reserved. (Last updated: 2020-04-05)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.2</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
</div>
Expand Down
4 changes: 3 additions & 1 deletion docs/css/jazzy.css
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,10 @@ pre code {
content: "";
display: block; }
.item .token, .item .direct-link {
display: inline-block;
text-indent: -20px;
padding-left: 3px;
margin-left: 0px;
margin-left: 20px;
font-size: 1rem; }
.item .declaration-note {
font-size: .85em;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ <h4>Declaration</h4>
</article>
</div>
<section class="footer">
<p>&copy; 2020 <a class="link" href="http://alamofire.org/" target="_blank" rel="external">Alamofire Software Foundation</a>. All rights reserved. (Last updated: 2020-02-29)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.1</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
<p>&copy; 2020 <a class="link" href="http://alamofire.org/" target="_blank" rel="external">Alamofire Software Foundation</a>. All rights reserved. (Last updated: 2020-04-05)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.2</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ <h3 class="section-name"><p>Request Tracking</p>
<code>
<a name="/s:33AlamofireNetworkActivityIndicator0bcD7ManagerC15requestDidStart0F2IDySS_tF"></a>
<a name="//apple_ref/swift/Method/requestDidStart(requestID:)" class="dashAnchor"></a>
<a class="token" href="#/s:33AlamofireNetworkActivityIndicator0bcD7ManagerC15requestDidStart0F2IDySS_tF">requestDidStart(requestID:)</a>
<a class="token" href="#/s:33AlamofireNetworkActivityIndicator0bcD7ManagerC15requestDidStart0F2IDySS_tF">requestDidStart(requestID:<wbr>)</a>
</code>
</div>
<div class="height-container">
Expand Down Expand Up @@ -338,7 +338,7 @@ <h4>Parameters</h4>
<code>
<a name="/s:33AlamofireNetworkActivityIndicator0bcD7ManagerC14requestDidStop0F2IDySS_tF"></a>
<a name="//apple_ref/swift/Method/requestDidStop(requestID:)" class="dashAnchor"></a>
<a class="token" href="#/s:33AlamofireNetworkActivityIndicator0bcD7ManagerC14requestDidStop0F2IDySS_tF">requestDidStop(requestID:)</a>
<a class="token" href="#/s:33AlamofireNetworkActivityIndicator0bcD7ManagerC14requestDidStop0F2IDySS_tF">requestDidStop(requestID:<wbr>)</a>
</code>
</div>
<div class="height-container">
Expand Down Expand Up @@ -389,8 +389,8 @@ <h4>Parameters</h4>
</article>
</div>
<section class="footer">
<p>&copy; 2020 <a class="link" href="http://alamofire.org/" target="_blank" rel="external">Alamofire Software Foundation</a>. All rights reserved. (Last updated: 2020-02-29)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.1</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
<p>&copy; 2020 <a class="link" href="http://alamofire.org/" target="_blank" rel="external">Alamofire Software Foundation</a>. All rights reserved. (Last updated: 2020-04-05)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.2</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,10 @@ pre code {
content: "";
display: block; }
.item .token, .item .direct-link {
display: inline-block;
text-indent: -20px;
padding-left: 3px;
margin-left: 0px;
margin-left: 20px;
font-size: 1rem; }
.item .declaration-note {
font-size: .85em;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ <h2 id='requirements' class='heading'>Requirements</h2>

<ul>
<li>iOS 10.0+</li>
<li>Xcode 10.2+</li>
<li>Swift 5.0+</li>
<li>Xcode 11+</li>
<li>Swift 5.1+</li>
</ul>
<h2 id='dependencies' class='heading'>Dependencies</h2>

Expand All @@ -113,18 +113,18 @@ <h2 id='installation' class='heading'>Installation</h2>
<h3 id='cocoapods' class='heading'>CocoaPods</h3>

<p><a href="https://cocoapods.org">CocoaPods</a> is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate Alamofire into your Xcode project using CocoaPods, specify it in your <code>Podfile</code>:</p>
<pre class="highlight ruby"><code><span class="n">pod</span> <span class="s1">'AlamofireNetworkActivityIndicator'</span><span class="p">,</span> <span class="s1">'~&gt; 3.0'</span>
<pre class="highlight ruby"><code><span class="n">pod</span> <span class="s1">'AlamofireNetworkActivityIndicator'</span><span class="p">,</span> <span class="s1">'~&gt; 3.1'</span>
</code></pre>
<h3 id='carthage' class='heading'>Carthage</h3>

<p><a href="https://github.com/Carthage/Carthage">Carthage</a> is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate Alamofire into your Xcode project using Carthage, specify it in your <code>Cartfile</code>:</p>
<pre class="highlight plaintext"><code>github "Alamofire/AlamofireNetworkActivityIndicator" ~&gt; 3.0
<pre class="highlight plaintext"><code>github "Alamofire/AlamofireNetworkActivityIndicator" ~&gt; 3.1
</code></pre>
<h3 id='swift-package-manager-requires-xcode-11' class='heading'>Swift Package Manager (requires Xcode 11)</h3>

<ol>
<li>Select File &gt; Swift Packages &gt; Add Package Dependency. Enter <code>https://github.com/Alamofire/AlamofireNetworkActivityIndicator</code> in the &ldquo;Choose Package Repository&rdquo; dialog.</li>
<li>In the next page, specify the version resolving rule as &ldquo;Up to Next Major&rdquo; with &ldquo;3.0.0&rdquo; as its earliest version.</li>
<li>In the next page, specify the version resolving rule as &ldquo;Up to Next Major&rdquo; with &ldquo;3.1.0&rdquo; as its earliest version.</li>
<li>After Xcode checking out the source and resolving the version, you can choose the &ldquo;AlamofireNetworkActivityIndicator&rdquo; library and add it to your app target.</li>
</ol>
<h3 id='manually' class='heading'>Manually</h3>
Expand Down Expand Up @@ -241,8 +241,8 @@ <h2 id='license' class='heading'>License</h2>
</article>
</div>
<section class="footer">
<p>&copy; 2020 <a class="link" href="http://alamofire.org/" target="_blank" rel="external">Alamofire Software Foundation</a>. All rights reserved. (Last updated: 2020-02-29)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.1</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
<p>&copy; 2020 <a class="link" href="http://alamofire.org/" target="_blank" rel="external">Alamofire Software Foundation</a>. All rights reserved. (Last updated: 2020-04-05)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.2</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function openCurrentItemIfClosed() {
if (window.jazzy.docset) {
return;
}
var $link = $(`.token[href="${location.hash}"]`);
var $link = $(`a[name="${location.hash.substring(1)}"]`).nextAll('.token');
$content = itemLinkToContent($link);
if ($content.is(':hidden')) {
toggleItem($link, $content);
Expand Down Expand Up @@ -57,3 +57,14 @@ $("a:not('.token')").on('click', function() {
openCurrentItemIfClosed();
}
});

// KaTeX rendering
if ("katex" in window) {
$($('.math').each( (_, element) => {
katex.render(element.textContent, element, {
displayMode: $(element).hasClass('m-block'),
throwOnError: false,
trust: true
});
}))
}
Binary file modified docs/docsets/AlamofireNetworkActivityIndicator.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/docsets/AlamofireNetworkActivityIndicator.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<entry><version>3.0.1</version><url>https://alamofire.github.io/AlamofireNetworkActivityIndicator/docsets/AlamofireNetworkActivityIndicator.tgz</url></entry>
<entry><version>3.1.0</version><url>https://alamofire.github.io/AlamofireNetworkActivityIndicator/docsets/AlamofireNetworkActivityIndicator.tgz</url></entry>
14 changes: 7 additions & 7 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ <h2 id='requirements' class='heading'>Requirements</h2>

<ul>
<li>iOS 10.0+</li>
<li>Xcode 10.2+</li>
<li>Swift 5.0+</li>
<li>Xcode 11+</li>
<li>Swift 5.1+</li>
</ul>
<h2 id='dependencies' class='heading'>Dependencies</h2>

Expand All @@ -113,18 +113,18 @@ <h2 id='installation' class='heading'>Installation</h2>
<h3 id='cocoapods' class='heading'>CocoaPods</h3>

<p><a href="https://cocoapods.org">CocoaPods</a> is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate Alamofire into your Xcode project using CocoaPods, specify it in your <code>Podfile</code>:</p>
<pre class="highlight ruby"><code><span class="n">pod</span> <span class="s1">'AlamofireNetworkActivityIndicator'</span><span class="p">,</span> <span class="s1">'~&gt; 3.0'</span>
<pre class="highlight ruby"><code><span class="n">pod</span> <span class="s1">'AlamofireNetworkActivityIndicator'</span><span class="p">,</span> <span class="s1">'~&gt; 3.1'</span>
</code></pre>
<h3 id='carthage' class='heading'>Carthage</h3>

<p><a href="https://github.com/Carthage/Carthage">Carthage</a> is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate Alamofire into your Xcode project using Carthage, specify it in your <code>Cartfile</code>:</p>
<pre class="highlight plaintext"><code>github "Alamofire/AlamofireNetworkActivityIndicator" ~&gt; 3.0
<pre class="highlight plaintext"><code>github "Alamofire/AlamofireNetworkActivityIndicator" ~&gt; 3.1
</code></pre>
<h3 id='swift-package-manager-requires-xcode-11' class='heading'>Swift Package Manager (requires Xcode 11)</h3>

<ol>
<li>Select File &gt; Swift Packages &gt; Add Package Dependency. Enter <code>https://github.com/Alamofire/AlamofireNetworkActivityIndicator</code> in the &ldquo;Choose Package Repository&rdquo; dialog.</li>
<li>In the next page, specify the version resolving rule as &ldquo;Up to Next Major&rdquo; with &ldquo;3.0.0&rdquo; as its earliest version.</li>
<li>In the next page, specify the version resolving rule as &ldquo;Up to Next Major&rdquo; with &ldquo;3.1.0&rdquo; as its earliest version.</li>
<li>After Xcode checking out the source and resolving the version, you can choose the &ldquo;AlamofireNetworkActivityIndicator&rdquo; library and add it to your app target.</li>
</ol>
<h3 id='manually' class='heading'>Manually</h3>
Expand Down Expand Up @@ -241,8 +241,8 @@ <h2 id='license' class='heading'>License</h2>
</article>
</div>
<section class="footer">
<p>&copy; 2020 <a class="link" href="http://alamofire.org/" target="_blank" rel="external">Alamofire Software Foundation</a>. All rights reserved. (Last updated: 2020-02-29)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.1</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
<p>&copy; 2020 <a class="link" href="http://alamofire.org/" target="_blank" rel="external">Alamofire Software Foundation</a>. All rights reserved. (Last updated: 2020-04-05)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.2</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</body>
</div>
Expand Down
13 changes: 12 additions & 1 deletion docs/js/jazzy.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function openCurrentItemIfClosed() {
if (window.jazzy.docset) {
return;
}
var $link = $(`.token[href="${location.hash}"]`);
var $link = $(`a[name="${location.hash.substring(1)}"]`).nextAll('.token');
$content = itemLinkToContent($link);
if ($content.is(':hidden')) {
toggleItem($link, $content);
Expand Down Expand Up @@ -57,3 +57,14 @@ $("a:not('.token')").on('click', function() {
openCurrentItemIfClosed();
}
});

// KaTeX rendering
if ("katex" in window) {
$($('.math').each( (_, element) => {
katex.render(element.textContent, element, {
displayMode: $(element).hasClass('m-block'),
throwOnError: false,
trust: true
});
}))
}

0 comments on commit 392bed0

Please sign in to comment.