shithub: libmujs

Download patch

ref: 03c889d58174d96446aba61750b9de755b8f62b3
parent: 2dced7cf692a7043ed253d626b1250707801ff85
author: Tor Andersson <tor.andersson@gmail.com>
date: Wed Jun 14 08:37:20 EDT 2017

Update docs.

--- a/docs/about.html
+++ /dev/null
@@ -1,106 +1,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<link href="style.css" rel="stylesheet">
-<title>About MuJS</title>
-</head>
-
-<body>
-
-<header>
-<h1>About MuJS</h1>
-</header>
-
-<nav>
-<a href="/index.html">ABOUT</a>
-<a href="/docs/reference.html">REFERENCE</a>
-<a href="/docs/examples.html">EXAMPLES</a>
-<a href="http://git.ghostscript.com/?p=mujs.git;a=summary">SOURCE</a>
-<a href="https://bugs.ghostscript.com/">BUGS</a>
-</nav>
-
-<article>
-
-<h2>What is MuJS?</h2>
-
-<p>
-MuJS is a lightweight implementation of the Javascript language in a library.
-Its primary purpose is to add scripting capability to other programs, but can also be used as an extensible scripting language.
-
-<p>
-MuJS is developed and maintained by Artifex Software.
-It was originally developed for use with the MuPDF viewer, but is designed to be useful as an independent component.
-
-<p>
-The primary meeting place for the MuJS community is the
-<a href="http://webchat.freenode.net/?channels=mupdf">#mupdf</a>
-IRC channel on freenode.
-
-<h2>Why choose MuJS?</h2>
-
-<h3>Javascript</h3>
-
-<p>
-Javascript is one of the most popular programming languages in the world.
-It is a powerful extension language, used everywhere on the web &mdash; both as a way to add interactivity to web pages in the browser, and on the server side with platforms like node.js.
-
-<p>
-With MuJS you can bring this power to your application as well!
-
-<h3>Standards compliant</h3>
-
-<p>
-MuJS implements ES5.
-There are no non-standard extensions, so you can remain confident that Javascript code that runs on MuJS will also run on any other standards compliant Javascript implementation.
-
-<h3>Portable</h3>
-
-<p>
-MuJS is written in portable C and can be built by compiling a single C file using any standard C compiler.
-There is no need for configuration or fancy build systems.
-MuJS runs on all flavors of Unix and Windows, on mobile devices (such as Android and iOS),
-embedded microprocessors (such as the Beagle board and Raspberry Pi), etc.
-
-<h3>Embeddable</h3>
-
-<p>
-MuJS is a simple language engine with a small footprint that you can easily embed into your application.
-The API is simple and well documented and allows strong integration with code written in other languages.
-You don't need to work with byzantine C++ templating mechanisms, or manually manage garbage collection roots.
-It is easy to extend MuJS with libraries written in other languages.
-It is also easy to extend programs written in other languages with MuJS.
-
-<h3>Small</h3>
-
-<p>
-Adding MuJS to an application does not bloat it.
-The source contains around 15'000 lines of C.
-Under 64-bit Linux, the compiled library takes 180kB if optimized for size,
-and 260kB if optimized for speed.
-
-Compare this with V8, SpiderMonkey or JavaScriptCore,
-which are all several hundred thousand lines of code,
-take several megabytes of space,
-and require the C++ runtime.
-
-<h3>Reasonably fast and secure</h3>
-
-<p>
-It is a bytecode interpreter with a very fast mechanism to call-out to C.
-The default build is sandboxed with very restricted access to resources.
-
-<h3>Free software</h3>
-
-<p>
-MuJS is free open source software distributed under the
-<a href="https://opensource.org/licenses/ISC">ISC license</a>.
-
-</article>
-
-<footer>
-<a href="http://artifex.com"><img src="artifex-logo.png" align="right"></a>
-Copyright &copy; 2013-2017 Artifex Software Inc.
-</footer>
-
-</body>
-</html>
--- a/docs/examples.html
+++ b/docs/examples.html
@@ -12,9 +12,9 @@
 </header>
 
 <nav>
-<a href="/index.html">ABOUT</a>
-<a href="/docs/reference.html">REFERENCE</a>
-<a href="/docs/examples.html">EXAMPLES</a>
+<a href="index.html">ABOUT</a>
+<a href="reference.html">REFERENCE</a>
+<a href="examples.html">EXAMPLES</a>
 <a href="http://git.ghostscript.com/?p=mujs.git;a=summary">SOURCE</a>
 <a href="https://bugs.ghostscript.com/">BUGS</a>
 </nav>
--- /dev/null
+++ b/docs/index.html
@@ -1,0 +1,112 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="style.css" rel="stylesheet">
+<title>About MuJS</title>
+</head>
+
+<body>
+
+<header>
+<h1>About MuJS</h1>
+</header>
+
+<nav>
+<a href="index.html">ABOUT</a>
+<a href="reference.html">REFERENCE</a>
+<a href="examples.html">EXAMPLES</a>
+<a href="http://git.ghostscript.com/?p=mujs.git;a=summary">SOURCE</a>
+<a href="https://bugs.ghostscript.com/">BUGS</a>
+</nav>
+
+<article>
+
+<img align="right" src="mujs-logo.png">
+
+<h2>What is MuJS?</h2>
+
+<p>
+MuJS is a lightweight implementation of the Javascript language in a library.
+Its primary purpose is to add scripting capability to other programs, but can also be used as an extensible scripting language.
+
+<p>
+MuJS is developed and maintained by Artifex Software.
+It was originally developed for use with the MuPDF viewer, but is designed to be useful as an independent component.
+
+<p>
+The primary meeting place for the MuJS community is the
+<a href="http://webchat.freenode.net/?channels=mupdf">#mupdf</a>
+IRC channel on freenode.
+
+<h2>Why choose MuJS?</h2>
+
+<h3>Javascript</h3>
+
+<p>
+Javascript is one of the most popular programming languages in the world.
+It is a powerful extension language, used everywhere on the web &mdash; both as
+a way to add interactivity to web pages in the browser, and on the server side
+with platforms like node.js.
+
+<p>
+With MuJS you can bring this power to your application as well!
+
+<h3>Standards compliant</h3>
+
+<p>
+MuJS implements ES5.
+There are no non-standard extensions, so you can remain confident that
+Javascript code that runs on MuJS will also run on any other standards
+compliant Javascript implementation.
+
+<h3>Portable</h3>
+
+<p>
+MuJS is written in portable C and can be built by compiling a single C file using any standard C compiler.
+There is no need for configuration or fancy build systems.
+MuJS runs on all flavors of Unix and Windows, on mobile devices (such as Android and iOS),
+embedded microprocessors (such as the Beagle board and Raspberry Pi), etc.
+
+<h3>Embeddable</h3>
+
+<p>
+MuJS is a simple language engine with a small footprint that you can easily embed into your application.
+The API is simple and well documented and allows strong integration with code written in other languages.
+You don't need to work with byzantine C++ templating mechanisms, or manually manage garbage collection roots.
+It is easy to extend MuJS with libraries written in other languages.
+It is also easy to extend programs written in other languages with MuJS.
+
+<h3>Small</h3>
+
+<p>
+Adding MuJS to an application does not bloat it.
+The source contains around 15'000 lines of C.
+Under 64-bit Linux, the compiled library takes 180kB if optimized for size,
+and 260kB if optimized for speed.
+
+Compare this with V8, SpiderMonkey or JavaScriptCore,
+which are all several hundred thousand lines of code,
+take several megabytes of space,
+and require the C++ runtime.
+
+<h3>Reasonably fast and secure</h3>
+
+<p>
+It is a bytecode interpreter with a very fast mechanism to call-out to C.
+The default build is sandboxed with very restricted access to resources.
+
+<h3>Free software</h3>
+
+<p>
+MuJS is free open source software distributed under the
+<a href="https://opensource.org/licenses/ISC">ISC license</a>.
+
+</article>
+
+<footer>
+<a href="http://artifex.com"><img src="artifex-logo.png" align="right"></a>
+Copyright &copy; 2013-2017 Artifex Software Inc.
+</footer>
+
+</body>
+</html>
binary files /dev/null b/docs/mujs-logo.png differ
--- a/docs/reference.html
+++ b/docs/reference.html
@@ -12,9 +12,9 @@
 </header>
 
 <nav>
-<a href="/index.html">ABOUT</a>
-<a href="/docs/reference.html">REFERENCE</a>
-<a href="/docs/examples.html">EXAMPLES</a>
+<a href="index.html">ABOUT</a>
+<a href="reference.html">REFERENCE</a>
+<a href="examples.html">EXAMPLES</a>
 <a href="http://git.ghostscript.com/?p=mujs.git;a=summary">SOURCE</a>
 <a href="https://bugs.ghostscript.com/">BUGS</a>
 </nav>