Skip to content

Commit 09ca355

Browse files
committed
add initial
add parsing add witnesses correct witness name add jets page add more tabs add example args add charts add bars and more scripts ui tweaks add links and comments add example args values add compile errors and filters
0 parents  commit 09ca355

119 files changed

Lines changed: 79536 additions & 0 deletions

File tree

Some content is hidden

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

.github/workflows/deploy.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build and Deploy
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version: 20
26+
cache: npm
27+
28+
- run: npm ci
29+
30+
- run: npm run build
31+
32+
- uses: actions/upload-pages-artifact@v3
33+
with:
34+
path: dist
35+
36+
deploy:
37+
needs: build
38+
runs-on: ubuntu-latest
39+
environment:
40+
name: github-pages
41+
url: ${{ steps.deployment.outputs.page_url }}
42+
steps:
43+
- uses: actions/configure-pages@v4
44+
45+
- id: deployment
46+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
dist/
3+
cli/target/

README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Every Simplicity
2+
3+
A searchable catalog of every `.simplicityhl` file on the internet.
4+
5+
## Adding a program
6+
7+
Requires: Docker (running), Rust/Cargo.
8+
9+
```sh
10+
# build the CLI once
11+
cargo build --release --manifest-path cli/Cargo.toml
12+
13+
# step 1: add a file (no Docker needed — just records the URL and tags)
14+
./cli/target/release/simplicity-catalog add \
15+
https://github.com/BlockstreamResearch/SimplicityHL/blob/master/examples/checkSigHashAll.simf \
16+
--tag examples --tag bitcoin
17+
18+
# step 2: compile — runs Docker, clones the repo, runs simc, updates the TOML
19+
./cli/target/release/simplicity-catalog compile blockstreamresearch-simplicityhl-checksigHashAll
20+
```
21+
22+
## Recompiling
23+
24+
```sh
25+
# one entry by slug
26+
simplicity-catalog compile <slug>
27+
28+
# all entries with a tag
29+
simplicity-catalog compile --tag bitcoin
30+
31+
# everything
32+
simplicity-catalog compile --all
33+
```
34+
35+
Files from the same repo are cloned once per `compile` run. On first compile the CLI builds a Docker image (`simplicity-catalog-simc`) with asdf + simc installed. Commit and push after compiling — GitHub Actions rebuilds and deploys automatically.
36+
37+
## Building locally
38+
39+
```sh
40+
npm install
41+
npm run build
42+
# output is in dist/index.html
43+
```
44+
45+
## How it works
46+
47+
- `data/programs/*.toml` — one file per catalogued program
48+
- `site/build.js` — reads all TOML files, generates `dist/index.html`
49+
- `cli/` — Rust CLI (`cargo build --release`)
50+
- `.github/workflows/deploy.yml` — builds and deploys to GitHub Pages on every push to `main`

0 commit comments

Comments
 (0)