Skip to content

Commit 9360517

Browse files
Move all examples to top-level examples directory and refresh them (#6592)
This is so we can link to an examples folder from the website
1 parent 5c795cf commit 9360517

File tree

171 files changed

+153
-223
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+153
-223
lines changed

.github/workflows/artifacts-build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ jobs:
188188
cd ffi/npm
189189
make lib/index.mjs
190190
npm install typedoc@0.26.5 --exact
191-
node_modules/typedoc/bin/typedoc lib/index.d.ts --out docs --readme ../../tutorials/using-from-js.md --basePath lib
191+
node_modules/typedoc/bin/typedoc lib/index.d.ts --out docs --basePath lib
192192
cd ../..
193193
194194
- uses: actions/upload-artifact@v4
@@ -286,19 +286,19 @@ jobs:
286286
- name: Init packages
287287
run: |
288288
npm -C ffi/npm ci
289-
npm -C tutorials/web-demo ci
289+
npm -C tools/web-demo ci
290290
291291
- name: Run Webpack
292-
run: npm -C tutorials/web-demo run build
292+
run: npm -C tools/web-demo run build
293293

294294
- uses: actions/upload-artifact@v4
295295
with:
296296
name: wasmdemo
297-
path: tutorials/web-demo/public
297+
path: tools/web-demo/public
298298

299299
- name: Upload wasm-demo bundle to Google Cloud Storage
300300
run: |
301-
gsutil -m cp -r tutorials/web-demo/public/* gs://${{ env.GCP_MAIN_BUCKET_ID }}/gha/wasm-demo
301+
gsutil -m cp -r tools/web-demo/public/* gs://${{ env.GCP_MAIN_BUCKET_ID }}/gha/wasm-demo
302302
303303
- name: "⭐⭐⭐ Links to Uploaded Artifacts ⭐⭐⭐"
304304
run: |

.gn

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
buildconfig = "//tutorials/gn/BUILDCONFIG.gn"
2-
root = "//tutorials/gn:default"
1+
buildconfig = "//examples/gn/BUILDCONFIG.gn"
2+
root = "//examples/gn:default"

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ members = [
9797
"tools/md-tests",
9898
"tools/noalloctest",
9999
]
100-
# Note: Workspaces in subdirectories, such as tutorials/crates, are
100+
# Note: Workspaces in subdirectories, such as components/collator/fuzz, are
101101
# implicitly excluded from the main workspace.
102102
exclude = [
103-
# Tutorials are tested outside the workspace to simulate external users
104-
"tutorials",
103+
# Examples are tested outside the workspace to simulate external users
104+
"examples",
105105
# Don't publish the graveyard
106106
"tools/graveyard"
107107
]

Makefile.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
44

55
extend = [
6-
{ path = "./tutorials/gn/gn.toml"}, #
6+
{ path = "./examples/gn/gn.toml"}, #
77
{ path = "./tools/make/data.toml"}, #
88
{ path = "./tools/make/valgrind.toml"}, #
99
{ path = "./tools/make/tidy.toml"}, #

tutorials/.cargo/config.toml renamed to examples/.cargo/config.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# called LICENSE at the top level of the ICU4X source tree
33
# (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
44

5-
# All code in tutorials is built outside the workspace, as a client would.
5+
# All code in examples is built outside the workspace, as a client would.
66
# In order to test with repo code, this config.toml is used automatically
7-
# by cargo for any invocation inside tutorials/.
7+
# by cargo for any invocation inside examples/.
88

99
[patch.crates-io]
1010
# KEEP IN SYNC WITH TOP-LEVEL Cargo.toml

tutorials/c-tiny/README.md renamed to examples/c-tiny/README.md

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)