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 01c71fa
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CLAUDE.md
+44-9Lines changed: 44 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,16 +4,51 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
4
4
5
5
## What this repo is
6
6
7
-
The **Flopsstuff**GitHub organization profile. It has no build, no tests, and no application code — just static assets that GitHub renders on the org landing page.
7
+
This is the **Flopsstuff** organization `.github` repo (`github.com/Flopsstuff/.github`). It holds two independent things:
8
8
9
-
-`profile/README.md` — the org landing page. A curated, grouped table of the org's public projects (AI & developer tooling, Polish e-Invoicing/KSeF, hardware, and forks/contributions). Each row has a one-line description and **Repo** / optional **Web** links.
10
-
-`profile/logo.svg` — the org logo: a hand-built 7-segment LED display spelling the "FS" monogram in red (`#ff2d2d` on lit segments, `#3a0c0c` on dark ones), on a dark rounded rect. Segments are individual `<polygon>` elements tagged with `class="seg seg-<a-g> on|off"` and `data-seg`, lit/unlit via fill + a `glow` Gaussian-blur filter.
11
-
-`profile/logo.png` — a raster export of the SVG, referenced nowhere; keep it in sync when the SVG changes.
9
+
1.**The org profile** (`profile/`) — static assets GitHub renders on the org landing page. No build.
10
+
2.**The landing site** (repo root) — a static site deployed to Cloudflare Workers at **https://fs.aignite.pl**, ported from the sibling `aignite` project's stack.
12
11
13
-
The README's first line embeds the logo with `<img src="logo.svg" width="80">`.
12
+
These are unrelated to each other; a change to one rarely touches the other.
14
13
15
-
## Working notes
14
+
## Org profile (`profile/`)
16
15
17
-
-**Editing the project list:** keep the grouped-table structure and the `[Repo](...) · [Web](...)` link pattern. Web links point to a hosted version/package/upstream home; omit when none exists.
18
-
-**Editing the logo:** the SVG is hand-crafted (see commit history — multiple deliberate design iterations). The two digit groups are positioned by `transform="translate(...)"`; each digit is the same 7 polygon definitions with different `on`/`off` states and fills. Toggling a segment means flipping both its fill color and the `on`/`off` class. There is no generator script — edit the SVG directly, then re-export `logo.png` to match.
19
-
-**Validation:** no automated checks exist. Verify changes by previewing the rendered Markdown and opening the SVG in a browser.
16
+
-`profile/README.md` — the org landing page on GitHub. A curated, grouped table of public projects (AI & developer tooling, Polish e-Invoicing/KSeF, hardware, and forks/contributions). Each row has a one-line description and **Repo** / optional **Web** links. First line embeds the logo via `<img src="logo.svg" width="80">`.
17
+
-`profile/logo.svg` — hand-built 7-segment LED display spelling the "FS" monogram in red (`#ff2d2d` lit, `#3a0c0c` dark) on a dark rounded rect. Segments are individual `<polygon>`s tagged `class="seg seg-<a-g> on|off"` + `data-seg`; the two digit groups are positioned with `transform="translate(...)"`. Toggling a segment = flip both its fill and the `on`/`off` class. No generator script — edit the SVG directly.
18
+
-`profile/logo.png` — raster export of the SVG; keep in sync when the SVG changes.
19
+
20
+
## Landing site (repo root)
21
+
22
+
Static site, no framework — just `static/index.html` + `static/favicon.svg`, served by Cloudflare Workers' static-assets handler.
23
+
24
+
-`static/` — what gets deployed (`wrangler.json` → `assets.directory`). Currently a placeholder `<h1>Flopsstuff</h1>`.
25
+
-`docs/flopsstuff.md` — content source for the landing copy (mirrors `aignite`'s `Docs/aignite.md`); placeholder for now. Build the real page in `static/` from this.
26
+
-`README.md` (root) — a generic Cloudflare "Next.js Framework Starter" template readme carried over verbatim from `aignite`. **It is inaccurate** (this repo has no Next.js, just static files) — treat the section below as the source of truth, not that README.
27
+
28
+
### Tooling & commands
29
+
30
+
- Package manager: **Yarn 4.6.0** via Corepack (`corepack enable`), pinned by `.yarnrc.yml` (`yarnPath: .yarn/releases/yarn-4.6.0.cjs`). That release binary and `yarn.lock` are committed on purpose — CI breaks without them.
31
+
-`yarn install --immutable` — install (`wrangler` is the only dep).
32
+
-`yarn preview` — `wrangler dev`, local server.
33
+
-`yarn deploy` — `wrangler deploy`. The script sources `.env` first (`set -a; . ./.env`), so local deploys pick up credentials from there automatically.
34
+
35
+
### Deploy & domain
36
+
37
+
-`wrangler.json`: worker name `flopsstuff`, `assets.directory: ./static`, SPA not-found handling, and a route `fs.aignite.pl` with `custom_domain: true`.
38
+
-`fs.aignite.pl` is a **subdomain** of the existing `aignite.pl` zone (same Cloudflare account) — not a separately registered domain. `custom_domain: true` makes wrangler create the DNS record + TLS cert on first deploy.
39
+
- Cloudflare account: `serg.flop@gmail.com`, account ID `42548ca95c85a68b4ce20ad79b805334`.
40
+
41
+
### CI
42
+
43
+
-`.github/workflows/deploy.yml` deploys on push to `main` (and `workflow_dispatch`): Node 22 → Corepack → `yarn install --immutable` → `cloudflare/wrangler-action@v3` with `command: deploy`.
44
+
- CI auth uses two repo secrets: `CLOUDFLARE_API_TOKEN` and `CLOUDFLARE_ACCOUNT_ID`. Both are already set.
45
+
- The API token needs: **Account › Workers Scripts: Edit**, **Account › Account Settings: Read**, **Zone › Workers Routes: Edit**, and **Zone › DNS: Edit** on `aignite.pl` (DNS Edit is required whenever the custom domain is (re)created).
46
+
47
+
### Credentials
48
+
49
+
- Local: `.env` (gitignored) holds `CLOUDFLARE_API_TOKEN` + `CLOUDFLARE_ACCOUNT_ID`. `.env.example` is the committed template documenting both.
50
+
- CI: the same two vars live as GitHub Actions secrets. Actions does not read `.env`, so the two stores are maintained separately (e.g. `gh secret set --env-file .env`).
51
+
52
+
## Validation
53
+
54
+
No automated tests. Verify: `yarn deploy --dry-run` for config/asset sanity; `curl -I https://fs.aignite.pl` after a deploy; preview the profile README's Markdown and open the SVG in a browser.
0 commit comments