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

#1657: Clean up loader/jrunscript/api.html #1660

Merged
merged 1 commit into from
Sep 10, 2024
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
54 changes: 0 additions & 54 deletions loader/jrunscript/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,6 @@ <h1>Properties</h1>
</p>
<div class="label">has properties:</div>
<ul>
<li class="object" jsapi:id="mime">
<div class="name"><a id="mime">mime</a></div>
<span>__DESCRIPTION__</span>
<div class="label">has properties:</div>
<script type="application/x.jsapi#initialize">
scope.api = jsh.unit.$slime;
</script>
</li>
<li class="object">
<div class="name">java</div>
<div>
Provides the ability to interact with native Java constructs.
</div>
</li>
<li class="constructor" jsapi:id="Resource">
<div class="name"><a id="$exports.Resource">Resource</a></div>
<span>Creates a <code>Resource</code> which has additional capabilities beyond the SLIME runtime <code>Resource</code>.</span>
Expand Down Expand Up @@ -581,47 +567,7 @@ <h1>Properties</h1>
verify(child).evaluate(function() { return this.run; }).is.not.equalTo(null);
</script>
</li>
<li class="object">
<div class="name">classpath</div>
<span>__DESCRIPTION__</span>
<div class="label">has properties:</div>
<ul>
</ul>
</li>
<li class="function" jsapi:id="namespace">
<div class="name">namespace</div>
<span>The platform loader's <a href="../api.html#exports.namespace"><code>namespace</code></a> method.</span>
</li>
<li class="function" jsapi:id="run">
<div class="name">run</div>
<span jsapi:id="description">
The platform loader's <a href="../api.html#exports.run"><code>run</code></a> method. Note that this version
accepts Java <a href="#types.script">script</a> instances as well as SLIME scripts.
</span>
</li>
<li class="function" jsapi:id="file">
<div class="name">file</div>
<span>
The platform loader's <a href="../api.html#exports.file"><code>file</code></a> method. Note that this version
accepts Java <a href="#types.script">script</a> instances as well as SLIME scripts.
</span>
</li>
</ul>
<div>
If the underlying engine is Rhino, the following additional properties are added:
<div class="label">has properties:</div>
<ul>
<li class="function">
<div class="name">getDebugger</div>
<span>__DESCRIPTION__</span>
<div class="returns">
<div class="label">Returns</div>
<span class="type">__TYPE__</span>
<span>__DESCRIPTION__</span>
</div>
</li>
</ul>
</div>
</div>
</body>
</html>
7 changes: 5 additions & 2 deletions loader/jrunscript/expression.fifty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
* For each engine, two embeddings are included: a servlet-based embedding and an embedding that supports
* `jsh`.
*
* If the underlying engine is Rhino, the {@link slime.runtime.$engine} implementation's `debugger` property is implemented in terms
* of the Rhino debugger.
*
* ## Changes to `$api`
*
* The Java runtime replaces the `Type.fromName` function of {@link slime.$api.mime.Export} with a version that uses the
Expand Down Expand Up @@ -224,8 +227,8 @@ namespace slime.jrunscript.runtime {
*/
export interface Exports extends slime.runtime.Exports {
/**
* The `jrunscript` implementation enhances the default MIME implementation by using the
* `java.net.URLConnection.getFileNameMap()` method as an additional way to guess content types from file names.
* The Java implementation enhances the default {@link slime.$api.mime.Export} implementation in the same way as the
* `$api.mime` implementation is enhanced; see the {@link slime.jrunscript.runtime | "Changes to `$api`"} section.
*/
mime: slime.runtime.Exports["mime"]

Expand Down
Loading