Skip to content

Commit cb3c520

Browse files
committed
2 parents 72e73df + b37fde6 commit cb3c520

5 files changed

Lines changed: 62 additions & 91 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ jobs:
2626

2727
- name: Install dependencies
2828
run: npm ci
29+
env:
30+
# CI only builds the VitePress site; it never generates PDFs,
31+
# so skip Puppeteer's Chrome download (it can't reach Google's
32+
# servers from the runner and would fail the install).
33+
PUPPETEER_SKIP_DOWNLOAD: true
2934

3035
- name: Build VitePress
3136
run: npm run docs:build

docs/.vitepress/config.mjs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export default defineConfig({
3737
{
3838
text: 'Tutorials',
3939
items: [
40-
{ text: 'Tutorial 0', link: '/tutorials/chapter-2-tutorial-0' },
4140
{ text: 'Tutorial 1', link: '/tutorials/chapter-2-tutorial-1' },
4241
// { text: 'Tutorial 2', link: '/tutorials/chapter-2-tutorial-2' },
4342
// { text: 'Tutorial 3', link: '/tutorials/chapter-3-tutorial-3' },
@@ -149,10 +148,6 @@ export default defineConfig({
149148
],
150149

151150
'/tutorials/': [
152-
{
153-
text: 'Tutorial 0',
154-
link: '/tutorials/chapter-2-tutorial-0'
155-
},
156151
{
157152
text: 'Tutorial 1',
158153
link: '/tutorials/chapter-2-tutorial-1'

docs/index.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ hero:
77
name: "CP115"
88
text: "Python Programming"
99
tagline: Labs, tutorials, and everything you need to get through the course.
10-
image:
11-
src: /icon.png
12-
alt: CP115
1310
actions:
1411
- theme: brand
1512
text: Get Started

docs/labs/lab-01.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,45 @@ This lab walks you through setting up **Git** and **VS Code**, then using their
2727

2828

2929

30+
## Create a GitHub Account
31+
32+
**GitHub** is the online platform where we store and share all the code for this course. Before you can fork, clone, or push any code, you need your own free **GitHub** account.
33+
34+
<Badge type="tip" text="Task" />
35+
36+
1. Open your browser and go to [https://github.com/signup](https://github.com/signup).
37+
2. Enter your **email address**. Use an email you check regularly so you can verify your account.
38+
3. Create a strong **password** and choose a **username**. This username is how others will see you on **GitHub**, so pick something clear and professional.
39+
40+
41+
Once your account is created and verified, you are ready to continue.
42+
43+
## Preparing Your Workspace Folder
44+
45+
Before working with **GitHub**, you need a place on your computer to keep your work. Keeping everything in one organized folder makes your files easy to find later.
46+
47+
<Badge type="tip" text="Task" />
48+
49+
First, create a folder named after yourself on your **Desktop**:
50+
51+
1. Go to your **Desktop**.
52+
2. Right-click on an empty area and choose `New``Folder`.
53+
3. Name the folder using your own name, for example `aiman-cp115`.
54+
55+
<br>
56+
57+
Now open that folder in **VS Code** so it becomes your working area:
58+
59+
1. Open **VS Code**.
60+
2. From the top menu, click `File``Open Folder...`.
61+
3. Browse to your **Desktop**, select the folder you just created, and click `Select Folder`.
62+
63+
::: tip
64+
You can also open the folder directly by right-clicking it on the **Desktop** and choosing `Open with Code`.
65+
:::
66+
67+
Once the folder is open, you will see its name at the top of the **Explorer** panel on the left side of **VS Code**. This is where your cloned repository will live.
68+
3069
## Install GitHub CLI
3170

3271
**GitHub CLI** (`gh`) is a command-line tool that brings **GitHub** directly into your terminal. In this course, we use it to authenticate your machine with **GitHub** so that pushing and pulling code works without entering your credentials every time.
@@ -113,6 +152,24 @@ Back in **VS Code**, choose `Source Control` from the sidebar and click `Clone r
113152
<img src="/public/labs/lab-01/lab-1-4.png" alt="drawing" width="400"/>
114153
</p>
115154

155+
### Cloning Using the Terminal <Badge type="tip" text="Optional" />
156+
157+
Instead of the graphical `Source Control` panel, you can also clone the repository using the **terminal**. This is the method most programmers use, and it is good to get familiar with it.
158+
159+
Open a terminal in **VS Code** by clicking `Terminal` and then `New Terminal`. A terminal will appear at the bottom of the window, already pointing at your workspace folder.
160+
161+
In the terminal, type the command below, replacing the link with the one you copied from the `Code` button on **GitHub**:
162+
163+
```bash
164+
git clone https://github.com/YOUR-USERNAME/CP115-Class-Repo.git
165+
```
166+
167+
Press `Enter`, and **Git** will download a full copy of the repository into a new folder inside your workspace.
168+
169+
::: tip
170+
Both methods do the same thing. The `Source Control` panel runs the `git clone` command for you behind the scenes.
171+
:::
172+
116173
After finishing that, your local copy is ready to use. If you have completed the **GitHub CLI** setup earlier, your machine is already authenticated and you are good to go.
117174

118175
## Commit and Push

docs/tutorials/chapter-2-tutorial-0.md

Lines changed: 0 additions & 83 deletions
This file was deleted.

0 commit comments

Comments
 (0)