63 lines
2.1 KiB
HTML
63 lines
2.1 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<title>cncjs</title>
|
|
<meta name="description" content="">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="shortcut icon" href="/favicon.ico">
|
|
<link rel="stylesheet" type="text/css" href="normalize.css">
|
|
<link rel="stylesheet" type="text/css" href="bootstrap.min.css">
|
|
<style>
|
|
.jumbotron {
|
|
height: 100vh;
|
|
background-color: #fff;
|
|
}
|
|
.code {
|
|
padding: 0.2em;
|
|
margin: 0;
|
|
font-size: 85%;
|
|
background-color: rgba(0,0,0,0.04);
|
|
border-radius: 3px;
|
|
}
|
|
.code:before,
|
|
.code:after {
|
|
letter-spacing: -0.2em;
|
|
content: "\00a0";
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="jumbotron">
|
|
<div class="container">
|
|
<h1>Welcome to cncjs!</h1>
|
|
<hr>
|
|
<p>If you see this page, the default mount point for serving static files is working. Further configuration is required.</p>
|
|
<ol>
|
|
<li>
|
|
<h5>Run <span class="code">cncjs</span> with -h for detailed usage:</h5>
|
|
<pre>
|
|
$ cncjs -h
|
|
|
|
Usage: cncjs [options]
|
|
|
|
Options:
|
|
-m, --mount [<url>:]<path> set the mount point for serving static files (default: /static:static)</pre>
|
|
</li>
|
|
<li>
|
|
<h5>Specify a mount path for the static directory, as shown below:</h5>
|
|
<pre>$ cncjs -m /static:/path/to/your/static/files</pre>
|
|
</li>
|
|
</ol>
|
|
<hr>
|
|
<p>The example shown below is a tiny web interface for small size LCD display 320x240 with very limited features.<br>Visit <span class="code">http://localhost:8000/pendant/</span> after running the command:</p>
|
|
<pre>$ cncjs -m /pendant:/path/to/tinyweb</pre>
|
|
<hr>
|
|
<p>For online documentation please refer to <a href="https://cnc.js.org/docs">https://cnc.js.org/docs</a>.</p>
|
|
<p><a class="btn btn-primary btn-lg" href="https://github.com/cncjs/cncjs" role="button">Learn more »</a></p>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|