Skip to content

Commit f1c5bec

Browse files
committed
docs: saved StackBlitz projects stay the homepage links, refreshed from published branches
1 parent 1d93ca9 commit f1c5bec

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

‎README.md‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,20 @@ Every push to `main` runs [`publish-examples.yml`](.github/workflows/publish-exa
1818

1919
Pull requests run steps 1 and 2 without publishing.
2020

21-
StackBlitz opens those branches straight from GitHub, so links always show what is on `main`:
21+
> **Warning:** Do not edit the `{example}-{flavor}` branches; they are overwritten on every publish.
22+
23+
### Saved projects linked from nativescript.org
24+
25+
nativescript.org links to saved StackBlitz projects owned by `nativescript-oss` (`stackblitz.com/edit/nativescript-battery-example-*`), because their view and fork counts are shown to visitors. The published branches are the source for those projects: after a change lands on `main`, sign in as `nativescript-oss`, open the saved project, replace its files with the contents of the matching `{example}-{flavor}` branch, and save.
26+
27+
### Branch links (always current, no view counts)
28+
29+
StackBlitz can also open each branch straight from GitHub. Use these to check what is on `main`, or as a fallback link if a saved project breaks:
2230

2331
```
2432
https://stackblitz.com/github/NativeScript/stackblitz-examples/tree/{example}-{flavor}?file={path}
2533
```
2634

27-
> **Warning:** Do not edit the `{example}-{flavor}` branches; they are overwritten on every publish.
28-
29-
### Battery example links
30-
3135
| Flavor | Link |
3236
| ---------- | ---- |
3337
| TypeScript | https://stackblitz.com/github/NativeScript/stackblitz-examples/tree/battery-typescript?file=app%2Fmain-page.xml |

0 commit comments

Comments
 (0)