Added minimal navigation breadcrumbs to doctests.

This commit is contained in:
2023-05-09 13:25:39 +02:00
parent 13e0473328
commit 9501264f08
71 changed files with 5700 additions and 5332 deletions
+40 -35
View File
@@ -1,36 +1,41 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="./3rdparty/highlight/styles/default.css">
<link rel="stylesheet" href="../css/doctest.css">
<script src="./3rdparty/highlight/highlight.pack.js"></script>
<script src="../dist/iwmlib.js"></script>
</head>
<body onload="Doctest.run(); test()" >
<h1>
Code and Class Inspection
</h1>
<p>
To Do: Use SystemJS to load modules and main code. This ensures that
all code can be parsed by acorn into an Abstract Syntax Tree which
in turn allows to extract class statements and related extends phrases.
</p>
<script class="doctest">
function test() {
let sources = Inspect.allScriptSources()
console.log(sources)
}
</script>
<h2>
References
</h2>
<ul>
<li><a href="https://nystudio107.com/blog/using-systemjs-as-javascript-loader">Using SystemJS as JavaScript Loader</a></li>
<li><a href="http://stackoverflow.com/questions/2051678/getting-all-variables-in-scope">Getting all Variables in Scope</a></li>
<li><a href="https://www.keithcirkel.co.uk/metaprogramming-in-es6-symbols/">Metaprogramming in JavaScript</a></li>
</ul>
</body>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="./3rdparty/highlight/styles/default.css" />
<link rel="stylesheet" href="../css/doctest.css" />
<script src="./3rdparty/highlight/highlight.pack.js"></script>
<script src="../dist/iwmlib.js"></script>
</head>
<body onload="Doctest.run(); test()">
<h1><a href="index.html">lib.</a>Code and Class Inspection</h1>
<p>
To Do: Use SystemJS to load modules and main code. This ensures that all code can be parsed by acorn into an
Abstract Syntax Tree which in turn allows to extract class statements and related extends phrases.
</p>
<script class="doctest">
function test() {
let sources = Inspect.allScriptSources()
console.log(sources)
}
</script>
<h2>References</h2>
<ul>
<li>
<a href="https://nystudio107.com/blog/using-systemjs-as-javascript-loader"
>Using SystemJS as JavaScript Loader</a
>
</li>
<li>
<a href="http://stackoverflow.com/questions/2051678/getting-all-variables-in-scope"
>Getting all Variables in Scope</a
>
</li>
<li>
<a href="https://www.keithcirkel.co.uk/metaprogramming-in-es6-symbols/"
>Metaprogramming in JavaScript</a
>
</li>
</ul>
</body>
</html>