-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
claat, render: support of an "offline" out format
The offline output creates a set of files, each per step, to support a codelab consumption directly from an offline storage, such as a USB thumbdrive.
- Loading branch information
Alex Vaghin
committed
Aug 27, 2016
1 parent
556d8e8
commit 58cc95b
Showing
8 changed files
with
439 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.5.1 | ||
0.6.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<!-- | ||
Copyright (c) 2016 Google Inc. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
use this file except in compliance with the License. You may obtain a copy of | ||
the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
License for the specific language governing permissions and limitations under | ||
the License. | ||
--> | ||
|
||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes"> | ||
<title>{{.Meta.Title}}</title> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400|Roboto:400,300,400italic,500,700|Roboto+Mono"> | ||
<link rel="stylesheet" href="{{.Prefix}}styles/codelab.css"> | ||
<style> | ||
html { | ||
height: 100%; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body class="codelab-takeover"> | ||
<div class="codelab__toc">{{range $i, $t := .Steps}} | ||
<a href="{{inc $i | stepLink}}" class="{{inc $i | tocItemClass $.StepNum}}"> | ||
<span class="toc-item__index">{{inc $i}}</span> | ||
<span class="toc-item__title">{{$t.Title}}</span> | ||
</a>{{end}} | ||
</div> | ||
|
||
<div class="codelab__step"> | ||
|
||
<div class="step__header"> | ||
<a href="{{dec .StepNum | stepLink}}"{{if not .Prev}} class="invis"{{end}}> | ||
<svg fill="#FFFFFF" height="24" viewbox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M0 0h24v24H0z" fill="none"/> | ||
<path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/> | ||
</svg> | ||
</a> | ||
|
||
<a href="{{.Prefix}}index.html" title="Return to home page"> | ||
<svg fill="#FFFFFF" height="24" viewbox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/> | ||
<path d="M0 0h24v24H0z" fill="none"/> | ||
</svg> | ||
</a> | ||
|
||
<a href="{{inc .StepNum | stepLink}}"{{if not .Next}} class="invis"{{end}}> | ||
<svg fill="#FFFFFF" height="24" viewbox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M0 0h24v24H0z" fill="none"/> | ||
<path d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"/> | ||
</svg> | ||
</a> | ||
|
||
<h1>{{.Meta.Title}}</h1> | ||
</div> | ||
|
||
<div class="step__body"> | ||
<h1>{{.Meta.Title}}</h1> | ||
<h2>{{.StepNum}}. {{.Current.Title}}</h2> | ||
{{.Current.Content | renderLite .Env}} | ||
</div> | ||
|
||
</div><!-- codelab__toc --> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.