Skip to content
Merged
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
1 change: 1 addition & 0 deletions source/_layouts/sdk/master.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ <h3><a href="/sdk/">SDK</a></h3>
</div>
<ul>
<li class="section-menu__item{% if page.menu_subsection == 'install' %} active{% endif %}"><a href="/sdk">Installation</a></li>
<li class="section-menu__item{% if page.menu_subsection == 'cloud' %} active{% endif %}"><a href="/sdk/cloud">Cloud IDE</a></li>
<li class="section-menu__item{% if page.collection == 'changelogs' %} open{% endif %}">
<a href="/sdk/changelogs/{{ site.data.sdk.c.version }}/">Changelog</a>
<ul>
Expand Down
40 changes: 40 additions & 0 deletions source/sdk/cloud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
layout: sdk/markdown
title: Use the Pebble SDK in the Cloud
permalink: /sdk/cloud
menu_section: sdk
menu_subsection: cloud
generate_toc: true
scripts:
- sdk/index
---

## Get started

You can develop Pebble apps using a browser-based version of VS Code with the Pebble SDK pre-installed.

Press to launch a cloud development environment:

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/coredevices/codespaces-pebble?quickstart=1)

To resume your Codespace later, visit [cloud.repebble.com](https://cloud.repebble.com).

## Usage

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.

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**.

#### Save to GitHub
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: should be level 3 heading, not level 4


You should connect your Codespace to a GitHub repository to ensure permanent storage of your project code.

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.

#### Import an existing project
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: should be level 3 heading, not level 4


In your terminal, paste `code /workspaces/codespaces-pebble`. VS Code will reload and open to that folder.

If there's a "build" folder in the project you want to import, delete it to speed up the upload.

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!
6 changes: 2 additions & 4 deletions source/sdk/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@ scripts:

#### MacOS

Use [Homebrew](https://brew.sh/) to install dependencies.

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:
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:

```bash
brew install python glib pixman
brew install python
```

#### Ubuntu
Expand Down