Skip to content

Commit

Permalink
Merge pull request #1660 from davidpcaldwell/davidpcaldwell/issue/#1657
Browse files Browse the repository at this point in the history
#1657: Clean up loader/jrunscript/api.html
  • Loading branch information
davidpcaldwell authored Sep 10, 2024
2 parents e6962f2 + f6122fd commit 3f013c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 56 deletions.
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

0 comments on commit 3f013c0

Please sign in to comment.