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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ Area(80, 40, 160, 160)

A cyan circle appears on the navy display, and the last line reads back a pixel on its edge: `0x7ff` is `pal.CYAN`.

[Docs](https://github.com/PyDevices/workbench/blob/main/docs/index.md) · [Examples](https://pydevices.github.io/pydevices-examples/gallery/) · [Roadmap](ROADMAP.md)
[Docs](https://github.com/PyDevices/workbench/blob/main/docs/index.md) · [Examples](https://pydevices.github.io/gallery/gallery/) · [Roadmap](ROADMAP.md)

Made by [PyDevices](https://pydevices.com).
2 changes: 1 addition & 1 deletion docs/get-started/first-program.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ Edit the file and press Run again. To put the same program on a real board, conn

The simulator also has a resolution and shape picker, including round watch faces, and you can resize the display by dragging it.

More programs are in the [gallery](https://pydevices.github.io/pydevices-examples/gallery/); [open one in Workbench](../guides/open-a-gallery-example.md) by name.
More programs are in the [gallery](https://pydevices.github.io/gallery/gallery/); [open one in Workbench](../guides/open-a-gallery-example.md) by name.
2 changes: 1 addition & 1 deletion docs/guides/open-a-gallery-example.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Open a gallery example

Any card of the [PyDevices gallery](https://pydevices.github.io/pydevices-examples/gallery/) opens in Workbench by name:
Any card of the [PyDevices gallery](https://pydevices.github.io/gallery/gallery/) opens in Workbench by name:

```
https://pydevices.github.io/workbench/?vm=1&example=paint
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ Workbench is a MicroPython IDE for the browser, with a built-in device simulator

- [Changelog](changelog.md)

Also: [Examples gallery](https://pydevices.github.io/pydevices-examples/gallery/), [Roadmap](../ROADMAP.md), [Contributing](../CONTRIBUTING.md).
Also: [Examples gallery](https://pydevices.github.io/gallery/gallery/), [Roadmap](../ROADMAP.md), [Contributing](../CONTRIBUTING.md).
2 changes: 1 addition & 1 deletion src/pydevices/gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

import { fetchJSON, fetchText, splitPath } from '../utils.js'

export const GALLERY_URL = 'https://pydevices.github.io/pydevices-examples/gallery/'
export const GALLERY_URL = 'https://pydevices.github.io/gallery/gallery/'

/* How many lines the gallery scans for its `# key: a, b` headers */
const HEADER_LINES = 10
Expand Down
4 changes: 2 additions & 2 deletions test/browser/fixtures/gallery/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Gallery fixtures

A stand-in for <https://pydevices.github.io/pydevices-examples/gallery/>, laid
A stand-in for <https://pydevices.github.io/gallery/gallery/>, laid
out the way the site is: `python-files.json` lists every example and helper
file, examples live under `lib/examples/` and helpers under `lib/utils/`.
`gallery-open.spec.js` serves it at the gallery's own address.

The files are copies from pydevices-examples (commit `0ef28ef6`). They are
The files are copies from pydevices-examples, the repo gallery came from (commit `0ef28ef6`). They are
frozen test data: nothing keeps them in step with the repository, and nothing
needs to, since what is under test is how Workbench reads a gallery, not the
examples themselves.
2 changes: 1 addition & 1 deletion test/browser/gallery-open.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import path from 'node:path'
import { fileURLToPath } from 'node:url'
import { terminalText, focusTerminal, distinctCanvasColors } from './helpers.js'

const GALLERY = 'https://pydevices.github.io/pydevices-examples/gallery/'
const GALLERY = 'https://pydevices.github.io/gallery/gallery/'
const FIXTURES = path.join(path.dirname(fileURLToPath(import.meta.url)), 'fixtures', 'gallery')

/* The app's service worker fetches on the page's behalf, and a request it
Expand Down
Loading