Jobley / website · jobley.ai / tools / build-site.py
| 1 | #!/usr/bin/env python3 |
| 2 | """Generate the Jobley volunteer website and legacy verification page.""" |
| 3 | import json, os, re, runpy, subprocess, sys |
| 4 | from html import escape |
| 5 | |
| 6 | ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |
| 7 | VOLUNTEER_GROUPS = runpy.run_path(os.path.join(ROOT, "tools", "atom-volunteer-roles.py"))["GROUPS"] |
| 8 | NEW_RESEARCH = {'Baby products': ('atom-baby-products', 'Research and education only. No product is available and no children participate in prototype tests.'), 'Sell your home by owner': ('atom-sell-your-home-by-owner', 'Create free guides for owners who choose to sell without a listing agent. No brokerage, listings, personalized advice, transactions or lender referrals.'), 'Online banking research': ('atom-online-banking-research', 'Unpaid, pre-charter research using fictional data only. No bank is open. No customer accounts, money movement, loans, or applications.'), 'Litter, recycling and clean waterways': ('atom-clean-waterways', 'Volunteer with public-source research or permitted dry-land cleanup. No entering water, handling hazardous items or installing equipment.'), 'Mosquito control research': ('atom-mosquito-control-research', 'Research-only. No pesticide formulation, spraying, biological releases, animal testing or extermination service.')} |
| 9 | PROJECT_WORK = runpy.run_path(os.path.join(ROOT, "tools", "project-roles.py"))["ROLES"] |
| 10 | PROJECT_ROLE_TRACKS = {title: (group, route, scope, curriculum, motif) |
| 11 | for group, title, route, scope, _, _, curriculum, motif in PROJECT_WORK} |
| 12 | # Extend an existing workstream without replacing its group-wide routes or scope. |
| 13 | PROJECT_GROUPS = {} |
| 14 | for group, title, route, scope, description, first_task, *_ in PROJECT_WORK: |
| 15 | existing = next((roles for name, roles in VOLUNTEER_GROUPS if name == group), None) |
| 16 | if existing is None: |
| 17 | existing = [] |
| 18 | PROJECT_GROUPS[group] = (route, scope) |
| 19 | VOLUNTEER_GROUPS.append((group, existing)) |
| 20 | existing.append((title, description, first_task)) |
| 21 | VOLUNTEER_COUNT = sum(len(roles) for _, roles in VOLUNTEER_GROUPS) |
| 22 | OPEN_DESIGN_ROLES = { |
| 23 | "Cat tree and pet furniture designer": ("cat-tree", "cat-tree", "pet-furniture"), |
| 24 | "Scratching post product designer": ("scratching-post", "scratching-post", "pet-furniture"), |
| 25 | "Leash and collar hardware sourcing volunteer": ("dog-walking-gear", "dog-walking-gear", "pet-gear"), |
| 26 | "Pet-friendly textile materials developer": ("pet-friendly-fabrics", "pet-friendly-fabrics", "pet-textiles"), |
| 27 | "Local vehicle distribution and service planner": ("global-distribution", "global-product-distribution", "local-distribution"), |
| 28 | "Local delivery network and driver operations planner": ("global-distribution", "global-product-distribution", "delivery-network"), |
| 29 | "Shipping platform software and reliability volunteer": ("global-distribution", "global-product-distribution", "shipping-software"), |
| 30 | "Cross-border freight, customs and sourcing specialist": ("global-distribution", "global-product-distribution", "freight-documentation"), |
| 31 | } |
| 32 | |
| 33 | # ---- The product, in one place ------------------------------------------------------------- |
| 34 | NAME = "Jobley" # pending the owner's pick; see the PRD |
| 35 | DOMAIN = "jobley.ai" |
| 36 | SLUG = "jobley" # Pages project, analytics data-site, bundle id suffix, MCP server name |
| 37 | SITE = f"https://{DOMAIN}" |
| 38 | GSC = "ALCOIlR4g2OrItSH5QfWIxAIl7dadEQ8OxE6f5WoFa0" # google-site-verification token for the home page, once Search Console has one |
| 39 | BING = "E2001B47E91F72A19BB1E8E642B26928" # account-wide msvalidate.01 token |
| 40 | V = "20261127" # cache-buster for the icon, favicon and social card |
| 41 | VOLUNTEER_CSS_V = "20261129d" # bump whenever assets/volunteer.css changes; only /volunteer/ and /careers/ load it |
| 42 | VOLUNTEER_CSS = f"volunteer.css?v={VOLUNTEER_CSS_V}" |
| 43 | VOLUNTEER_MAIL = "mailto:hello@jobley.ai?subject=Volunteer" |
| 44 | # The promise every page that takes a post makes. The API keeps it true: only a person's token can publish. |
| 45 | GUARANTEE = "Only Jobley posts here. Volunteer work is open to everyone. Just email us." |
| 46 | JOB_DAYS = 45 # keep in step with LIMITS.jobDaysLive in src/config.js |
| 47 | READ = "November 27, 2026" # the day the competitor pages on /compare/ were read |
| 48 | # --------------------------------------------------------------------------------------------- |
| 49 | |
| 50 | |
| 51 | if "--release" in sys.argv: |
| 52 | raise SystemExit("Jobley is website-only; native release publishing is disabled.") |
| 53 | |
| 54 | COMMUNITY_ONLY = sys.argv[1:] == ["--community-pages"] |
| 55 | LEARNING = runpy.run_path(os.path.join(ROOT, "tools", "learning-paths.py")) |
| 56 | ART = runpy.run_path(os.path.join(ROOT, "tools", "role-illustrations.py")) |
| 57 | |
| 58 | |
| 59 | LINE = "Find open volunteer work. Pick something you want to help with and email us to get started. No forms or permission needed." |
| 60 | DESC = f"{NAME} is a board for volunteer work. Open to people anywhere in the world. Every role is unpaid and optional." |
| 61 | TITLE = f"{NAME} · Volunteer work" |
| 62 | |
| 63 | ORG = {"@type": "Organization", "@id": f"{SITE}/#org", "name": NAME, "url": f"{SITE}/", |
| 64 | "logo": f"{SITE}/assets/icon.png"} |
| 65 | APP = {"@type": "WebApplication", "@id": f"{SITE}/#app", "name": NAME, "url": f"{SITE}/", "description": DESC, |
| 66 | "applicationCategory": "BusinessApplication", "applicationSubCategory": "Volunteer board", |
| 67 | "browserRequirements": "A web browser.", "isAccessibleForFree": True, |
| 68 | "image": f"{SITE}/assets/icon.png?v={V}", |
| 69 | "featureList": ["Volunteer opportunities open to people anywhere in the world", |
| 70 | "No volunteer forms or résumé collection"], |
| 71 | "author": {"@id": f"{SITE}/#org"}, "publisher": {"@id": f"{SITE}/#org"}} |
| 72 | |
| 73 | ICON_ARROW = '<svg width="14" height="14" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 8h10M9 4l4 4-4 4"/></svg>' |
| 74 | ICON_SEARCH = '<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg>' |
| 75 | ICON_PEN = '<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 20h9"/><path d="M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z"/></svg>' |
| 76 | ICON_HAND = '<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M19 8v6"/><path d="M22 11h-6"/></svg>' |
| 77 | ICON_BELL = '<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9"/><path d="M10.3 21a1.94 1.94 0 0 0 3.4 0"/></svg>' |
| 78 | ICON_PLUG = '<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 22v-5"/><path d="M15 8V2"/><path d="M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z"/><path d="M9 8V2"/></svg>' |
| 79 | ICON_BOOK = '<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 7v14"/><path d="M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z"/></svg>' |
| 80 | ICON_HOME = '<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"/><path d="M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/></svg>' |
| 81 | ICON_HELP = '<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><path d="M12 17h.01"/></svg>' |
| 82 | ICON_SHIELD = '<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/><path d="m9 12 2 2 4-4"/></svg>' |
| 83 | |
| 84 | NAV = [("/volunteer/", "Volunteer work", ""), ("/careers/", "Careers", "nav-hide-sm")] |
| 85 | FOOT_NAV = [("/volunteer/", "Volunteer work"), ("/research/", "Research"), ("/careers/", "Careers"), ("/moderators/", "Moderate"), |
| 86 | ("/help/", "Help"), ("/privacy/", "Privacy"), ("/licenses/", "License")] |
| 87 | PRINT_PROJECT = "/projects/print-and-fulfillment/" |
| 88 | PET_FOOD_PROJECT = "/projects/pet-food-and-treats/" |
| 89 | PAGES = ["/", "/volunteer/", "/careers/", PRINT_PROJECT, PET_FOOD_PROJECT, "/moderators/", "/help/", "/compare/", "/privacy/", "/licenses/", "/research/"] |
| 90 | |
| 91 | |
| 92 | def ld(graph): |
| 93 | return '<script type="application/ld+json">' + json.dumps({"@context": "https://schema.org", "@graph": graph}, ensure_ascii=False, separators=(",", ":")).replace("</", "<\\/") + "</script>" |
| 94 | |
| 95 | |
| 96 | def head(path, title, desc, graph, noindex=False, home=False, scripts=(), raw_meta=None, styles=()): |
| 97 | url = SITE + path |
| 98 | meta = [] |
| 99 | if raw_meta is not None: |
| 100 | meta += raw_meta |
| 101 | elif noindex: |
| 102 | meta.append(' <meta name="robots" content="noindex">') |
| 103 | else: |
| 104 | meta.append(f' <meta name="description" content="{desc}">') |
| 105 | meta += [' <meta name="theme-color" content="#faf6ee" media="(prefers-color-scheme: light)">', |
| 106 | ' <meta name="theme-color" content="#0d1511" media="(prefers-color-scheme: dark)">'] |
| 107 | if not noindex and raw_meta is None: |
| 108 | meta += [f' <link rel="canonical" href="{url}">'] |
| 109 | if not noindex: |
| 110 | meta += [' <meta property="og:type" content="website">', f' <meta property="og:site_name" content="{NAME}">', |
| 111 | ' <meta property="og:locale" content="en_US">', |
| 112 | f' <meta property="og:title" content="{title}">', f' <meta property="og:description" content="{desc}">', |
| 113 | f' <meta property="og:url" content="{url if raw_meta is None else "{{CANONICAL}}"}">', f' <meta property="og:image" content="{SITE}/social-card.png?v={V}">', |
| 114 | ' <meta property="og:image:type" content="image/png">', |
| 115 | ' <meta property="og:image:width" content="1200">', ' <meta property="og:image:height" content="630">', |
| 116 | f' <meta property="og:image:alt" content="{NAME}. Open volunteer work.">', |
| 117 | ' <meta name="twitter:card" content="summary_large_image">', |
| 118 | f' <meta name="twitter:title" content="{title}">', f' <meta name="twitter:description" content="{desc}">', |
| 119 | f' <meta name="twitter:image" content="{SITE}/social-card.png?v={V}">', |
| 120 | f' <meta name="author" content="{NAME}">'] |
| 121 | if home: |
| 122 | if GSC: |
| 123 | meta.append(f' <meta name="google-site-verification" content="{GSC}">') |
| 124 | meta.append(f' <meta name="msvalidate.01" content="{BING}">') |
| 125 | meta += [f' <link rel="icon" href="/favicon.png?v={V}" type="image/png">', f' <link rel="apple-touch-icon" href="/assets/apple-touch-icon.png?v={V}">', |
| 126 | ' <link rel="stylesheet" href="/assets/site.css?v=20261129-touch">', |
| 127 | *[f' <link rel="stylesheet" href="/assets/{s}">' for s in styles], |
| 128 | ] |
| 129 | meta += [f' <script src="/assets/{s}" defer></script>' for s in scripts] |
| 130 | if home: |
| 131 | meta += [' <link rel="stylesheet" href="/assets/visitor-odometer.v1.css">', |
| 132 | ' <script defer src="/assets/visitor-odometer.v1.js"></script>'] |
| 133 | meta += [' <script src="/assets/share.js" defer></script>' if home else None, |
| 134 | f' <title>{title}</title>', (' ' + (graph if isinstance(graph, str) else ld(graph))) if graph else None] |
| 135 | return '<!doctype html>\n<html lang="en">\n<head>\n <meta charset="utf-8">\n <meta name="viewport" content="width=device-width, initial-scale=1">\n' + "\n".join(m for m in meta if m) + "\n <!-- no-orphans --><link rel=\"stylesheet\" href=\"/no-orphans.css\"><script src=\"/no-orphans.js\" defer></script><!-- /no-orphans -->\n</head>\n" |
| 136 | |
| 137 | |
| 138 | def header(current=None, body_class=None): |
| 139 | current_attr = ' aria-current="page"' |
| 140 | links = "\n".join(f' <a class="{c}" href="{h}"{current_attr if h == current else ""}>{t}</a>' for h, t, c in NAV) |
| 141 | cta = f'<a class="nav-cta" href="/volunteer/"{current_attr if current == "/volunteer/" else ""}>Find volunteer work</a>' |
| 142 | body = f'<body class="{body_class}">' if body_class else "<body>" |
| 143 | return f'''{body} |
| 144 | <a class="skip" href="#main">Skip to content</a> |
| 145 | <header class="site-header"> |
| 146 | <div class="shell nav"> |
| 147 | <a class="wordmark" href="/" aria-label="{NAME} home"><img src="/assets/icon.png?v={V}" alt="" width="30" height="30">{NAME}</a> |
| 148 | <nav aria-label="Main"> |
| 149 | {links} |
| 150 | {cta} |
| 151 | </nav> |
| 152 | </div> |
| 153 | </header> |
| 154 | ''' |
| 155 | |
| 156 | |
| 157 | def footer(): |
| 158 | nav = "".join(f'<a href="{h}">{t}</a>' for h, t in FOOT_NAV) |
| 159 | return f''' <footer> |
| 160 | <div class="shell footer"> |
| 161 | <nav aria-label="Footer">{nav}</nav> |
| 162 | </div> |
| 163 | <div class="shell footer-credit"> |
| 164 | <span>Jobley</span> |
| 165 | </div> |
| 166 | </footer> |
| 167 | <script src="/assets/pm-year.js" defer></script> |
| 168 | </body> |
| 169 | </html> |
| 170 | ''' |
| 171 | |
| 172 | |
| 173 | def crumbs(name, path): |
| 174 | return {"@type": "BreadcrumbList", "itemListElement": [{"@type": "ListItem", "position": 1, "name": NAME, "item": SITE + "/"}, |
| 175 | {"@type": "ListItem", "position": 2, "name": name, "item": SITE + path}]} |
| 176 | |
| 177 | |
| 178 | def webpage(path, name, desc): |
| 179 | return {"@type": "WebPage", "@id": f"{SITE}{path}#webpage", "url": SITE + path, "name": name, "description": desc, |
| 180 | "isPartOf": {"@id": f"{SITE}/#website"}, "inLanguage": "en-US", "publisher": {"@id": f"{SITE}/#org"}, |
| 181 | "about": {"@id": f"{SITE}/#app"}} |
| 182 | |
| 183 | |
| 184 | def write(rel_path, text): |
| 185 | p = os.path.join(ROOT, rel_path) |
| 186 | os.makedirs(os.path.dirname(p) or ROOT, exist_ok=True) |
| 187 | open(p, "w").write(text) |
| 188 | |
| 189 | |
| 190 | TOOLS = [("get_status", "Whether the app is signed in, who as (curator or moderator), and how many posts are waiting."), |
| 191 | ("list_jobs · get_job", "Legacy compatibility tools. Volunteer opportunities are on the web roster."), |
| 192 | ("list_review_queue", "Posts waiting for a person, oldest first, with what the poster wrote."), |
| 193 | ("get_review_item", "One waiting post in full, with its notes and history."), |
| 194 | ("get_house_rules", "Legacy moderation rules; they do not govern volunteering."), |
| 195 | ("tidy_job_post", "Fix the formatting of a waiting post: spacing, paragraphs, an obvious typo in the title. It cannot change publication status. Off until you allow changes."), |
| 196 | ("add_review_note", "Leave a note on a waiting post for the person reviewing it. Off until you allow changes.")] |
| 197 | |
| 198 | RULES = [("Jobley listings only.", "The board lists only roles Jobley posts."), |
| 199 | ("Open to everyone.", "Pick a role and email us to start. No forms or résumé."), |
| 200 | ("Clear scope.", "Each role describes the contribution and identifies planning work as such."), |
| 201 | ("Privacy and safety.", "Do not ask for money, sensitive personal information, or confidential work.")] |
| 202 | |
| 203 | |
| 204 | def closing(): |
| 205 | return f''' <section class="section" aria-labelledby="closing-title"> |
| 206 | <div class="shell"> |
| 207 | <h2 id="closing-title">Start working together.</h2> |
| 208 | <p class="lead">Browse here, pick a role, and email us. Say what you can help with and we’ll help you pick a first task.</p> |
| 209 | <div class="actions"> |
| 210 | <a class="button" href="{VOLUNTEER_MAIL}">Email us to volunteer {ICON_ARROW}</a> |
| 211 | <a class="button secondary" href="/volunteer/">Browse volunteer work</a> |
| 212 | </div> |
| 213 | </div> |
| 214 | </section> |
| 215 | ''' |
| 216 | |
| 217 | |
| 218 | BOARD_ID = "volunteer-board" # the roster wrapper on /volunteer/; the browse link scrolls here |
| 219 | START_IDS = {"getting-started", "getting-started-title", BOARD_ID} # volunteer_page() asserts no role or group slug takes one |
| 220 | |
| 221 | |
| 222 | def getting_started(on_board=False, indent=" "): |
| 223 | """Offer two starting points.""" |
| 224 | if on_board: |
| 225 | go = (f'<a class="button secondary" href="#{BOARD_ID}">Browse volunteer work' |
| 226 | ' <span aria-hidden="true">↓</span></a>') |
| 227 | else: |
| 228 | go = f'<a class="button secondary" href="/volunteer/">Browse volunteer work {ICON_ARROW}</a>' |
| 229 | lines = [ |
| 230 | '<section class="getting-started" id="getting-started" aria-labelledby="getting-started-title">', |
| 231 | ' <div class="gs-head">', |
| 232 | ' <h2 class="gs-title" id="getting-started-title">Getting started</h2>', |
| 233 | ' <p class="gs-kicker">No forms needed.</p>', |
| 234 | ' </div>', |
| 235 | ' <ul class="gs-steps" role="list">', |
| 236 | ' <li class="gs-step gs-step-primary">', |
| 237 | ' <h3><span class="gs-label">Ready?</span> Email us</h3>', |
| 238 | ' <p>Tell us what you’d like to help with and we’ll get you started.</p>', |
| 239 | f' <a class="button download-button" href="{VOLUNTEER_MAIL}">Email us to volunteer {ICON_ARROW}</a>', |
| 240 | ' </li>', |
| 241 | ' <li class="gs-step">', |
| 242 | ' <h3><span class="gs-label">Just looking?</span> Find your first role</h3>', |
| 243 | ' <p>Pick a role and select <strong>Volunteer</strong>. You can browse without an account.</p>', |
| 244 | f' {go}', |
| 245 | ' </li>', |
| 246 | ' </ul>', |
| 247 | ' <p class="gs-note">All roles are unpaid and optional.</p>', |
| 248 | '</section>', |
| 249 | ] |
| 250 | return "\n".join(indent + line for line in lines) |
| 251 | |
| 252 | |
| 253 | def index(): |
| 254 | graph = [{"@type": "WebSite", "@id": f"{SITE}/#website", "url": SITE + "/", "name": NAME, "description": DESC, "inLanguage": "en-US", |
| 255 | "publisher": {"@id": f"{SITE}/#org"}}, |
| 256 | {**webpage("/", TITLE, DESC), "mainEntity": {"@id": f"{SITE}/#app"}}, APP, ORG] |
| 257 | share = (f'<button type="button" class="pm-share-btn app-share" data-pm-share data-share-url="{SITE}/" data-share-title="{NAME}" ' |
| 258 | f'data-share-text="Find open volunteer work." aria-haspopup="menu" aria-label="Share {NAME}">' |
| 259 | '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">' |
| 260 | '<path d="M12 3v12"/><path d="m7.5 7.5 4.5-4.5 4.5 4.5"/><path d="M5 12v6.5A2.5 2.5 0 0 0 7.5 21h9a2.5 2.5 0 0 0 2.5-2.5V12"/></svg><span data-pm-share-label>Share</span></button>') |
| 261 | rules = "\n".join(f' <article><h3>{a.rstrip(".")}</h3><p>{b}</p></article>' for a, b in RULES[:4]) |
| 262 | h = head("/", TITLE, DESC, graph, home=True) + header() |
| 263 | h += f''' |
| 264 | <main id="main"> |
| 265 | <section class="hero" aria-labelledby="hero-title"> |
| 266 | <div class="shell"> |
| 267 | <p class="pill"><i></i>Volunteer work</p> |
| 268 | <div class="visitor-welcome" data-visitor-odometer data-visitor-site="jobley"></div> |
| 269 | <h1 id="hero-title">Find work you want <em>to help with.</em></h1> |
| 270 | {getting_started()} |
| 271 | <p class="lead">{LINE} <strong>No AI screens, scores or ranks anyone.</strong></p> |
| 272 | <p class="guarantee"><strong>Our promise:</strong> {GUARANTEE}</p> |
| 273 | <div class="actions"> |
| 274 | <a class="button secondary" href="/careers/">Explore by career</a> |
| 275 | {share} |
| 276 | </div> |
| 277 | |
| 278 | </div> |
| 279 | </section> |
| 280 | |
| 281 | <section id="how" class="section"> |
| 282 | <div class="shell"> |
| 283 | <div class="section-head"> |
| 284 | <span class="mark">how it works</span> |
| 285 | <h2>Pick something useful. <em>Build it together.</em></h2> |
| 286 | <p class="lead">Jobley posts the kinds of work that need help. Drivers, farmers, engineers, data scientists, and people from every trade are welcome. You can learn with others or get straight to work on something you know.</p> |
| 287 | </div> |
| 288 | <ol class="steps"> |
| 289 | <li><h3>Pick what you want to help with</h3><p>Start with the volunteer roster. There are no forms, résumés or approvals to wait for.</p></li> |
| 290 | <li><h3>Email us</h3><p>Tell us what you’d like to do, share an idea, or ask who is already working on it.</p></li> |
| 291 | <li><h3>Organize with others</h3><p>Share a concrete next step and coordinate so people aren’t duplicating work.</p></li> |
| 292 | <li><h3>Share useful progress</h3><p>Post what you tried, what you learned, and what someone else can pick up.</p></li> |
| 293 | </ol> |
| 294 | </div> |
| 295 | </section> |
| 296 | |
| 297 | <section id="good-jobs" class="section band" aria-labelledby="good-title"> |
| 298 | <div class="shell"> |
| 299 | <div class="section-head"> |
| 300 | <span class="mark">the rules</span> |
| 301 | <h2 id="good-title">What belongs <em>on the board.</em></h2> |
| 302 | <p class="lead">Every listing follows the same volunteer guidelines. <a href="/help/#rules">Read all the rules</a></p> |
| 303 | </div> |
| 304 | <div class="connect"> |
| 305 | {rules} |
| 306 | </div> |
| 307 | </div> |
| 308 | </section> |
| 309 | |
| 310 | <section id="moderators" class="section band"> |
| 311 | <div class="shell"> |
| 312 | <div class="section-head"> |
| 313 | <span class="mark">moderators</span> |
| 314 | <h2>Help us read. <em>We’re looking for moderators.</em></h2> |
| 315 | <p class="lead">Board moderation is separate from volunteering.</p> |
| 316 | <div class="actions actions-left"><a class="button" href="/moderators/">{ICON_SHIELD}Board moderation</a></div> |
| 317 | </div> |
| 318 | </div> |
| 319 | </section> |
| 320 | |
| 321 | <section id="privacy" class="section band" aria-labelledby="privacy-title"> |
| 322 | <div class="shell"> |
| 323 | <div class="section-head"> |
| 324 | <span class="mark">promises</span> |
| 325 | <h2 id="privacy-title">People first, <em>in writing.</em></h2> |
| 326 | </div> |
| 327 | <div class="trio"> |
| 328 | <div><h3>No AI screening, ever</h3><p>No screening stands between you and the volunteer community. Join in directly.</p></div> |
| 329 | <div><h3>Only what we need</h3><p>Jobley does not collect forms or résumés from volunteers. <a href="/privacy/">What we keep</a></p></div> |
| 330 | <div><h3>Free to browse</h3><p>Use the site without an account. Email us when you’re ready to start.</p></div> |
| 331 | </div> |
| 332 | </div> |
| 333 | </section> |
| 334 | |
| 335 | {closing()}''' |
| 336 | h += " </main>\n" + footer() |
| 337 | write("index.html", h) |
| 338 | |
| 339 | |
| 340 | |
| 341 | def volunteer_switch(current): |
| 342 | """The roster / by-career switch at the top of /volunteer/ and the career directory.""" |
| 343 | cur = lambda path: ' aria-current="page"' if path == current else "" |
| 344 | return (f'<nav class="volunteer-switch" aria-label="Volunteer directories">' |
| 345 | f'<a href="/volunteer/"{cur("/volunteer/")}><strong>Volunteer roster</strong><span>{VOLUNTEER_COUNT} roles</span></a>' |
| 346 | f'<a href="/careers/"{cur("/careers/")}><strong>Ideas by career</strong><span>848 titles in 22 families</span></a></nav>') |
| 347 | |
| 348 | |
| 349 | def trade_training_section(): |
| 350 | return """<section class="volunteer-section trade-training" id="skilled-trades-training" aria-labelledby="skilled-trades-heading"> |
| 351 | <h2 id="skilled-trades-heading">Electrical, plumbing and HVAC learning paths</h2> |
| 352 | <p>Start with free introductory learning. It is peer learning, not accredited training, an apprenticeship, a license or a certification. Learn at your own pace and take those skills wherever you choose. The paths are open whether or not you volunteer, and do not promise placement or authorization to do trade work.</p> |
| 353 | <ol class="board"> |
| 354 | <li class="job trade-path" id="electrical-training"><div><h3><a href="#electrical-training">Electrical</a></h3> |
| 355 | <p>Start with electrical safety and reading simple diagrams. For hands-on training, look for a recognized electrical trade program or registered apprenticeship. Ask your local licensing authority about required classroom hours, supervised experience and exams.</p></div></li> |
| 356 | <li class="job trade-path" id="plumbing-training"><div><h3><a href="#plumbing-training">Plumbing</a></h3> |
| 357 | <p>Start with water supply, drainage and reading plans. For hands-on training, look for a recognized plumbing program or registered apprenticeship. Confirm supervised experience, exams, license levels and permitted work with the authority where you live.</p></div></li> |
| 358 | <li class="job trade-path" id="hvac-training"><div><h3><a href="#hvac-training">Heating, ventilation and air conditioning (HVAC)</a></h3> |
| 359 | <p>Start with ventilation and cooling fundamentals. Look for a recognized HVAC program or registered apprenticeship. In the United States, check the <a href="https://www.epa.gov/section608/section-608-technician-certification-requirements">EPA’s Section 608 requirements</a> before refrigerant-related work, and check any separate local license requirements.</p></div></li> |
| 360 | </ol> |
| 361 | <p>Use your national or regional apprenticeship office or licensing authority to verify a provider, entry requirements, supervised hours and any tuition, materials or exam fees. In the United States, start with the <a href="https://www.apprenticeship.gov/career-seekers">U.S. Department of Labor’s apprenticeship finder</a>. Formal training and exams are separate from Jobley.</p> |
| 362 | <p>As a volunteer, stick to learning, planning and peer review. Do not do hands-on or regulated work unless you are qualified, authorized and supervised as required.</p> |
| 363 | </section>""" |
| 364 | |
| 365 | |
| 366 | def learning_page(path, title, description, track, community, first_task, parent, formal=None, occupation=None, art_src=None): |
| 367 | if art_src is None: |
| 368 | art_src = ART["art"](write, "support", path.strip("/").split("/")[-1], ART["role_motif"](title, community)) |
| 369 | project_role = PROJECT_ROLE_TRACKS.get(title) |
| 370 | concept, exercise, artifact, resource = project_role[3] if project_role else LEARNING["TRACKS"][track] |
| 371 | if formal is None: |
| 372 | formal = LEARNING["FORMAL"].get(track, ( |
| 373 | "Look up the occupation, then compare entry qualifications and training where you live. Ask a provider which skills and supervised hours it covers.", |
| 374 | LEARNING["BLS"])) |
| 375 | d = f"Free starter curriculum, practice and next steps for {title}." |
| 376 | rendered_steps = ( |
| 377 | ("Learn how the work fits together", concept, resource, "Read the learning resource"), |
| 378 | ("Do a first exercise", first_task, None, None), |
| 379 | ("Practice and compare", exercise, None, None), |
| 380 | ("Show what you learned", artifact + " Ask someone to review what you made and explain one thing you would improve.", None, None), |
| 381 | ) |
| 382 | steps = "".join( |
| 383 | f'<li><h3>{escape(label)}</h3><p>{escape(copy)}</p>' |
| 384 | + (f'<a href="{escape(url)}">{escape(link)}</a>' if url and 'projectatom' not in url else '') + '</li>' |
| 385 | for label, copy, url, link in rendered_steps) |
| 386 | next_heading = "Scope and next steps" if project_role else "Formal training and next steps" |
| 387 | training = (f"<p>{escape(project_role[2])}</p>" if project_role else |
| 388 | f'<p>{escape(formal[0])}</p>\n <p><a href="{escape(formal[1])}">Explore the training route</a></p>') |
| 389 | refs = f'<p><a href="{escape(occupation)}">Read about the occupation and typical training</a></p>' if occupation and occupation != formal[1] else '' |
| 390 | scope = "These are free introductory exercises, not a credential or a job offer. Keep practice to public or sample material. Regulated or hazardous tasks require independent qualifications, authorization and supervision where applicable." |
| 391 | h = head(path, escape(title) + f" starter curriculum · {NAME}", escape(d), None, noindex=True, styles=(VOLUNTEER_CSS,)) + header() |
| 392 | h += f''' <main id="main" class="shell role-guide"> |
| 393 | <div class="page-head"> |
| 394 | <p><a href="{escape(parent)}">← Back to the directory</a></p> |
| 395 | {ART["image"](art_src, "guide")} |
| 396 | <span class="mark">Free starter curriculum</span> |
| 397 | <h1>{escape(title)}</h1> |
| 398 | <p class="lead">{escape(description)}</p> |
| 399 | <p>Read the whole learning path here. When you’re ready to help, email us.</p> |
| 400 | </div> |
| 401 | <section aria-labelledby="curriculum-heading"> |
| 402 | <h2 id="curriculum-heading">Your starter curriculum</h2> |
| 403 | <ol class="curriculum-steps">{steps}</ol> |
| 404 | </section> |
| 405 | <section class="role-guide-next" aria-labelledby="training-heading"> |
| 406 | <h2 id="training-heading">{next_heading}</h2> |
| 407 | {training}{refs} |
| 408 | <p>{escape(scope)}</p> |
| 409 | <p><a class="button secondary" href="{VOLUNTEER_MAIL}">Email us to volunteer</a></p> |
| 410 | </section> |
| 411 | </main> |
| 412 | ''' + footer() |
| 413 | write(path.strip("/") + "/index.html", h) |
| 414 | |
| 415 | |
| 416 | def volunteer_track(group, title, trade): |
| 417 | lower = title.lower() |
| 418 | if title in PROJECT_ROLE_TRACKS: return None |
| 419 | if title in OPEN_DESIGN_ROLES: return OPEN_DESIGN_ROLES[title][2] |
| 420 | if group in NEW_RESEARCH: return trade.removeprefix("atom-") |
| 421 | if group == "Solar roof tiles": return "solar-roof-envelope" if "envelope" in lower else "solar-roof-pv" |
| 422 | if group == "Civilian nuclear energy": |
| 423 | if "licensing" in lower: return "civilian-energy-oversight" |
| 424 | if "grid" in lower: return "civilian-energy-grid" |
| 425 | return "civilian-energy-preparedness" |
| 426 | if any(x in lower for x in ("electrical", "electrician")): return "electrical" |
| 427 | if "plumb" in lower: return "plumbing" |
| 428 | if "cooling" in lower or "hvac" in lower: return "hvac" |
| 429 | if "veterinar" in lower: return "veterinary" |
| 430 | if "research" in lower and trade == "atom-health-veterinary": return "health-veterinary" |
| 431 | if "educat" in lower or "training" in lower: return "education" |
| 432 | if "budget" in lower or "finance" in lower: return "finance" |
| 433 | return trade.removeprefix("atom-") |
| 434 | |
| 435 | |
| 436 | def volunteer_page(): |
| 437 | t = f"Find volunteer work · {NAME}" |
| 438 | d = "Explore unpaid community work in chip design and manufacturing, worldwide data centers, software, AI, and more. Pick a task and email us to get started." |
| 439 | graph = [webpage("/volunteer/", t, d), crumbs("Volunteer work", "/volunteer/"), ORG] |
| 440 | groups = VOLUNTEER_GROUPS |
| 441 | sl = lambda text: re.sub(r"[^a-z0-9]+", "-", text.lower()).strip("-") |
| 442 | titles = [sl(title) for _, roles in groups for title, _, _ in roles] |
| 443 | assert len(titles) == len(set(titles)) |
| 444 | assert not START_IDS & (set(titles) | {sl(group) for group, _ in groups}), "a role or group slug collides with a Getting started id" |
| 445 | toc ='<li><a href="#skilled-trades-training">Electrical, plumbing and HVAC training</a></li>' + "".join(f'<li><a href="#{sl(group)}">{escape(group)}</a></li>' for group, _ in groups) |
| 446 | sections = [] |
| 447 | def trade_category(group, title): |
| 448 | if title in PROJECT_ROLE_TRACKS: return PROJECT_ROLE_TRACKS[title][1] |
| 449 | if group in PROJECT_GROUPS: return PROJECT_GROUPS[group][0] |
| 450 | if group in NEW_RESEARCH: return NEW_RESEARCH[group][0] |
| 451 | t = title.lower() |
| 452 | if title in OPEN_DESIGN_ROLES: return "atom-build-" + OPEN_DESIGN_ROLES[title][0] |
| 453 | if group == "Leadership and operations": return "atom-leadership-operations" |
| 454 | if group == "Community": return "atom-design-media" if "writer" in t or "design and media" in t else "atom-community" |
| 455 | if group == "Software and AI": return "atom-ai-data" if any(x in t for x in ("ai ", "model", "data scientist", "distillation")) else "atom-software" |
| 456 | if group == "Free meals, farming and delivery": |
| 457 | if "farm" in t or "sourcing" in t: return "atom-farming" |
| 458 | if any(x in t for x in ("driver", "dispatch", "route")): return "atom-delivery-driving" |
| 459 | return "atom-kitchens-food" |
| 460 | if group == "Free movie and TV streaming": return "atom-film-tv-production" |
| 461 | if group == "Chip design and manufacturing": return "atom-chips-manufacturing" |
| 462 | if group == "Solar roof tiles": return "atom-build-solar-roof-tiles" |
| 463 | if group == "Civilian nuclear energy": return "atom-civilian-nuclear-energy" |
| 464 | if group == "Data centers, power and manufacturing": return "atom-data-centers-trades" |
| 465 | if group == "Health, veterinary care and research": return "atom-health-veterinary" |
| 466 | if group == "Motors, robotics and space": return "atom-motors" if any(x in t for x in ("vehicle", "ev ", "charging")) else "atom-robotics-space" |
| 467 | raise ValueError("Missing community category for " + group) |
| 468 | for group, roles in groups: |
| 469 | items = [] |
| 470 | for title, description, exercise in roles: |
| 471 | title_html = escape(title) |
| 472 | trade = trade_category(group, title) |
| 473 | guide = f"/volunteer/learn/{sl(title)}/" |
| 474 | motif = PROJECT_ROLE_TRACKS[title][4] if title in PROJECT_ROLE_TRACKS else ART["role_motif"](title, trade) |
| 475 | role_src = ART["art"](write, "volunteer", sl(title), motif) |
| 476 | learning_page(guide, title, description, volunteer_track(group, title, trade), trade, exercise, "/volunteer/#" + sl(title), art_src=role_src) |
| 477 | formal = '<li>See the <a href="#skilled-trades-training">formal electrical, plumbing and HVAC paths</a> for supervised training and credential guidance.</li>\n' if sl(title) in {"cleanroom-facilities-and-trades-adviser", "data-center-electrical-facilities-volunteer", "data-center-cooling-and-mechanical-volunteer", "data-center-field-trades-adviser"} else "" |
| 478 | web_brief = "" |
| 479 | items.append(f'''<li class="job" id="{sl(title)}"> |
| 480 | <div class="role-card-heading">{ART["image"](role_src)}<div><h3><a href="{guide}">{title_html}</a></h3><p class="co">Volunteer work · Unpaid</p></div></div> |
| 481 | <p class="volunteer-description">{escape(description)}</p> |
| 482 | <details class="volunteer-learning"><summary>Getting started and learning path</summary><ol> |
| 483 | <li>{escape(exercise)}</li> |
| 484 | <li><a href="{guide}">Read the full starter curriculum for {title_html}</a>.</li> |
| 485 | <li>Email us what you tried or what you’d like to help with. Use public or sample material, not private records.</li> |
| 486 | {formal} </ol>{web_brief}</details> |
| 487 | <div class="job-actions"><a class="button secondary" href="{VOLUNTEER_MAIL}" aria-label="Volunteer: {title_html}">Volunteer <span aria-hidden="true">↗</span></a></div> |
| 488 | </li>''') |
| 489 | scope = ( |
| 490 | f'<p>Public-source research and education only. There is no construction, facility work, fuel processing, weapons work, or use of restricted information. No forms are needed.</p>' |
| 491 | if group == "Civilian nuclear energy" else "" |
| 492 | ) |
| 493 | if group == "Pet products and local distribution": |
| 494 | scope = '<p>These are unpaid design and planning roles. No forms are needed. No products, sales, deliveries or appointments are available through these listings.</p>' |
| 495 | if group == "Solar roof tiles": |
| 496 | scope = f'<p>Help plan and review one shared open tile design. If the design is validated, independent local teams can make it themselves. There is no working prototype, product, installation service, or sign-up process.</p>' |
| 497 | if group in PROJECT_GROUPS: scope = f'<p>{escape(PROJECT_GROUPS[group][1])}</p>' |
| 498 | if group == "Data centers, power and manufacturing": |
| 499 | scope += '<p>Study first-party internet hosting and potential future owned data centers. No facility or hosting service is open. These roles are unpaid research only.</p><figure><img class="role-art" src="/assets/first-party-hosting-concept.png" width="1536" height="1024" alt="Concept illustration of an imagined server hall with separate incoming fiber paths" loading="lazy" decoding="async"><figcaption>Illustrative concept only, not an existing facility.</figcaption></figure>' |
| 500 | if group == "Open Garden Design": |
| 501 | scope += '<img class="role-art" src="/assets/open-garden-design.svg" width="1200" height="630" alt="Isometric illustration of a native editor arranging plants around a house" loading="lazy" decoding="async">' |
| 502 | if group in NEW_RESEARCH: scope = f'<p>{escape(NEW_RESEARCH[group][1])}</p>' |
| 503 | sections.append(f'<section class="volunteer-section" id="{sl(group)}"><h2>{escape(group)}</h2>{scope}<ul class="board">{"".join(items)}</ul></section>') |
| 504 | h = head("/volunteer/", t, d, graph, styles=(VOLUNTEER_CSS,)) + header("/volunteer/") + f''' <main id="main"> |
| 505 | <div class="shell page-head volunteer-head"> |
| 506 | <span class="mark"><a href="/volunteer/">all volunteer roles</a></span> |
| 507 | <h1>Find volunteer work <em>you care about.</em></h1> |
| 508 | {getting_started(on_board=True, indent=" ")} |
| 509 | <p class="lead">People anywhere in the world can volunteer. Pick work that interests you, email us, and organize together. Every opportunity here is unpaid and optional.</p> |
| 510 | {volunteer_switch("/volunteer/")} |
| 511 | <p>Some programs are still in planning. You can help design them now. Working on a planning task does not mean a facility, delivery shift or medical service is open. The health roles are advisory; no patient or animal care is offered through this board.</p> |
| 512 | <p>Chip manufacturing, worldwide data centers and AI infrastructure are planned programs. These listings are for research, design and planning. No fabrication or data center shifts are available now. Please do not share confidential designs, proprietary documents or other nonpublic information.</p> |
| 513 | <p>Pick a role for a practical first task and a learning path. Select <strong>Volunteer</strong> to email us about it. No forms, résumé, or approval is required. Want ideas based on your background? <a href="/careers/">Explore by career</a>.</p> |
| 514 | <nav class="workstreams" aria-label="Volunteer workstreams"><p class="workstreams-label" aria-hidden="true">Jump to a workstream</p><ul class="tags">{toc}</ul></nav> |
| 515 | </div> |
| 516 | <div class="shell board-wrap volunteer-board" id="{BOARD_ID}">{trade_training_section()}{"".join(sections)}</div> |
| 517 | </main> |
| 518 | ''' + footer() |
| 519 | write("volunteer/index.html", h) |
| 520 | |
| 521 | |
| 522 | def careers_page(): |
| 523 | t = f"Volunteer ideas by career · {NAME}" |
| 524 | d = "Find volunteer ideas by career and start organizing with others." |
| 525 | config = runpy.run_path(os.path.join(ROOT, "tools", "career-families.py")) |
| 526 | families = config["FAMILIES"] |
| 527 | source = json.load(open(os.path.join(ROOT, "tools", "career-titles.json"))) |
| 528 | by_group = {code: 0 for code, *_ in families} |
| 529 | for code, title in source: |
| 530 | by_group[code[:2]] += 1 |
| 531 | assert sum(by_group.values()) == 848 |
| 532 | directory = [[code, title, next((trade for pattern, trade in config["ROUTES"] if re.search(pattern, title, re.I)), ""), |
| 533 | config["ALIASES"].get(code, "")] for code, title in source] |
| 534 | write("assets/career-directory.json", json.dumps({"careers": directory, "families": families}, ensure_ascii=False, separators=(",", ":")) + "\n") |
| 535 | by_code = {family[0]: family for family in families} |
| 536 | career_art = {} |
| 537 | for code, title, override, _ in directory: |
| 538 | career_art[code] = ART["art"](write, "career", code, ART["motif_for"](title, ART["FAMILIES"][code[:2]])) |
| 539 | family, community, family_idea = by_code[code[:2]][1:] |
| 540 | track = LEARNING["SPECIAL_CODES"].get(code) or override or LEARNING["FAMILY_TRACK"][code[:2]] |
| 541 | title_description, task, occupation = LEARNING["OCCUPATIONS"].get(code, ( |
| 542 | f"Explore the {title.lower()} career in {family.lower()}. This starter path covers shared fundamentals, with a first exercise to connect them to this role.", |
| 543 | f"Look up {title.lower()} in a public occupation profile. Pick one common task, describe its inputs and output in your own words, then sketch a paper or sample-data version you can do safely.", |
| 544 | LEARNING["BLS"], |
| 545 | )) |
| 546 | learning_page(f"/careers/{code}/", title, title_description, track, "atom-" + (override or community), |
| 547 | task, f"/careers/families/{code[:2]}/", occupation=occupation, art_src=career_art[code]) |
| 548 | family_art = {} |
| 549 | for code, family, _, idea in families: |
| 550 | family_art[code] = ART["art"](write, "family", code, ART["FAMILIES"][code]) |
| 551 | path = f"/careers/families/{code}/" |
| 552 | links = "".join(f'<li class="career-guide-card"><a href="/careers/{cid}/">{ART["image"](career_art[cid])}<span>{escape(title)}</span></a></li>' for cid,title,*_ in directory if cid.startswith(code + "-")) |
| 553 | h = head(path, escape(family) + f" learning paths · {NAME}", escape(idea), None, noindex=True, styles=(VOLUNTEER_CSS,)) + header() |
| 554 | write(path.strip("/") + "/index.html", h + f'''<main id="main" class="shell role-guide"> |
| 555 | <div class="page-head"><p><a href="/careers/">← All career families</a></p> |
| 556 | {ART["image"](family_art[code], "guide")}<h1>{escape(family)}</h1><p class="lead">Choose a career to open its starter curriculum.</p></div> |
| 557 | <ul class="career-list">{links}</ul> |
| 558 | </main>''' + footer()) |
| 559 | cards = "\n".join( |
| 560 | f'<li class="career-family">{ART["image"](family_art[code], "family")}<h3>{escape(name)}</h3><p>{escape(idea)}</p><div>' |
| 561 | f'<button class="career-browse" type="button" data-career-browse="{code}" hidden>Browse {by_group[code]} titles<span class="visually-hidden"> in {escape(name)}</span></button>' |
| 562 | f'<a href="/careers/families/{code}/">View learning paths<span class="visually-hidden"> in {escape(name)}</span></a>' |
| 563 | '</div></li>' |
| 564 | for code, name, trade, idea in families |
| 565 | ) |
| 566 | opts = "".join(f'<option value="{code}">{escape(name)}</option>' for code, name, *_ in families) |
| 567 | h = head("/careers/", t, d, [webpage("/careers/", t, d), crumbs("Volunteer ideas by career", "/careers/"), ORG], |
| 568 | scripts=("careers.js?v=20261201",), styles=(VOLUNTEER_CSS,)) + header() |
| 569 | h += f''' <main id="main"> |
| 570 | <div class="shell page-head volunteer-head"> |
| 571 | <span class="mark">Worldwide volunteer community</span> |
| 572 | <h1>Find a way to help <em>by career.</em></h1> |
| 573 | <p class="lead">Explore {len(directory)} civilian career titles across {len(families)} families. Search for what you know or browse a field you want to learn. These are unpaid volunteer ideas, not openings, shifts, or commitments.</p> |
| 574 | {volunteer_switch("/careers/")} |
| 575 | <p>Open any title to read its starter curriculum here. When you’re ready, <a href="{VOLUNTEER_MAIL}">email us</a> what you’d like to contribute. No forms or résumé are needed. <a href="/volunteer/">See the separate roster of {VOLUNTEER_COUNT} curated volunteer roles</a>.</p> |
| 576 | </div> |
| 577 | <section class="shell career-note" aria-labelledby="project-brief-title"> |
| 578 | <h2 id="project-brief-title">Project briefs</h2> |
| 579 | <p><a href="{PRINT_PROJECT}">Print and fulfillment</a>: explore the expertise needed for a direct manufacturing pilot. This independent project is not a job opening or a volunteer listing.</p> |
| 580 | <p><a href="{PET_FOOD_PROJECT}">Pet food and treats</a>: explore five research roles in formulation, U.S. sourcing, manufacturing safety and palatability.</p> |
| 581 | </section> |
| 582 | <section class="shell career-directory" aria-labelledby="career-title"> |
| 583 | <h2 id="career-title" tabindex="-1">Career directory</h2> |
| 584 | <div class="career-filters" hidden> |
| 585 | <div><label for="career-query">Search careers</label><input type="search" id="career-query" placeholder="Try electrician, teacher, or nurse"></div> |
| 586 | <div><label for="career-family">Career family</label><select id="career-family"><option value="">All career families</option>{opts}</select></div> |
| 587 | <button type="button" id="career-clear" class="button secondary">Clear filters</button> |
| 588 | </div> |
| 589 | <div class="career-results" hidden> |
| 590 | <p id="career-status" role="status" aria-atomic="true"></p> |
| 591 | <ul id="career-results" class="career-list"></ul> |
| 592 | <button type="button" id="career-more" class="button secondary" hidden>Show more results</button> |
| 593 | </div> |
| 594 | <p class="career-fallback" hidden>Search is unavailable. The career family learning paths below still work.</p> |
| 595 | <ul class="career-families">{cards}</ul> |
| 596 | </section> |
| 597 | <section class="shell career-note" aria-labelledby="career-scope"> |
| 598 | <h2 id="career-scope">A starting point, not a limit</h2> |
| 599 | <p>Career names come from the <a href="https://www.bls.gov/soc/2018/major_groups.htm">U.S. Bureau of Labor Statistics’ 2018 Standard Occupational Classification</a>. It organizes the list; it does not limit where you can join or cover every title used worldwide. Don’t see yours? <a href="{VOLUNTEER_MAIL}">Email us</a>.</p> |
| 600 | <p>For licensed or safety-critical fields, stick to appropriate planning, general education and coordination. Do not do regulated or hazardous work unless you are independently qualified and authorized, with supervision where required. The directory does not authorize work or offer services.</p> |
| 601 | </section> |
| 602 | </main> |
| 603 | ''' + footer() |
| 604 | write("careers/index.html", h) |
| 605 | |
| 606 | |
| 607 | |
| 608 | def print_project_page() -> None: |
| 609 | title = "Print and fulfillment project" |
| 610 | desc = "Explore the skills behind an independent direct-factory pilot for cotton and performance tees." |
| 611 | roles = [ |
| 612 | ("apparel-sourcing", "Apparel sourcing and factory qualification", |
| 613 | "Experience qualifying apparel factories, reviewing samples and negotiating realistic quantities and lead times.", |
| 614 | "Compare factories that print directly and can ship from their own site. Document in-house and subcontracted steps, size ranges, sample terms and repeat-run capacity.", |
| 615 | "production-study"), |
| 616 | ("garment-printing", "Garment printing and quality", |
| 617 | "Experience with textile printing, cotton and performance fabrics, and repeatable production checks.", |
| 618 | "Evaluate one cotton tee and one performance tee against fit, print feel, stretch and repeated washing. Deliver an approval scorecard for samples.", |
| 619 | "printer-test"), |
| 620 | ("shipping-operations", "International fulfillment and customs", |
| 621 | "Experience with outbound parcels, customs, tracking, failed deliveries and returns.", |
| 622 | "Compare tested destinations for true delivered cost and recipient charges, then document which lanes can launch and how exceptions will be handled.", |
| 623 | "truck"), |
| 624 | ("print-prepress", "Card printing and prepress", |
| 625 | "Experience with digital production presses, uncoated card stock, cutting and QR print checks.", |
| 626 | "Specify a simple low-cost card and qualification tests for the future owned printer. No card purchasing, printing or distribution during the apparel pilot.", |
| 627 | "evidence"), |
| 628 | ] |
| 629 | cards = [] |
| 630 | for slug, name, background, deliverable, motif in roles: |
| 631 | src = ART["art"](write, "project-print", slug, motif) |
| 632 | cards.append(f'''<li id="{slug}"> |
| 633 | {ART["image"](src, "family")} |
| 634 | <h3>{escape(name)}</h3> |
| 635 | <p><strong>Relevant experience:</strong> {escape(background)}</p> |
| 636 | <p><strong>First milestone:</strong> {escape(deliverable)}</p> |
| 637 | </li>''') |
| 638 | graph = [webpage(PRINT_PROJECT, title, desc), crumbs(title, PRINT_PROJECT), ORG] |
| 639 | h = head(PRINT_PROJECT, f"{title} · {NAME}", desc, graph, styles=(VOLUNTEER_CSS,)) + header() |
| 640 | h += f''' <main id="main" class="shell role-guide"> |
| 641 | <div class="page-head"> |
| 642 | <span class="mark">Independent project brief</span> |
| 643 | <h1>Print and fulfillment</h1> |
| 644 | <p class="lead">Qualify a factory that can print durable cotton and performance tees and ship from its own facility, without a print-on-demand marketplace in the middle.</p> |
| 645 | <p>Start remotely with two printed samples, one in each fabric. Approve samples before a small pilot, and open destinations only after confirming delivered cost, tracking, duties and returns. Worldwide fulfillment is a goal, not current coverage.</p> |
| 646 | <p>Business cards are on hold until a printer can be sourced, installed and qualified for in-house production.</p> |
| 647 | <p><strong>Planning only.</strong> These briefs describe expertise the independent venture may need. They are not employment offers, unpaid work requests or an invitation to sign up. No sign-ups are open or collected here.</p> |
| 648 | </div> |
| 649 | <div class="career-directory" aria-labelledby="print-project-roles"> |
| 650 | <h2 id="print-project-roles">Role briefs</h2> |
| 651 | <ul class="career-families">{''.join(cards)}</ul> |
| 652 | </div> |
| 653 | <p class="role-guide-next"><a href="/careers/">Back to Career directory</a></p> |
| 654 | </main> |
| 655 | ''' + footer() |
| 656 | write("projects/print-and-fulfillment/index.html", h) |
| 657 | |
| 658 | |
| 659 | def pet_food_project_page() -> None: |
| 660 | title = "Pet food and treats research" |
| 661 | desc = "Research roles for U.S.-sourced dog and cat treats and separate adult dog and cat foods." |
| 662 | roles = [ |
| 663 | ("pet-food-science", "Pet-food scientist and process validation", |
| 664 | "Hands-on development of meat-based pet treats and complete dog or cat food, with experience transferring a prototype into a U.S. food plant.", |
| 665 | "Write a brief for separate, cooked duck treat prototypes. Compare consistent portion size, texture, yield, packaging and cost, and identify the evidence a plant must provide before release.", |
| 666 | "production-study"), |
| 667 | ("veterinary-nutrition", "Veterinary nutrition and formulation", |
| 668 | "Board-certified veterinary nutrition or equivalent specialist credentials, with commercial canine and feline formulation experience.", |
| 669 | "Define separate specifications for one adult dog food and one adult cat food, including the evidence for nutritional adequacy. Do not treat a snack as a complete diet.", |
| 670 | "preventive-vet"), |
| 671 | ("us-sourcing", "U.S. sourcing and manufacturer qualification", |
| 672 | "Pet-food supplier assurance, ingredient traceability and U.S. co-manufacturer due diligence.", |
| 673 | "Build a supplier screen that distinguishes where the duck and other ingredients originate from where the product is made. Specify domestic-origin records, lot traceability and backup supply before a purchase decision.", |
| 674 | "truck"), |
| 675 | ("food-safety", "Quality, microbiology and shelf life", |
| 676 | "Animal-food preventive controls, poultry-product verification, post-process contamination control, and shelf-life and packaging studies.", |
| 677 | "Design a manufacturer and lab release checklist that covers microbial checks, packaging integrity and shelf-life evidence. No tentative stability claims and no feeding unreleased samples.", |
| 678 | "validation-study"), |
| 679 | ("palatability-research", "Humane palatability research", |
| 680 | "Veterinary or animal-welfare oversight and experience designing voluntary canine and feline food preference studies.", |
| 681 | "Separate dog and cat observations, define opt-out and stop criteria, and distinguish preference from nutrition or safety. Home taste feedback is optional only after professional safety release and a veterinarian confirms suitability for each pet.", |
| 682 | "animal"), |
| 683 | ] |
| 684 | cards = [] |
| 685 | for slug, name, background, deliverable, motif in roles: |
| 686 | src = ART["art"](write, "project-pet-food", slug, motif) |
| 687 | cards.append(f'''<li id="{slug}"> |
| 688 | {ART["image"](src, "family")} |
| 689 | <h3>{escape(name)}</h3> |
| 690 | <p><strong>Relevant experience:</strong> {escape(background)}</p> |
| 691 | <p><strong>First milestone:</strong> {escape(deliverable)}</p> |
| 692 | </li>''') |
| 693 | graph = [webpage(PET_FOOD_PROJECT, title, desc), crumbs(title, PET_FOOD_PROJECT), ORG] |
| 694 | h = head(PET_FOOD_PROJECT, f"{title} · {NAME}", desc, graph, styles=(VOLUNTEER_CSS,)) + header() |
| 695 | h += f''' <main id="main" class="shell role-guide"> |
| 696 | <div class="page-head"> |
| 697 | <span class="mark">Research project brief</span> |
| 698 | <h1>Pet food and treats</h1> |
| 699 | <p class="lead">Explore meat-based pet treats manufactured in the United States with U.S.-sourced ingredients. Duck is the first protein to evaluate, not a proven preference for every pet.</p> |
| 700 | <p>The first treat study compares dried pieces with a cooked, portioned format, using separate dog and cat prototypes. Consistent size, lower cost and longer shelf life are targets to test, not product claims.</p> |
| 701 | <p>Next, research one complete adult dog food and one separate complete adult cat food. Nutritional adequacy and manufacturing safety need their own evidence. A household taste check cannot establish either, and no comparison to another brand is claimed.</p> |
| 702 | <p><strong>Planning only.</strong> These briefs describe expertise the project may need, not employment offers or requests for unpaid work. No sign-ups are open or collected here.</p> |
| 703 | <p>References: <a href="https://www.fda.gov/animal-veterinary/animal-health-literacy/complete-and-balanced-pet-food">FDA on complete and balanced pet food</a>, <a href="https://www.fda.gov/regulatory-information/search-fda-guidance-documents/cvm-gfi-245-hazard-analysis-and-risk-based-preventive-controls-food-animals">FDA animal food preventive controls</a>, and <a href="https://www.aafco.org/consumers/understanding-pet-food/treats-and-chews/">AAFCO on treats and chews</a>.</p> |
| 704 | </div> |
| 705 | <div class="career-directory" aria-labelledby="pet-food-project-roles"> |
| 706 | <h2 id="pet-food-project-roles">Role briefs</h2> |
| 707 | <ul class="career-families">{''.join(cards)}</ul> |
| 708 | </div> |
| 709 | <p class="role-guide-next"><a href="/careers/">Back to Career directory</a></p> |
| 710 | </main> |
| 711 | ''' + footer() |
| 712 | write("projects/pet-food-and-treats/index.html", h) |
| 713 | |
| 714 | |
| 715 | def field(name, label, kind="text", hint=None, required=True, attrs=""): |
| 716 | opt = "" if required else " <small>(optional)</small>" |
| 717 | req = " required" if required else "" |
| 718 | hint_html = f'\n <span class="hint" id="{name}-hint">{hint}</span>' if hint else "" |
| 719 | described = f' aria-describedby="{name}-hint {name}-error"' if hint else f' aria-describedby="{name}-error"' |
| 720 | if kind == "textarea": |
| 721 | control = f'<textarea id="{name}" name="{name}"{req}{described} {attrs}></textarea>' |
| 722 | elif kind == "select": |
| 723 | control = f'<select id="{name}" name="{name}"{req}{described} {attrs}><option value="">Choose…</option></select>' |
| 724 | else: |
| 725 | control = f'<input id="{name}" name="{name}" type="{kind}"{req}{described} {attrs}>' |
| 726 | return f''' <div class="field"> |
| 727 | <label for="{name}">{label}{opt}</label> |
| 728 | {control}{hint_html} |
| 729 | <span class="error" id="{name}-error" data-error="{name}" role="alert"></span> |
| 730 | </div>''' |
| 731 | |
| 732 | |
| 733 | HONEYPOT = ''' <div class="hp" aria-hidden="true"> |
| 734 | <label for="website">Leave this empty</label> |
| 735 | <input id="website" name="website" type="text" tabindex="-1" autocomplete="off"> |
| 736 | </div>''' |
| 737 | |
| 738 | |
| 739 | def form_foot(button, note): |
| 740 | return f''' <div class="turnstile"></div> |
| 741 | <div class="form-foot"> |
| 742 | <button type="submit" class="button">{button}</button> |
| 743 | <p class="fineprint">{note}</p> |
| 744 | </div> |
| 745 | <p class="form-status" role="alert"></p>''' |
| 746 | |
| 747 | |
| 748 | def moderators(): |
| 749 | t = f"Become a moderator · {NAME}" |
| 750 | d = f"{NAME} has a separate request form for board moderator access. Community volunteers email us to join." |
| 751 | graph = [webpage("/moderators/", t, d), crumbs("Moderators", "/moderators/"), ORG] |
| 752 | h = head("/moderators/", t, d, graph, scripts=("forms.js",)) + header("/moderators/") + f''' <main id="main"> |
| 753 | <div class="shell page-head"> |
| 754 | <span class="mark">moderators</span> |
| 755 | <h1>Help us read. <em>Become a moderator.</em></h1> |
| 756 | <p class="lead">Board moderator access is separate from volunteering. To volunteer in community moderation without a form, see the <a href="/volunteer/">volunteer roster</a>.</p> |
| 757 | </div> |
| 758 | <div class="shell form-page"> |
| 759 | <div> |
| 760 | <form class="form" data-api="/api/moderators" novalidate> |
| 761 | <div class="field-row"> |
| 762 | {field("name", "Name", attrs='maxlength="100" autocomplete="name"')} |
| 763 | {field("email", "Email", kind="email", attrs='maxlength="254" autocomplete="email"')} |
| 764 | </div> |
| 765 | {field("message", "Message", kind="textarea", attrs='maxlength="3000"', hint="Why you want to moderate, in a few sentences.")} |
| 766 | {form_foot("Apply to moderate", "We read every request ourselves.")} |
| 767 | </form> |
| 768 | <section class="done" data-done hidden aria-labelledby="done-title"> |
| 769 | <h2 id="done-title">Thank you. We have your request.</h2> |
| 770 | <p>It is saved as <code data-ref></code>. We read every request ourselves and will write to the email you gave.</p> |
| 771 | <div class="actions"><a class="button secondary" href="/volunteer/">See the volunteer roster</a></div> |
| 772 | </section> |
| 773 | </div> |
| 774 | <aside class="aside-card" aria-labelledby="next-title"> |
| 775 | <h2 id="next-title">How moderation works</h2> |
| 776 | <ul> |
| 777 | <li><strong>You read the whole post</strong> against the <a href="/help/#rules">volunteer listing guidelines</a>.</li> |
| 778 | <li><strong>You can flag or archive historical records</strong> with the reason in plain words. Moderation decisions are logged with your name.</li> |
| 779 | <li><strong>You decide, not software.</strong> An agent may tidy formatting. It never approves or rejects.</li> |
| 780 | <li><strong>We follow up privately.</strong> If your moderator request is approved, we will send instructions for your access.</li> |
| 781 | |
| 782 | </ul> |
| 783 | </aside> |
| 784 | </div> |
| 785 | </main> |
| 786 | ''' + footer() |
| 787 | write("moderators/index.html", h) |
| 788 | |
| 789 | |
| 790 | def faq(): |
| 791 | return [(f"What is {NAME}?", "A worldwide board for unpaid volunteer work. All participation is optional."), |
| 792 | ("How do I join?", 'Pick a role on the <a href="/volunteer/">volunteer roster</a> and select <strong>Volunteer</strong> to email us. No forms, résumé or approval is required.'), |
| 793 | ("Is it free?", "Yes. Browsing the board and choosing a role are free."), |
| 794 | ("Who posts listings?", "Only Jobley lists roles on this board."), |
| 795 | ("Do you collect my details?", "Not when you choose a volunteer role. The separate board-moderator form is for managing access to the board only.")] |
| 796 | |
| 797 | |
| 798 | def help_page(): |
| 799 | t = f"Help · {NAME}" |
| 800 | d = f"Answers about {NAME}: how to choose a volunteer role and get started." |
| 801 | qs = faq() |
| 802 | fq = {"@type": "FAQPage", "@id": f"{SITE}/help/#faq", "url": f"{SITE}/help/", |
| 803 | "mainEntity": [{"@type": "Question", "name": q, "acceptedAnswer": {"@type": "Answer", "text": a}} for q, a in qs]} |
| 804 | graph = [webpage("/help/", t, d), fq, crumbs("Help", "/help/"), APP, ORG] |
| 805 | qa = "\n".join(f" <h3>{q}</h3>\n <p>{a}</p>" for q, a in qs) |
| 806 | rules = "\n".join(f" <li><strong>{a}</strong> {b}</li>" for a, b in RULES) |
| 807 | h = head("/help/", t, d, graph) + header() + f''' <main id="main"> |
| 808 | <div class="shell page-head"> |
| 809 | <span class="mark">help</span> |
| 810 | <h1>{NAME} Help</h1> |
| 811 | <p class="lead">{d}</p> |
| 812 | <p class="guarantee"><strong>Our promise:</strong> {GUARANTEE}</p> |
| 813 | </div> |
| 814 | <div class="shell doc"> |
| 815 | <nav class="toc" aria-label="On this page"> |
| 816 | <strong>On this page</strong> |
| 817 | <a href="#questions">Common questions</a> |
| 818 | <a href="#rules">Volunteer listing guidelines</a> |
| 819 | </nav> |
| 820 | <div class="prose"> |
| 821 | <section id="questions"> |
| 822 | <h2>Common questions</h2> |
| 823 | {qa} |
| 824 | </section> |
| 825 | <section id="rules"> |
| 826 | <h2>Volunteer listing guidelines</h2> |
| 827 | <p>These rules apply throughout the volunteer board.</p> |
| 828 | <ul> |
| 829 | {rules} |
| 830 | </ul> |
| 831 | <p>We remove misleading or unsafe listings.</p> |
| 832 | </section> |
| 833 | </div> |
| 834 | </div> |
| 835 | </main> |
| 836 | ''' + footer() |
| 837 | write("help/index.html", h) |
| 838 | |
| 839 | |
| 840 | def compare(): |
| 841 | t = f"Ways to help · {NAME}" |
| 842 | d = "Pick an unpaid volunteer role and email us to get started." |
| 843 | h = head("/compare/", t, d, [webpage("/compare/", t, d)]) + header() + f'''<main id="main"> |
| 844 | <div class="shell page-head"> |
| 845 | <h1>Ways to help</h1><p class="lead">{d}</p> |
| 846 | <a class="button" href="/volunteer/">Browse volunteer roles</a> |
| 847 | </div> |
| 848 | </main>''' + footer() |
| 849 | write("compare/index.html", h) |
| 850 | |
| 851 | |
| 852 | def privacy(): |
| 853 | t = f"Privacy · {NAME}" |
| 854 | d = f"How {NAME} handles volunteer browsing, the board moderator form, and private historical records." |
| 855 | graph = [webpage("/privacy/", t, d), crumbs("Privacy", "/privacy/"), ORG] |
| 856 | h = head("/privacy/", t, d, graph) + header() + f''' <main id="main"> |
| 857 | <div class="shell page-head"> |
| 858 | <span class="mark">privacy</span> |
| 859 | <h1>Privacy</h1> |
| 860 | <p class="lead">Choosing a volunteer role does not send personal details to Jobley. Updated November 27, 2026.</p> |
| 861 | </div> |
| 862 | <div class="shell doc single"> |
| 863 | <div class="prose"> |
| 864 | <section id="posts"> |
| 865 | <h2>Historical submissions</h2> |
| 866 | <p>Historical submissions are private and no longer appear on the board. Access is limited to authorized people; connected agents cannot see personal records. You can request access, correction or deletion using the contact details below. We retain historical submissions for up to 12 months.</p> |
| 867 | </section> |
| 868 | <section id="moderators"> |
| 869 | <h2>When you apply to moderate</h2> |
| 870 | <p>We store your request and read it ourselves. If you become a moderator, the decisions you make (publish, send back, edit, note) are logged with your name so every decision has a person behind it.</p> |
| 871 | </section> |
| 872 | <section id="abuse"> |
| 873 | <h2>Keeping the forms clean</h2> |
| 874 | <p>The forms use Cloudflare Turnstile to tell people from bots, which may set a cookie and reads standard browser signals under <a href="https://www.cloudflare.com/privacypolicy/">Cloudflare’s privacy policy</a>. To limit how many submissions one connection can send in an hour, we store a salted, one-way hash of the IP address with each submission. We do not store the IP address itself.</p> |
| 875 | </section> |
| 876 | <section> |
| 877 | <h2 id="hosting">Where we host</h2> |
| 878 | <p>This site runs on <a href="https://www.cloudflare.com/">Cloudflare</a>. Cloudflare serves every page and manages our traffic, so it handles standard request details such as your IP address and browser to deliver the site and protect it from abuse. Form submissions are stored in a Cloudflare D1 database. Cloudflare handles that data under its <a href="https://www.cloudflare.com/privacypolicy/">privacy policy</a>.</p> |
| 879 | <p>We’re not a Cloudflare sponsor. We chose them because we think they’re the best value and the best service, and we’ll keep using them for as long as that stays true.</p> |
| 880 | </section> |
| 881 | <section id="contact"> |
| 882 | <h2>Questions and changes</h2> |
| 883 | <p>We don’t sell your information, and we don’t use it for advertising. To ask what we hold, or to have it corrected or deleted, email <a href="mailto:hello@jobley.ai">hello@jobley.ai</a>. We answer within 30 days.</p> |
| 884 | <p>If this page changes, the date at the top changes with it.</p> |
| 885 | </section> |
| 886 | </div> |
| 887 | </div> |
| 888 | </main> |
| 889 | ''' + footer() |
| 890 | write("privacy/index.html", h) |
| 891 | |
| 892 | |
| 893 | def license_page(): |
| 894 | t = "License · Jobley" |
| 895 | d = "Public-domain licensing and third-party notices for Jobley." |
| 896 | graph = [webpage("/licenses/", t, d), crumbs("License", "/licenses/"), ORG] |
| 897 | h = head("/licenses/", t, d, graph) + header() + ''' <main id="main"> |
| 898 | <div class="shell page-head"> |
| 899 | <span class="mark">license</span> |
| 900 | <h1>License</h1> |
| 901 | <p class="lead">Public-domain licensing for Jobley’s source code.</p> |
| 902 | </div> |
| 903 | <div class="shell doc single"> |
| 904 | <div class="prose"> |
| 905 | <section id="license"> |
| 906 | <h2>Public domain</h2> |
| 907 | <p>Jobley’s code is free and open source, released into the public domain under the <a href="https://unlicense.org/">Unlicense</a>. Anyone may copy, change, share or sell it, for any purpose, without asking. We claim no copyright in it. Parts made by others, such as open source libraries, keep their own licenses.</p> |
| 908 | </section> |
| 909 | </div> |
| 910 | </div> |
| 911 | </main> |
| 912 | ''' + footer() |
| 913 | write("licenses/index.html", h) |
| 914 | |
| 915 | |
| 916 | def notfound(): |
| 917 | h = head("/404", f"Page not found · {NAME}", "", None, noindex=True) + header(body_class="missing-page") + f''' <main id="main" class="hero missing-hero shell"> |
| 918 | <img src="/assets/icon.png?v={V}" width="66" height="66" alt=""> |
| 919 | <h1>Page <em>not found.</em></h1> |
| 920 | <p class="lead">The page may have moved, or the link may have changed. You can still get back to the board or find help.</p> |
| 921 | <div class="actions"> |
| 922 | <a class="button" href="/">{ICON_HOME}Back to Home</a> |
| 923 | <a class="button secondary" href="/volunteer/">{ICON_SEARCH}Browse volunteer roles</a> |
| 924 | <a class="button secondary" href="/help/">{ICON_HELP}Get Help</a> |
| 925 | </div> |
| 926 | </main> |
| 927 | ''' + footer() |
| 928 | write("404.html", h) |
| 929 | |
| 930 | |
| 931 | def app_turnstile(): |
| 932 | h = head("/app/turnstile/", f"Checking you’re a person · {NAME}", "", None, noindex=True, scripts=("app-turnstile.js",)) + f'''<body> |
| 933 | <main id="main" class="shell page-head"> |
| 934 | <p class="lead">One moment. We’re checking you’re a person.</p> |
| 935 | <div id="challenge"></div> |
| 936 | </main> |
| 937 | </body> |
| 938 | </html> |
| 939 | ''' |
| 940 | write("app/turnstile/index.html", h) |
| 941 | |
| 942 | |
| 943 | def llms(): |
| 944 | write("llms.txt", f"""# {NAME} |
| 945 | |
| 946 | > Jobley is a worldwide volunteer board. Every role is unpaid and optional. Pick a role and email us to start. No forms, résumé or approval is required. |
| 947 | |
| 948 | - [Volunteer roster]({SITE}/volunteer/): all current roles |
| 949 | - [Career directory]({SITE}/careers/): browse civilian career backgrounds and ways to contribute; these are ideas, not listings |
| 950 | - [Help]({SITE}/help/): how to join |
| 951 | - [Board moderator access]({SITE}/moderators/): a separate form for managing who can moderate the board |
| 952 | - [Privacy]({SITE}/privacy/): volunteer browsing and historical records |
| 953 | """) |
| 954 | |
| 955 | |
| 956 | |
| 957 | AI_BOTS = ["OAI-SearchBot", "ChatGPT-User", "GPTBot", "ClaudeBot", "Claude-SearchBot", "Claude-User", "PerplexityBot", "Perplexity-User", |
| 958 | "Google-Extended", "GoogleOther", "Applebot", "Applebot-Extended", "bingbot", "Amazonbot", "meta-externalagent", |
| 959 | "meta-externalfetcher", "DuckAssistBot", "MistralAI-User", "CCBot", "cohere-ai", "YouBot"] |
| 960 | # A named group ignores *, so every Disallow goes in both groups. |
| 961 | DISALLOW = "Disallow: /api/admin/\nDisallow: /job-template\nDisallow: /app/" |
| 962 | |
| 963 | |
| 964 | def crawl_files(): |
| 965 | bots = "\n".join(f"User-agent: {b}" for b in AI_BOTS) |
| 966 | write("robots.txt", f"""# {NAME} welcomes search engines and AI assistants. |
| 967 | # A plain-text summary for language models: {SITE}/llms.txt |
| 968 | |
| 969 | User-agent: * |
| 970 | Allow: / |
| 971 | {DISALLOW} |
| 972 | |
| 973 | # AI search, assistant and training crawlers, allowed by name. |
| 974 | {bots} |
| 975 | Allow: / |
| 976 | {DISALLOW} |
| 977 | |
| 978 | Sitemap: {SITE}/sitemap.xml |
| 979 | """) |
| 980 | urls = "\n".join(f" <url><loc>{SITE}{p}</loc><lastmod>{V[:4]}-{V[4:6]}-{V[6:]}</lastmod></url>" for p in PAGES) |
| 981 | write("sitemap.xml", f'<?xml version="1.0" encoding="UTF-8"?>\n<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n{urls}\n</urlset>\n') |
| 982 | |
| 983 | |
| 984 | def headers_file(): |
| 985 | """_headers with the house CSP. The one inline <style> the shared share script adds is allowed by its hash.""" |
| 986 | share_hash = subprocess.run(["node", os.path.join(ROOT, "tools", "csp-hash.mjs")], capture_output=True, text=True, check=True).stdout.strip() |
| 987 | cf = "https://challenges.cloudflare.com" |
| 988 | csp = (f"default-src 'self'; script-src 'self' {cf}; style-src 'self' {share_hash}; " |
| 989 | f"img-src 'self'; font-src 'self'; " |
| 990 | f"connect-src 'self' https://projectatom.ai; " |
| 991 | f"frame-src {cf}; object-src 'none'; base-uri 'self'; frame-ancestors 'none'; form-action 'none'") |
| 992 | write("_headers", f"""# Cloudflare Pages response headers. Written by tools/build-site.py. |
| 993 | /* |
| 994 | Referrer-Policy: strict-origin-when-cross-origin |
| 995 | X-Content-Type-Options: nosniff |
| 996 | Content-Security-Policy: {csp} |
| 997 | |
| 998 | /assets/fonts/* |
| 999 | Cache-Control: public, max-age=31536000, immutable |
| 1000 | |
| 1001 | /job-template |
| 1002 | X-Robots-Tag: noindex |
| 1003 | |
| 1004 | /app/* |
| 1005 | X-Robots-Tag: noindex |
| 1006 | |
| 1007 | /favicon.png |
| 1008 | Cache-Control: public, max-age=3600 |
| 1009 | |
| 1010 | /assets/icon.png |
| 1011 | Cache-Control: public, max-age=3600 |
| 1012 | |
| 1013 | /assets/apple-touch-icon.png |
| 1014 | Cache-Control: public, max-age=3600 |
| 1015 | """) |
| 1016 | return csp |
| 1017 | |
| 1018 | |
| 1019 | def social_card(): |
| 1020 | tmpl = open(os.path.join(ROOT, "tools", "social-card.tmpl.html")).read() |
| 1021 | write("tools/social-card.html", tmpl.replace("{NAME}", NAME).replace("{DOMAIN}", DOMAIN.upper())) |
| 1022 | |
| 1023 | |
| 1024 | if COMMUNITY_ONLY: |
| 1025 | volunteer_page() |
| 1026 | careers_page() |
| 1027 | print_project_page() |
| 1028 | pet_food_project_page() |
| 1029 | crawl_files() |
| 1030 | print("ok", NAME, "community pages only; public app release remains on hold") |
| 1031 | raise SystemExit(0) |
| 1032 | |
| 1033 | index(); volunteer_page(); careers_page(); print_project_page(); pet_food_project_page(); moderators(); help_page(); compare(); privacy(); license_page(); notfound() |
| 1034 | app_turnstile(); llms(); crawl_files(); CSP = headers_file(); social_card() |
| 1035 | print("ok", NAME, DOMAIN, "website-only") |