From 402536a8ebc7cbd1b08249b64f979bc912ce6c9a Mon Sep 17 00:00:00 2001 From: Stasia Michalska Date: Sun, 21 Dec 2025 19:28:59 +0100 Subject: [PATCH] Replace pebble-clay with @rebble/clay --- .../one-click-actions.md | 2 +- source/_guides/rocky-js/rocky-js-overview.md | 2 +- .../user-interfaces/app-configuration.md | 40 +++++++++---------- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/source/_guides/design-and-interaction/one-click-actions.md b/source/_guides/design-and-interaction/one-click-actions.md index c8a3fab..cf88d6d 100644 --- a/source/_guides/design-and-interaction/one-click-actions.md +++ b/source/_guides/design-and-interaction/one-click-actions.md @@ -107,7 +107,7 @@ key. You can generate your own virtual lockitron UUID and access code on the > Never publish your actual Lockitron access token in the appstore, unless you want strangers unlocking your door! Ideally you would make these fields -configurable using [Clay for Pebble](https://github.com/pebble/clay). +configurable using [Clay for Pebble](https://github.com/pebble-dev/clay). We’re going to need a simple enum for the state of our lock, where 0 is unlocked, 1 is locked and anything else is unknown. diff --git a/source/_guides/rocky-js/rocky-js-overview.md b/source/_guides/rocky-js/rocky-js-overview.md index 9ae2bed..ddc69af 100644 --- a/source/_guides/rocky-js/rocky-js-overview.md +++ b/source/_guides/rocky-js/rocky-js-overview.md @@ -317,7 +317,7 @@ rocky.on('draw', function(event) { ## App Configuration -[Clay](https://github.com/pebble/clay#) is a JavaScript library that makes it +[Clay](https://github.com/pebble-dev/clay#) is a JavaScript library that makes it easy to add offline configuration pages to your Pebble apps. Out of the box, Clay is not currently compatible with Rocky.js, but it can be made to work by manually including the clay.js file and overriding the default events. diff --git a/source/_guides/user-interfaces/app-configuration.md b/source/_guides/user-interfaces/app-configuration.md index c5b6a41..82d6721 100644 --- a/source/_guides/user-interfaces/app-configuration.md +++ b/source/_guides/user-interfaces/app-configuration.md @@ -26,7 +26,7 @@ related_examples: Many watchfaces and watchapps in the Pebble appstore include the ability to customize their behavior or appearance through the use of a configuration page. -[Clay for Pebble](https://github.com/pebble/clay) is the recommended approach +[Clay for Pebble](https://github.com/pebble-dev/clay) is the recommended approach for creating configuration pages, and is what will be covered in this guide. If you need to host your own configuration pages, please follow our {% guide_link user-interfaces/app-configuration-static "Manual Setup" %} guide. @@ -61,7 +61,7 @@ takes minimal effort to install. Within your project folder, just type: ```nc|text -$ pebble package install pebble-clay +$ pebble package install @rebble/clay ``` @@ -93,18 +93,18 @@ The Clay configuration file (`config.js`) should be created in your `src/pkjs/` folder. It allows the easy definition of each type of HTML form entity that is required. These types include: -* [Section](https://github.com/pebble/clay#section) -* [Heading](https://github.com/pebble/clay#heading) -* [Text](https://github.com/pebble/clay#text) -* [Input](https://github.com/pebble/clay#input) -* [Toggle](https://github.com/pebble/clay#toggle) -* [Select](https://github.com/pebble/clay#select) -* [Color Picker](https://github.com/pebble/clay#color-picker) -* [Radio Group](https://github.com/pebble/clay#radio-group) -* [Checkbox Group](https://github.com/pebble/clay#checkbox-group) -* [Generic Button](https://github.com/pebble/clay#generic-button) -* [Range Slider](https://github.com/pebble/clay#range-slider) -* [Submit Button](https://github.com/pebble/clay#submit) +* [Section](https://github.com/pebble-dev/clay#section) +* [Heading](https://github.com/pebble-dev/clay#heading) +* [Text](https://github.com/pebble-dev/clay#text) +* [Input](https://github.com/pebble-dev/clay#input) +* [Toggle](https://github.com/pebble-dev/clay#toggle) +* [Select](https://github.com/pebble-dev/clay#select) +* [Color Picker](https://github.com/pebble-dev/clay#color-picker) +* [Radio Group](https://github.com/pebble-dev/clay#radio-group) +* [Checkbox Group](https://github.com/pebble-dev/clay#checkbox-group) +* [Generic Button](https://github.com/pebble-dev/clay#generic-button) +* [Range Slider](https://github.com/pebble-dev/clay#range-slider) +* [Submit Button](https://github.com/pebble-dev/clay#submit) In our example configuration page, we will add some introductory text, and group our fields into two sections. All configuration pages must have a submit button @@ -182,7 +182,7 @@ your `index.js` file. ```js // Import the Clay package -var Clay = require('pebble-clay'); +var Clay = require('@rebble/clay'); // Load our Clay configuration file var clayConfig = require('./config'); // Initialize Clay @@ -299,14 +299,14 @@ configuration pages, you're mistaken. Developers can extend the functionality of Clay in a number of ways: * Define a -[custom function](https://github.com/pebble/clay#custom-function) to enhance the +[custom function](https://github.com/pebble-dev/clay#custom-function) to enhance the interactivity of the page. -* [Override events](https://github.com/pebble/clay#handling-the-showconfiguration-and-webviewclosed-events-manually) +* [Override events](https://github.com/pebble-dev/clay#handling-the-showconfiguration-and-webviewclosed-events-manually) and transform the format of the data before it's transferred to the watch. * Create and share your own -[custom components](https://github.com/pebble/clay#custom-components). +[custom components](https://github.com/pebble-dev/clay#custom-components). -Why not find out more about [Clay for Pebble](https://github.com/pebble/clay) +Why not find out more about [Clay for Pebble](https://github.com/pebble-dev/clay) and perhaps even -[contribute](https://github.com/pebble/clay/blob/master/CONTRIBUTING.md) to the +[contribute](https://github.com/pebble-dev/clay/blob/master/CONTRIBUTING.md) to the project, it's open source!