forked from keras-team/keras-io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase.html
More file actions
214 lines (196 loc) · 8.77 KB
/
base.html
File metadata and controls
214 lines (196 loc) · 8.77 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
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Keras documentation: {{title}}">
<meta name="author" content="Keras Team">
<link rel="shortcut icon" href="https://keras.io/img/favicon.ico">
{% if relative_url %}
<link rel="canonical" href="https://keras.io{{relative_url}}" />
{% endif %}
<!-- Social -->
<meta property="og:title" content="Keras documentation: {{title}}">
<meta property="og:image" content="https://keras.io/img/logo-k-keras-wb.png">
<meta name="twitter:title" content="Keras documentation: {{title}}">
<meta name="twitter:image" content="https://keras.io/img/k-keras-social.png">
<meta name="twitter:card" content="summary">
<title>{{title}}</title>
<!-- Custom fonts for this template -->
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400&display=swap" rel="stylesheet">
<!-- Bootstrap core CSS -->
<link href="{{base_url}}css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="{{base_url}}css/docs.css?v=3" rel="stylesheet">
<link href="{{base_url}}css/monokai.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css"
integrity="sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.js"
integrity="sha384-XjKyOOlGwcjNTAIQHIpgOno0Hl1YQqzUOEleOLALmuqehneUG+vnGctmUb0ZY0l8" crossorigin="anonymous">
</script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/contrib/auto-render.min.js"
integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" crossorigin="anonymous"
onload='renderMathInElement(document.body, {
delimiters: [
{left: "\\(", right: "\\)", display: false},
{left: "\\[", right: "\\]", display: true},
{left: "$$", right: "$$", display: true},
{left: "$", right: "$", display: false}
],
throwOnError: false
});'>
</script>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-5DNGF4N');
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-175165319-128', 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Tag Manager -->
<script async defer src="https://buttons.github.io/buttons.js"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5DNGF4N"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<div class="k-page">
<div class="hidden">
{% set related_nav_urls_map = {
"/api/": ["/2/api/"],
"/2/api/": ["/api/"],
} %}
{% set vars = {'related_urls': [], 'active_url': ''} %}
{% for item in nav %}
{% if item.active %}
{{ vars.update({'related_urls': related_nav_urls_map[item.url], 'active_url': item.url}) }}
{% endif %}
{% endfor %}
</div>
<nav class="nav__container">
<div class="nav__wrapper">
<div class="nav__controls--mobile">
<button class="nav__menu--button"><i class="icon--menu"></i></button>
<button class="nav__menu--close"><i class="icon--close"></i></button>
<a href="{{base_url}}">
<img class="nav__logo nav__logo--mobile" src="{{base_url}}img/k-logo.png" />
</a>
<button class="nav__search--mobile">
<i class="icon__search--mobile"></i>
</button>
</div>
<form class="nav__search nav__search-form--mobile">
<input
class="nav__search--input"
type="search"
placeholder="SEARCH"
aria-label="Search"
/>
<button class="nav__search--button" type="submit">
<i class="icon--search"></i>
</button>
</form>
<div class="k-nav nav__mobile-menu" id="nav-menu">
<!-- version with just the active item visible -->
<div class="nav flex-column nav-pills" role="tablist" aria-orientation="vertical">
{% for item in nav %}
<a class="nav-link{% if item.active %} active{% endif %}" href="{{item.url}}" role="tab" aria-selected="{{item.selected}}">{{item.title}}</a>
{% if item.active %}
{% for child in item.children %}
<a class="nav-sublink{% if child.active %} active{% endif %}" href="{{child.url}}">{{child.title}}</a>
{% if child.active %}
{% for grandchild in child.children %}
<a class="nav-sublink2{% if grandchild.active %} active{% endif %}" href="{{grandchild.url}}">{{grandchild.title}}</a>
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
</div>
</div>
<a href="{{base_url}}">
<img class="nav__logo nav__logo--desktop" src="{{base_url}}img/logo.png" alt="keras.io logo" />
</a>
<div class="nav__menu">
{% set main_nav_items = {
'/getting_started/': 'Get started',
'/guides/': 'Guides',
'/api/': 'API',
'/examples/': 'Examples',
'/keras_hub/': 'Keras Hub',
'/keras_rs/': 'Keras RS',
'/keras_tuner/': 'Keras Tuner',
} %}
<ul class="nav__item--container">
{% for key, value in main_nav_items.items() %}
<li class="nav__item">
<a class="nav__link{% if key == vars['active_url'] or key in vars['related_urls'] %} nav__link--active{% endif %}" href="{{ key }}">{{ value }}</a>
</li>
{% endfor %}
</ul>
<form class="nav__search">
<input
class="nav__search--input"
type="search"
placeholder="SEARCH"
aria-label="Search"
/>
<button class="nav__search--button" type="submit">
<i class="icon--search"></i>
</button>
</form>
</div>
</div>
</nav>
<div class="page__container flex__container">
<div class="nav__side-nav" id="nav-menu">
<div class="nav flex-column nav-pills" role="tablist" aria-orientation="vertical">
{% for item in nav %}
{% if (item.active and item.children|length > 0) or item.url in vars['related_urls'] %}
<a class="nav-link{% if item.active %} active{% endif %}" href="{{item.url}}" role="tab" aria-selected="{{item.selected}}">
{{item.title}}
</a>
{% if item.active and item.children|length > 0 %}
<div class="nav-expanded-panel">
{% for child in item.children %}
<a class="nav-sublink{% if child.active %} active{% endif %}" href="{{child.url}}">{{child.title}}</a>
{% if child.active %}
{% for grandchild in child.children %}
<a class="nav-sublink2{% if grandchild.active %} active{% endif %}" href="{{grandchild.url}}">{{grandchild.title}}</a>
{% endfor %}
{% endif %}
{% endfor %}
</div>
{% endif %}
{% endif %}
{% endfor %}
</div>
</div>
<div class="k-main">
{{main}}
</div>
</div>
</div>
<footer>
<div class="footer__container">
<a href="https://policies.google.com/terms">Terms</a>
<div>|</div>
<a href="https://policies.google.com/privacy">Privacy</a>
</div>
</footer>
<script src="{{base_url}}js/index.js"></script>
</body>
</html>