Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Dec 16, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 2 claat/cmd/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ func exportCodelab(src string, opts CmdExportOptions) (*types.Meta, error) {

// codelab export context
lastmod := types.ContextTime(clab.mod)
clab.Meta.Source = src
meta := &clab.Meta
nicolasgarnier marked this conversation as resolved.
Show resolved Hide resolved
ctx := &types.Context{
Source: src,
Env: opts.Expenv,
Format: opts.Tmplout,
Prefix: opts.Prefix,
Expand Down
1 change: 1 addition & 0 deletions 1 claat/render/template-devsite.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
{{if .Meta.Summary}}
<meta name="description" content="{{.Meta.Summary}}" />
{{end}}
<meta name="original_source" content="https://docs.google.com/document/d/{{.Meta.Source}}/edit" />
<meta name="hide_last_updated" value="true" />
<meta name="hide_ratings_widget" value="true" />
<meta name="page_type" value="codelab" />
Expand Down
8 changes: 7 additions & 1 deletion 8 claat/render/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,14 @@
title="{{.Meta.Title}}"
environment="{{index .Env}}"
feedback-link="{{.Meta.Feedback}}">
{{range .Steps}}{{if matchEnv .Tags $.Env}}
{{range $i, $e := .Steps}}{{if matchEnv .Tags $.Env}}
<google-codelab-step label="{{.Title}}" duration="{{.Duration.Minutes}}">
{{if eq $i 0}}
<google-codelab-about codelab-title="{{$.Meta.Title}}"
{{if $.Updated}}last-updated="{{$.Updated}}"{{end}}
{{if $.Meta.Authors}}authors="{{$.Meta.Authors}}"{{end}}>
</google-codelab-about>
{{end}}
{{.Content | renderHTML $.Env}}
</google-codelab-step>
{{end}}{{end}}
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.