From 2dced7cf692a7043ed253d626b1250707801ff85 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 5 Jun 2017 10:20:16 -0700 Subject: [PATCH] Update docs website. --- docs/about.html | 25 ++++++++++++++++++++++++- docs/artifex-logo.png | Bin 0 -> 1584 bytes docs/examples.html | 24 +++++++++++++++++++++++- docs/reference.html | 38 ++++++++++++++++++++++++++++++++++++-- docs/style.css | 41 +++++++++++++++++++++++++++++------------ 5 files changed, 112 insertions(+), 16 deletions(-) create mode 100755 docs/artifex-logo.png diff --git a/docs/about.html b/docs/about.html index db5ef5e..66a8c5f 100644 --- a/docs/about.html +++ b/docs/about.html @@ -2,10 +2,25 @@ -MuJS: about +About MuJS + +
+

About MuJS

+
+ + + +
+

What is MuJS?

@@ -80,4 +95,12 @@ The default build is sandboxed with very restricted access to resources. MuJS is free open source software distributed under the ISC license. +

+ + + + diff --git a/docs/artifex-logo.png b/docs/artifex-logo.png new file mode 100755 index 0000000000000000000000000000000000000000..af610a06d02bd0aeca8c1515d78671a89162c361 GIT binary patch literal 1584 zcmV-02G9A4P)kc>000H|NklG62|e!nLXA4e~I-vkH{_*I!WjhCb74+3s< zk&|sg!EwMSX5P~Q9{|o1`6GZ-Pf~uuk!4!qSGI_ZN8T2}yj$d=CMSw~Wi$K9<~bM_ z=W(_Z{hMMTA7!os^tsGCsmbrsk`Kr&E^`*r5N``4o4C|v10^=bd8`JazurZzfXJO- z$ls)y_xH(3emL@kiTL!2-NF}~sV-)Gf`}gm*ss~dcEFWMK>kUF{P&5>0YD{S1>hlo zHC7>IS9dFkU`YOmcZRj%9XRo>~7M{HXSdXX& z+CPe8AO!)3)OS-ji#^Qwcpm)DYr}nf|$M z#LqUx`qaujVn%4LadYBC{B6t_>FE0C^D0a7+o>l(x${wypU-9cNPeetO%%jC z$iu$NnYQ`ZCSSxKN!$H8tKVa?`mFMeB9K2rH?h^W#+P(C-^*LA=+H)LhG0&}>Dfh_tcw1|s7mi|epx zB;)oq%9%V9@FD3Ve`jI)I1BPq@C6u)E}FXROw=_N_3R}w&!W|iLCCQ1HIXS(=8=v0 zmfGIPa5I|E@CUx@O)lTFs`ZUv-qda#`49-j!MQU9kZZz3gVir2x}^)dN{MG#XsxPD zEt9>|IW97s1SnxUT;%dCiacA1Oar5bl3#=CbjZ(SlF%}u<6%RXxYK>j;Yg;D_;BQ$ zr=~p@@|;Ia@d=-zH|Chxb1`9Z@=_ivNmL)?A`laG`!`?bM^ zlim8`VL0-N1^E&0^8IP(&a?^5%|5@_H^$5|3UIUi?(`)-q>wF zesj+DT&924g8bW=H|=#D33-6Evw}4C@3UA`@FIwJ@K_wlf7c}^Nfh~wj7&XxG62#10W@oi#hX^QUB0gpIT&t?m6!Fi#g7|E}`m8V_?WBr$CG>m7Fh literal 0 HcmV?d00001 diff --git a/docs/examples.html b/docs/examples.html index a40aae0..fb77cac 100644 --- a/docs/examples.html +++ b/docs/examples.html @@ -2,11 +2,24 @@ -MuJS: examples +MuJS Examples + +

MuJS Examples

+
+ + + +

A stand-alone interpreter

@@ -103,6 +116,7 @@ static int call_callback(js_State *J, const char *arg1, int arg2) return result; } +

Callbacks from C to JS

@@ -198,4 +212,12 @@ void initfile(js_State *J) } +
+ +
+ +Copyright © 2013-2017 Artifex Software Inc. +
+ + diff --git a/docs/reference.html b/docs/reference.html index 341a536..0bcbffa 100644 --- a/docs/reference.html +++ b/docs/reference.html @@ -2,11 +2,24 @@ -MuJS: reference manual +MuJS Reference Manual + +

MuJS Reference Manual

+
+ + + +

Introduction

@@ -171,6 +184,18 @@ js_Panic js_atpanic(js_State *J, js_Panic panic); Set a new panic function, and return the old one. +

Report

+ +
+typedef void (*js_Report)(js_State *J, const char *message);
+
+void js_setreport(js_State *J, js_Report report);
+
+ +

+Set a callback function for reporting various warnings +and garbage collection statistics. +

Garbage collection

@@ -179,7 +204,8 @@ js_gc(js_State *J, int report);
 
 

Force a garbage collection pass. -If the report argument is non-zero, print a summary of garbage collection statistics to stdout. +If the report argument is non-zero, send a summary of garbage collection statistics to +the report callback function.

Loading and compiling scripts

@@ -658,4 +684,12 @@ void js_unref(js_State *J, const char *ref);

WIP: Delete the reference from the registry. +

+ + + + diff --git a/docs/style.css b/docs/style.css index 40b388f..e8788e8 100644 --- a/docs/style.css +++ b/docs/style.css @@ -1,16 +1,33 @@ -@import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400italic,600,600italic|Source+Code+Pro); +h1, nav, footer { font-family: sans-serif; } -body { - font-family: 'Source Sans Pro', sans-serif; - font-size: 12pt; - margin: 3pc; - max-width: 45em; - text-align: justify; +a { text-decoration: none; } +a:hover { text-decoration: underline; } +h2 { font-size: 1.25rem; } +h3 { font-size: 1.12rem; } +ul li { list-style-type: circle; } +pre, table, ol, dl { margin-left: 2rem; } +li { margin: 0; } +th, td { text-align: left; vertical-align: top; } + +body { margin: 0; } +h1 { + font-weight: normal; + margin: 0; + padding: 1rem 2rem; + background-color: #36648b; + color: white; } -pre, tt, code { - font-family: 'Source Code Pro', monospaced; - font-size: 11pt; +nav { + padding: 1rem 2rem; + background-color: #ddd; } -h2 { - border-bottom: 2px solid black; +nav a { color: #303030; padding-right: 2rem; } +article { + max-width: 50rem; + margin: 2rem; +} +footer { + background-color: #ddd; + color: #303030; + padding: 1rem 2rem; }