You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ce752e5
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ Thanks for helping build the open home for Workday Build examples. Adding an exa
35
35
36
36
Each creates `examples/your-example-name/` with a prefilled `example.json` and README skeleton. (You can also copy `examples/_template/` by hand.)
37
37
38
-
3.**Drop your artifact in.** Whatever it is: Extend app source (exported with Local Disk Sync, the WDCLI, or the ZIP download), orchestration definitions, an agent skill as markdown, diagrams. The folder must be self-contained.
38
+
3.**Drop your artifact in.** Whatever it is: Extend app source (exported with Local Disk Sync, the WDCLI, or the ZIP download), orchestration definitions, an agent skill as markdown, diagrams. The folder must be self-contained. Once merged, the gallery serves the folder as a zip download automatically; nothing extra to do.
39
39
4.**Fill in the two files.**`example.json` needs a title, a description, and a type; everything else is optional. The README needs four short sections: What it is, What's inside, How to use it, and Before you deploy (everything a reader must change for their own tenant, such as app reference ids, base URLs, WIDs, or dates).
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,8 @@ hub.config.json Repo URLs and the approved type, component, and product
55
55
56
56
## Use an example
57
57
58
+
Every example can be downloaded on its own from the [gallery](https://workday.github.io/WorkdayDeveloperProgram/): each card and example page has a **Download zip** button, so there is no need to clone the whole repository. The zip includes a `SOURCE.md` that records the commit it was built from and how to send changes back. To work with git instead:
The optional gallery for the Workday Examples Hub, built with Astro and Tailwind and deployed to GitHub Pages by `.github/workflows/deploy-gallery.yml`.
4
+
5
+
```bash
6
+
npm install
7
+
npm run dev # local preview
8
+
npm run build # static output in dist/
9
+
```
10
+
11
+
## How it reads the examples
12
+
13
+
`src/lib/examples.js` globs every `catalog/*/example.json` and `examples/*/example.json` at build time. There is no manifest to regenerate; a folder shows up as soon as it exists.
14
+
15
+
## Per-example downloads
16
+
17
+
`scripts/build-zips.mjs` runs before `dev` and `build` (the `predev` and `prebuild` scripts) and zips every example folder into `public/downloads/<section>/<id>.zip`. Astro copies `public/` into `dist/`, so the same URLs work locally and on Pages.
18
+
19
+
- Each zip wraps the folder in `<id>/` with `appManifest.json` at its root, includes `README.md`, and leaves out `example.json` (hub metadata only).
20
+
- Each zip also gets a generated `SOURCE.md` with the repository, folder, commit, a sparse checkout command, and how to open a pull request. The text lives in `src/lib/gitTrace.js`, shared with the example page.
21
+
-`public/downloads/` is generated output and is gitignored. Do not commit it.
0 commit comments