This repository has been archived by the owner on Jun 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
76 lines (75 loc) · 4.55 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>jist.in - about</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript">
"use strict";
var root_domains = [
'.jist.in',
'.127.0.0.1.xip.io'
];
var i;
for (i = 0; i < root_domains.length; i++) {
if (document.location.hostname.slice(-root_domains[i].length) === root_domains[i]) {
window.location.replace(document.URL + 'blog/'); // http://goo.gl/dyPIa
break;
}
}
</script>
<link href="//netdna.bootstrapcdn.com/bootswatch/2.3.2/readable/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="/css/style.css" rel="stylesheet" media="screen">
</head>
<body lang="en">
<div id="wrapper">
<div class="container-fluid">
<div id="content">
<h1>jist.in</h1>
<hr>
<div class="section">
This is an (almost) server-less tool to display <a href="https://gist.github.com/">GitHub Gists</a> for comfortable reading.<br>It processes gist contents entirely by client-side <em>J</em>avaScript in users' browsers.
</div>
<div class="section">
<h2>Usage</h2>
For simplest cases, you can
<ol>
<li><a href="https://gist.github.com/">Create a gist</a> with <a href="http://daringfireball.net/projects/markdown/">a Markdown file</a>. The gist can be either public or private.</li>
<li>Copy the gist's numerical ID <code>gist_id</code> from the page URL, which looks like
<ul>
<li><em>5794706</em> for public gists, or</li>
<li><em>908e37c83da28b50a897</em> for private ones.</li>
</ul>
</li>
<li>Comfortably read at <code>http://jist.in/gist_id</code>.<br>
You can check out <a href="http://jist.in/5855373">jist.in/5855373</a> for an example post.
</ol>
Or you can use the <a href="https://chrome.google.com/webstore/detail/cmgkjoejbnapagcdedjclloghamckmbb">Chrome extension</a> or this <a href='javascript:(function(){var a=/^https:\/\/gist\.github\.com\/([^\/]+)\/([^\/]+)/im,b=document.URL;a.test(b)&&(a=b.match(a),window.location.href="http://"+a[1]+".jist.in/"+a[2])})();'>jist.in bookmarklet</a> on the gist page to automatically jump to its corresponding jist.in page.
</div>
<p>
<h2>Features</h2>
Besides <a href="http://daringfireball.net/projects/markdown/">Markdown</a>, <em>jist.in</em> also supports:
<ul>
<li>Local usage (completely server-less),</li>
<li>Custom CSS (<a href="http://jist.in/5855664">check out the example</a>),</li>
<li>Custom JavaScript (<a href="http://zhuzhuor.jist.in/5843799">example from three.js</a>),</li>
<li>HTML content (<a href="http://mbostock.jist.in/1353700">Mike Bostock’s epicyclic gearing</a>),</li>
<li>LaTeX for mathematical content (<a href="http://zhuzhuor.jist.in/5855373">a short bio of Évariste Galois</a>),</li>
<li>List of gists with specific tags, e.g. <em>blog</em> (<a href="http://zhuzhuor.jist.in/jist-blog/">zhuzhuor.jist.in/jist-blog/</a>),</li>
<li>Custom domain name (<a href="http://jist-blog.zhuzhu.org">jist-blog.zhuzhu.org</a>).</li>
</ul>
For detailed usage instructions, please refer to <a href="https://github.com/zhuzhuor/jist/">the GitHub repo</a>.
</p>
</div>
<!-- <div id="status"></div> -->
</div>
<div id="pusher"></div>
</div>
<div id="footer" class="muted">
<div class="container-fluid">
Proudly presented to you by <a href="http://zhuzhu.org">zhuzhuor</a>.
</div>
</div>
<script async type="text/javascript" src="/js/analytics.js"></script>
</body>
</html>