Skip to content

Commit 0413d3a

Browse files
committed
content: First codelab!!
1 parent e8ab04f commit 0413d3a

4 files changed

Lines changed: 27 additions & 6 deletions

File tree

build.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,13 @@ mkdir -p BUILT/site/
77

88
# TODO Rename site/ to static/
99
find site/ -type f -exec ln -f {} BUILT/site \;
10+
11+
# Go
12+
export PATH="$(go env GOPATH)/bin:$PATH"
13+
14+
# https://github.com/googlecodelabs/tools/tree/main/claat#install
15+
go install github.com/googlecodelabs/tools/claat@latest
16+
17+
# TODO mv source, so that URL and directory match
18+
# (incl. changing "feedback link" in codelab.en.md)
19+
claat export -o BUILT/site/en/computers/intro learn/computers/setup/concepts/codelab.en.md

docs/ideas-ToDo.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
## Must
44

5-
1. #Hack Codelab #1 (with Bazel)
65
1. #Com A. test
76
1. #Hack Kata `echo hello`
7+
1. #Hack Build 2nd Codelab, automagically
8+
1. #Hack tocs.yaml reader used to generate
9+
1. #Hack MD [ ] doesn't work in Codelabs
810
1. #Design Homepage HTML black and matrix-like green with https://github.com/Rezmason/matrix
911
1. #Hack Codelabs directory site (pending https://github.com/googlecodelabs/tools/pull/884)
1012
1. #Hack Slides
@@ -20,9 +22,14 @@
2022
1. #Com https://github.com/edunumsec2/book/blob/master/doc/comite.md
2123
1. #Hack SEO for client-side multilingual - `<html lang="en">` ?
2224
1. #Hack Write _Terms of Service_ and _Privacy Policy_
25+
1. #Com #Biz Merch!
2326

2427
## Should
2528

29+
1. Generate Codelabs' "id" and "feedback link:" and "summary"
30+
31+
1. Fix https://github.com/googlecodelabs/tools/issues/877 for YAML Front Matter support in claat
32+
2633
1. Lessons Graph, with progress view, with Mermaid; à la Khan
2734

2835
1. Run https://lychee.cli.rs on generated output site (not source, as Mega Linter does)

learn/computers/setup/concepts/codelab.en.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
# Computer Concepts
1+
author: Michael Vorburger.ch
2+
summary: Introduction to Computers
3+
id: codelab
4+
categories: computers,introduction
5+
environments: Web
6+
status: Published
7+
feedback link: https://github.com/www-learn-study/saraswati.learn.study/edit/main/learn/computers/setup/concepts/codelab.en.md
28

3-
## Prerequisites
9+
# Computer Concepts
410

511
## CPU
612

site/index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@
2626
</head>
2727

2828
<body>
29-
<p>
30-
<pre>hello, world</pre>
31-
</p>
29+
<p><a href="/en/computers/intro/codelab/">What's a Computer?</a></p>
3230

3331
<p>🚧 This website is currently still under construction.🏗️</p>
3432

0 commit comments

Comments
 (0)