New AI Language docs · static / Cloudflare Pages

Deploy docs to Cloudflare Pages (static)

Already done in this repo


python new_ai_language/build_static.py

Output folder: new_ai_language/site/ (HTML for all MD under new_ai_language/ + key memory/*.md).


Deploy (you must be authenticated in this terminal)

This agent shell has no Cloudflare token (wrangler whoami → not authenticated).

Run these on your machine where you are logged in:

Option A — OAuth login + deploy


cd C:\Users\prsnt\Downloads\algorithm_discovery_v4.1_RUN_pre_llm\v41_run



npx wrangler login



python new_ai_language/build_static.py

npx wrangler pages deploy new_ai_language/site --project-name=new-ai-language --commit-dirty=true

Or one script:


.\new_ai_language\deploy.ps1

Option B — API token (best for CI / agents)

  1. Open: https://dash.cloudflare.com/profile/api-tokens
  2. Create token → Edit Cloudflare Pages (or custom: Account · Cloudflare Pages · Edit)
  3. In PowerShell:

$env:CLOUDFLARE_API_TOKEN = "paste_token_here"

# optional if multi-account:

# $env:CLOUDFLARE_ACCOUNT_ID = "your_account_id"



python new_ai_language/build_static.py

npx wrangler pages deploy new_ai_language/site --project-name=new-ai-language --commit-dirty=true

Wrangler prints a public URL like:


https://new-ai-language.pages.dev

https://<hash>.new-ai-language.pages.dev


Rebuild after editing markdown


python new_ai_language/build_static.py

npx wrangler pages deploy new_ai_language/site --project-name=new-ai-language --commit-dirty=true


Local preview of the static build


python -m http.server 8765 --directory new_ai_language/site

# open http://127.0.0.1:8765/


Notes

  • Project name: new-ai-language (change in deploy.ps1 / command if you want).
  • Config: new_ai_language/wrangler.toml
  • Static only — no Workers runtime required.
  • First deploy creates the Pages project if missing (when auth works).