forked from microsoft/TypeScript-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocs.html
More file actions
49 lines (43 loc) · 1.5 KB
/
Copy pathdocs.html
File metadata and controls
49 lines (43 loc) · 1.5 KB
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
---
layout: default
sectionid: docs
---
<div id="doc-content" class="container-fluid fill docs-container">
<a id='try-beta'>Try v2 Beta Page</a>
<script>
const tryBeta = document.getElementById("try-beta")
const mobile = window.outerWidth < 800
const isHome = document.location.pathname === "/docs/home.html"
if (!mobile && !isHome) {
tryBeta.style.display = "block";
tryBeta.onclick = () => {
document.location.pathname = "v2" + document.location.pathname
}
}
</script>
<div class="container">
<div class="col-md-2 toc-container hidden-xs hidden-sm">
{% include toc.html %}
</div>
<div class="col-md-10 col-xs-12 col-sm-12 doc-content-container">
<div class="xs-toc-container visible-xs visible-sm">
{% include xs-toc.html %}
</div>
<header class="post-header">
<h1 class="post-title">{{ page.title }}</h1>
<!--<a class="edit-page-link" href="{{ site.projecturl }}{{ page.relative_path }}" target="_blank">Edit on GitHub</a>-->
</header>
<article class="post-content">
<p>{{ page.description }}</p>
{{ content }}
</article>
</div>
</div>
</a>
<script type="text/javascript">
$(function() {
//$(".tocAccordion").accordion();
setDocTOC();
hljs.initHighlightingOnLoad();
});
</script>