-
Notifications
You must be signed in to change notification settings - Fork 0
/
sitemap.html
executable file
·71 lines (64 loc) · 2.58 KB
/
sitemap.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
---
layout: default
title: Sitemap
overview: true
---
<ul class="toolbar">
<li>{"<a href="sitemap.json" title="JSON" target="_blank">JSON</a>"}</li>
</ul>
<h2>Sitemap</h2>
<p>This is a listing of all the pages, and building blocks that make up the Dev Hub portal. Everything here you can navigate via HTML and programmatically via JSON, all accessible from this single sitemap.</p>
<div class="row">
<div class="span2"> </div>
<div class="span4">
{% raw %}
<script id="sitemapPagesListingTemplate" type="text/template">
<li><a href="{{URL}}"><strong>{{Name}}</strong></a></li>
</script>
{% endraw %}
<script type="text/javascript">
function listAPIs()
{
$.getJSON('sitemap.json', function(data) {
toggle = 0;
$.each(data['Pages'], function(key, val) {
var template = $('#sitemapPagesListingTemplate').html();
var html = Mustache.to_html(template, val);
$('#sitemapPagesListing').append(html);
});
});
}
listAPIs();
</script>
<h3>Pages</h3>
<div style="height: 300px; overflow: auto;">
<ul id="sitemapPagesListing"></ul>
</div>
</div>
<div class="span3">
{% raw %}
<script id="sitemapBuildingBlocksTemplate" type="text/template">
<li><a href="{{URL}}"><strong>{{Name}}</strong></a></li>
</script>
{% endraw %}
<script type="text/javascript">
function listAPIs()
{
$.getJSON('sitemap.json', function(data) {
toggle = 0;
$.each(data['Building Blocks'], function(key, val) {
var template = $('#sitemapBuildingBlocksTemplate').html();
var html = Mustache.to_html(template, val);
$('#sitemapBuildingBlocksListing').append(html);
});
});
}
listAPIs();
</script>
<h3>Building Blocks</h3>
<div style="height: 300px; overflow: auto;">
<ul id="sitemapBuildingBlocksListing"></ul>
</div>
</div>
<div class="span2"> </div>
</div>