You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where `<tmpdir>` is a temporary directory on your system (e.g. the output of `mktemp -d`).
30
+
31
+
## Step 2: Learn and extract key information about the lab
32
+
33
+
The repo structure is:
34
+
35
+
-`<tmpdir>/{REPO_NAME}/README.md` — the main README for the lab
36
+
-`<tmpdir>/{REPO_NAME}/labspace/labspace.yaml` — a YAML document outlining details of the lab, including the sections/modules and the path to their content
37
+
-`<tmpdir>/{REPO_NAME}/labspace/*.md` — the content for each section/module (only reference the files specified in `labspace.yaml`)
38
+
-`<tmpdir>/{REPO_NAME}/.github/workflows/` — the GHA workflow that publishes the labspace. It includes the repo URL for the published Compose file, which will be useful for the "launch" command
1. Read `README.md` to understand the purpose of the lab.
42
+
2. Read the `labspace/labspace.yaml` to understand the structure of the lab and its sections/modules.
43
+
3. Read the `labspace/*.md` files to extract the learning objectives, instructions, and any code snippets.
44
+
4. Extract a short description that can be used for the `description` and `summary` fields in the guide markdown.
45
+
5. Determine if a model will be pulled when starting the lab by looking at the `compose.override.yaml` file and looking for the any top-level `model` specifications.
46
+
47
+
48
+
## Step 2: Write the guide markdown
49
+
50
+
The markdown file must be located in the `guides/` directory and have a filename of `lab-{GUIDE_ID}.md`.
51
+
52
+
Sample markdown structure, including frontmatter and content:
53
+
54
+
```markdown
55
+
---
56
+
title: "Lab: { Short title }"
57
+
linkTitle: "Lab: { Short title }"
58
+
description: |
59
+
A short description of the lab for SEO and social sharing.
60
+
summary: |
61
+
A short summary of the lab for the guides listing page. 2-3 lines.
62
+
keywords: AI, Docker, Model Runner, agentic apps, lab, labspace
63
+
aliases: # Include if the lab is an AI-related lab
0 commit comments