Skip to content

Commit 2c5c8dd

Browse files
author
grysz
committed
Configure thymos.ai Pages domain
1 parent dc31d83 commit 2c5c8dd

7 files changed

Lines changed: 22 additions & 22 deletions

File tree

.github/workflows/pages.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ concurrency:
2525
group: "pages"
2626
cancel-in-progress: true
2727

28+
env:
29+
PAGES_CUSTOM_DOMAIN: ${{ vars.PAGES_CUSTOM_DOMAIN || 'thymos.ai' }}
30+
NEXT_PUBLIC_SITE_URL: ${{ vars.NEXT_PUBLIC_SITE_URL || 'https://thymos.ai' }}
31+
NEXT_PUBLIC_BASE_PATH: ${{ vars.NEXT_PUBLIC_BASE_PATH }}
32+
2833
jobs:
2934
build:
3035
runs-on: ubuntu-latest
@@ -44,16 +49,9 @@ jobs:
4449
run: npm ci
4550

4651
- name: Validate site and docs
47-
env:
48-
NEXT_PUBLIC_BASE_PATH: ${{ vars.NEXT_PUBLIC_BASE_PATH }}
49-
NEXT_PUBLIC_SITE_URL: ${{ vars.NEXT_PUBLIC_SITE_URL }}
50-
PAGES_CUSTOM_DOMAIN: ${{ vars.PAGES_CUSTOM_DOMAIN }}
5152
run: npm run site:check
5253

5354
- name: Attach Pages custom domain
54-
if: ${{ vars.PAGES_CUSTOM_DOMAIN != '' }}
55-
env:
56-
PAGES_CUSTOM_DOMAIN: ${{ vars.PAGES_CUSTOM_DOMAIN }}
5755
run: printf '%s\n' "$PAGES_CUSTOM_DOMAIN" > out/CNAME
5856

5957
- name: Upload Pages artifact

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Thymos turns model output into typed, policy-checked, ledgered execution.<br />
1212
One runtime. Many surfaces. Real tools. Replayable history.
1313

1414
<p>
15-
<a href="https://gryszzz.github.io/OpenThymos/"><strong>Website</strong></a>
15+
<a href="https://thymos.ai/"><strong>Website</strong></a>
1616
·
1717
<a href="docs/getting-started.md"><strong>Get Started</strong></a>
1818
·
@@ -227,13 +227,12 @@ cargo test --workspace
227227

228228
The Pages workflow supports both deployment styles:
229229

230-
- Default repo site: `https://gryszzz.github.io/OpenThymos/`
231-
- Custom root domain: set the repository variable `PAGES_CUSTOM_DOMAIN` to the hostname, for example `thymos.example.com`
230+
- Production site: `https://thymos.ai/`
231+
- Override domain: set the repository variable `PAGES_CUSTOM_DOMAIN` to a different hostname
232232

233-
When `PAGES_CUSTOM_DOMAIN` is set, the build removes the `/OpenThymos` base
234-
path and writes `out/CNAME` into the Pages artifact. Optionally set
235-
`NEXT_PUBLIC_SITE_URL` to the full canonical URL, such as
236-
`https://thymos.example.com`.
233+
The Pages workflow builds for the custom-domain root by default and writes
234+
`out/CNAME` into the Pages artifact. Optionally set `NEXT_PUBLIC_SITE_URL` to a
235+
different full canonical URL if the production domain changes.
237236

238237
DNS still has to be configured at the domain provider. For an apex domain use
239238
GitHub Pages `A`/`AAAA` records; for a subdomain use a `CNAME` record pointing

docs/CNAME

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
thymos.ai
1+
thymos.ai

docs/_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ description: >-
55
terminal, and web surfaces. It executes tasks through Intent, Proposal,
66
Execution, and Result with real tools, signed authority, and a live
77
observable execution session.
8-
url: "https://gryszzz.github.io"
9-
baseurl: "/OpenThymos"
8+
url: "https://thymos.ai"
9+
baseurl: ""
1010
repo: "https://github.com/gryszzz/OpenThymos"
1111
author: "Exponet Labs"
1212

docs/getting-started.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ Preview the static Pages export locally:
6767
npm run pages:preview
6868
```
6969

70-
For a GitHub Pages custom domain, set the repository variable
71-
`PAGES_CUSTOM_DOMAIN` to your hostname. The workflow will export the site at
72-
the domain root and attach the required `CNAME` file to the Pages artifact.
70+
The GitHub Pages workflow exports for `https://thymos.ai/` by default and
71+
attaches the required `CNAME` file to the Pages artifact. Set the repository
72+
variable `PAGES_CUSTOM_DOMAIN` only if the production hostname changes.
7373

7474
Use this when you want:
7575

public/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
thymos.ai

src/lib/site.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const defaultSiteUrl = "https://thymos.ai";
2+
13
function normalizeBasePath(value: string | undefined): string {
24
const trimmed = value?.trim() ?? "";
35

@@ -20,7 +22,7 @@ function normalizeSiteUrl(value: string | undefined): string {
2022
return `https://${customDomain.replace(/^https?:\/\//, "")}`;
2123
}
2224

23-
return "https://gryszzz.github.io/OpenThymos";
25+
return defaultSiteUrl;
2426
}
2527

2628
const basePath = normalizeBasePath(process.env.NEXT_PUBLIC_BASE_PATH);
@@ -33,7 +35,7 @@ export const siteConfig = {
3335
subheadline:
3436
"OpenThymos turns model output into typed intents, checks them against signed authority, executes approved tools, and records every outcome in a replayable ledger.",
3537
basePath,
36-
siteUrl: normalizeSiteUrl(process.env.NEXT_PUBLIC_SITE_URL),
38+
siteUrl: normalizeSiteUrl(process.env.NEXT_PUBLIC_SITE_URL || defaultSiteUrl),
3739
supportEmail: "team@thymos.ai",
3840
githubUrl,
3941
docsUrl: `${githubUrl}/tree/main/docs`,

0 commit comments

Comments
 (0)