-
Notifications
You must be signed in to change notification settings - Fork 504
/
Copy pathlayout.hbs
127 lines (104 loc) · 3.72 KB
/
layout.hbs
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html>
<head>
{{#if page.title}}
<title>{{page.title}} | npm Documentation</title>
{{else}}
<title>npm Documentation</title>
{{/if}}
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="The place where all things npm are documented">
<link href="//fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,400italic|Source+Code+Pro:400,600,700" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="/styles/index.css">
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" />
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="/js/main.js"></script>
</head>
<body data-page="{{pageId}}">
<header>
<a id="www-link" href="https://www.npmjs.com">npmjs.com</a>
</header>
<a href="https://www.npmjs.com" id="logo">
<img src="/images/npm.svg">
</a>
<nav>
{{#each content.sections}}
<section {{#equal id ../page.section}}class="active"{{/equal}}>
<h2 title="{{title}}">
<a href="#">{{title}}</a>
</h2>
<div class="pages">
{{#each pages}}
<a href="{{href}}" {{#equal href ../../page.href}}class="active"{{/equal}}>{{title}}</a>
{{/each}}
</div>
</section>
{{/each}}
<a class="smallLink" href="/all">view all on one page</a>
</nav>
{{{body}}}
<div class="toc">
<section id="plans">
<h2 title="npm Services">npm Services</h2>
<ul class="pageColumns">
<li>
<a href="https://www.npmjs.com/docs/orgs/">npm Orgs</a> -
<span class="faint heading">the npm Orgs documentation site</span>
</li>
<li>
<a href="https://npme.npmjs.com">npm Enterprise</a> -
<span class="faint heading">the npm Enterprise documentation site</span>
</li>
</ul>
</section>
{{#each content.sections}}
{{#unless ignoreOnHomepage}}
{{#if pages.length}}
<section id="{{id}}">
<h2 title="{{title}}">
{{#if href}}
<a href="{{href}}">{{title}}</a>
{{else}}
{{title}}
{{/if}}
</h2>
<ul class="pageColumns">
{{#each pages}}
<li>
<a href="{{href}}">{{#if displayOrder}}{{order}} - {{/if}}{{title}}</a>
{{#if subtitle}}<span class="faint heading">{{subtitle}}</span>{{/if}}
</li>
{{/each}}
</ul>
</section>
{{/if}}
{{/unless}}
{{/each}}
<section id="viewAll">
<h2 title="View All">
<a href="/all">View All On One Page</a>
</h2>
</section>
</div>
<footer>
<div class="container">
<div id="npm-install-instructions" style="display:none">
<p>
The current stable version of npm is <a id="npm-stable-version"></a>
</p>
<p>
To upgrade, run: <code>npm install npm@latest -g</code>
</p>
</div>
<p>
This site is a work in progress. If you find bugs in the docs or have documentation-related feature requests, please <a href="https://github.com/npm/docs/issues">let us know.</a> Submit npm issues on <a href="https://github.com/npm/npm/issues">the main issues page.</a>
</p>
<p>
Need help? Tweet at <a href="https://twitter.com/npm_support">@npm_support</a> or email <a href="mailto:[email protected]">[email protected]</a>.
</p>
</div>
</footer>
<script src="/js/marketing/google_analytics.js" type="text/javascript"></script>
<script src="/js/marketing/eloqua.js" type="text/javascript"></script>
</body>
</html>