mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-06-05 06:40:37 +08:00
55 lines
1.9 KiB
HTML
55 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Deployd Documentation</title>
|
|
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" />
|
|
<link href="css/style.css" rel="stylesheet" type="text/css" />
|
|
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
|
|
</head>
|
|
<body>
|
|
<div class="navbar navbar-fixed-top">
|
|
<div class="navbar-inner">
|
|
<div class="container">
|
|
<span class="brand">
|
|
<a href="index.html"><img src="img/logo-text.png" alt="Deployd"></a>
|
|
</span>
|
|
<ul class="nav">
|
|
<li><a href="collection.html">Collection</a></li>
|
|
<li><a href="usercollection.html">User Collection</a></li>
|
|
<li><a href="files.html">Files</a></li>
|
|
</ul>
|
|
<script>
|
|
$('.nav a').each(function () {
|
|
var url = window.location.toString();
|
|
if(url.indexOf($(this).attr('href')) === (url.lastIndexOf('/') + 1))
|
|
$(this).parent().addClass('active');
|
|
});
|
|
</script>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container"><h1>Files Resource</h1>
|
|
|
|
<p>The Files Resource allows you host static files from your app, such as HTML, browser JavaScript, CSS, images, and videos. </p>
|
|
|
|
<h2>Accessing files</h2>
|
|
|
|
<p>Send a GET request with the filename to load the raw file. This is how browsers request pages and files by default.</p>
|
|
|
|
<pre><code>GET /files/bg.jpg
|
|
</code></pre>
|
|
|
|
<h2>Folders</h2>
|
|
|
|
<p>If you prefer to have separate folders for Javascript, CSS, and images, create multiple Static Resources at the paths you want to store the files.</p>
|
|
|
|
<p>You can also give a Static Resource an empty path <code>/</code>. This will assign it to the root of your app.</p>
|
|
|
|
<h2>Home page</h2>
|
|
|
|
<p>If a Static Resource receives a request without a filename, it will automatically redirect to "index.html" if available.</p>
|
|
</div>
|
|
</body>
|
|
|
|
</html> |