Skip to content

Add examples.json generator for the examples catalog#295

Merged
sanketsudake merged 2 commits into
mainfrom
examples-catalog-generator
Jun 9, 2026
Merged

Add examples.json generator for the examples catalog#295
sanketsudake merged 2 commits into
mainfrom
examples-catalog-generator

Conversation

@sanketsudake

@sanketsudake sanketsudake commented Jun 8, 2026

Copy link
Copy Markdown
Member

What

  • Add tools/examples.py — generates static/data/examples.json (consumed by content/en/examples/_index.html) from the per-language examples.json files in the fission/examples repo. Groups by language, applies catalog logos + group tags, normalizes per-example language/tags. Mirrors the existing tools/environments.py workflow.
  • Add Rust, Python (FastAPI), and .NET 8 groups to the generator's GROUPS config.
  • Update tools/README.md — documents the regeneration workflow.
  • Regenerate static/data/examples.json — now 76 examples across 12 groups, including the new runtimes and the previously-missing message-queue-trigger / spec-example entries.

Why

The examples catalog UI used to live in a separate examples-ui React app inside the examples repo (removed in fission/examples#93). This makes fission.io the single renderer, generating its data from the examples repo's per-language source files — no more duplicated/diverging catalog data.

Usage

# from a fission/examples checkout next to this repo
python3 tools/examples.py /path/to/fission-examples   # defaults to ../../examples

Companion PRs

🤖 Generated with Claude Code

tools/examples.py reads the per-language examples.json files from the
fission/examples repo, groups them by language with logos and group
tags, and regenerates static/data/examples.json (consumed by
content/en/examples/_index.html). Mirrors the existing environments.py
workflow; usage documented in tools/README.md.

Regenerating from the current examples repo also pulls in the
message-queue-trigger and spec-example entries that were previously
missing from the catalog.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@netlify

netlify Bot commented Jun 8, 2026

Copy link
Copy Markdown

Deploy Preview for fission-website ready!

Name Link
🔨 Latest commit 527dc1c
🔍 Latest deploy log https://app.netlify.com/projects/fission-website/deploys/6a278c54211a6c0007168723
😎 Deploy Preview https://deploy-preview-295--fission-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Extend tools/examples.py GROUPS with the new runtime example dirs added
to fission/examples, and regenerate static/data/examples.json
(76 examples across 12 groups).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant