Skip to content

Commit 60bb24e

Browse files
committed
Merge branch 'main' into update-tutorials
Merge latest main Signed-off-by: C-D-Lewis <[email protected]>
2 parents 2443388 + 221e435 commit 60bb24e

File tree

3 files changed

+43
-4
lines changed

3 files changed

+43
-4
lines changed

source/_layouts/sdk/master.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ <h3><a href="/sdk/">SDK</a></h3>
2323
</div>
2424
<ul>
2525
<li class="section-menu__item{% if page.menu_subsection == 'install' %} active{% endif %}"><a href="/sdk">Installation</a></li>
26+
<li class="section-menu__item{% if page.menu_subsection == 'cloud' %} active{% endif %}"><a href="/sdk/cloud">Cloud IDE</a></li>
2627
<li class="section-menu__item{% if page.collection == 'changelogs' %} open{% endif %}">
2728
<a href="/sdk/changelogs/{{ site.data.sdk.c.version }}/">Changelog</a>
2829
<ul>

source/sdk/cloud.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
layout: sdk/markdown
3+
title: Use the Pebble SDK in the Cloud
4+
permalink: /sdk/cloud
5+
menu_section: sdk
6+
menu_subsection: cloud
7+
generate_toc: true
8+
scripts:
9+
- sdk/index
10+
---
11+
12+
## Get started
13+
14+
You can develop Pebble apps using a browser-based version of VS Code with the Pebble SDK pre-installed.
15+
16+
Press to launch a cloud development environment:
17+
18+
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/coredevices/codespaces-pebble?quickstart=1)
19+
20+
To resume your Codespace later, visit [cloud.repebble.com](https://cloud.repebble.com).
21+
22+
## Usage
23+
24+
Your Codespace will launch into an example project with the C file already open. Press the button at the top right of the C file called "Run on Emulator." It will take a minute for this button to appear.
25+
26+
Once you're ready to create your own Pebble app, press the smartwatch icon on the left sidebar of VS Code and select **New Project**.
27+
28+
#### Save to GitHub
29+
30+
You should connect your Codespace to a GitHub repository to ensure permanent storage of your project code.
31+
32+
To do this, press the Source Control icon in the left sidebar of VS Code, then press "Publish Branch." Approve the pop-up asking to sign in with GitHub, select your GitHub account, then select "Publish to GitHub private repository." When you make changes, you can commit and push to that GitHub repo. All projects in your codespace will be saved in one repo.
33+
34+
#### Import an existing project
35+
36+
In your terminal, paste `code /workspaces/codespaces-pebble`. VS Code will reload and open to that folder.
37+
38+
If there's a "build" folder in the project you want to import, delete it to speed up the upload.
39+
40+
Drag and drop your project into the file list pane on the left. Wait for the upload to complete. Then, press the Pebble icon in the left sidebar, select "Open Project", and select the project you just uploaded. You can now continue developing it!

source/sdk/index.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,10 @@ scripts:
2727

2828
#### MacOS
2929

30-
Use [Homebrew](https://brew.sh/) to install dependencies.
31-
32-
You'll need Python 3.10 or above, not the MacOS default installation of 3.9. To install a newer version of Python, as well as the other dependencies, run:
30+
You'll need Python 3.10 or above, not the MacOS default installation of 3.9. To install a newer version of Python using [Homebrew](https://brew.sh/), run:
3331

3432
```bash
35-
brew install python glib pixman
33+
brew install python
3634
```
3735

3836
#### Ubuntu

0 commit comments

Comments
 (0)