Skip to content

content: First codelab!! #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
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
10 changes: 10 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,13 @@ mkdir -p BUILT/site/

# TODO Rename site/ to static/
find site/ -type f -exec ln -f {} BUILT/site \;

# Go
PATH="$PATH:$(go env GOPATH)/bin"

# https://github.com/googlecodelabs/tools/tree/main/claat#install
go install github.com/googlecodelabs/tools/claat@latest

# TODO mv source, so that URL and directory match
# (incl. changing "feedback link" in codelab.en.md)
claat export -o BUILT/site/en/computers/intro learn/computers/setup/concepts/codelab.en.md
9 changes: 8 additions & 1 deletion docs/ideas-ToDo.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

## Must

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

## Should

1. Generate Codelabs' "id" and "feedback link:" and "summary"

1. Fix https://github.com/googlecodelabs/tools/issues/877 for YAML Front Matter support in claat

1. Lessons Graph, with progress view, with Mermaid; à la Khan

1. Run https://lychee.cli.rs on generated output site (not source, as Mega Linter does)
Expand Down
10 changes: 8 additions & 2 deletions learn/computers/setup/concepts/codelab.en.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Computer Concepts
author: Michael Vorburger.ch
summary: Introduction to Computers
id: codelab
categories: computers,introduction
environments: Web
status: Published
feedback link: https://github.com/www-learn-study/saraswati.learn.study/edit/main/learn/computers/setup/concepts/codelab.en.md

## Prerequisites
# Computer Concepts

## CPU

Expand Down
4 changes: 1 addition & 3 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
</head>

<body>
<p>
<pre>hello, world</pre>
</p>
<p><a href="/en/computers/intro/codelab/">What's a Computer?</a></p>

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

Expand Down