Skip to content

Commit b51accc

Browse files
chore: migrate to unified arcanist.sh domain on Cloudflare Pages
Route all template URLs through get_url() for subpath compatibility, convert markdown links to Zola @/ internal links, update base_url to arcanist.sh/hx, update install script URLs, replace GitHub Pages deploy workflow with CF Pages deploy hook trigger, and remove CNAME.
1 parent dedde98 commit b51accc

12 files changed

Lines changed: 40 additions & 98 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,15 @@
1-
name: Deploy to GitHub Pages
1+
name: Trigger Cloudflare Pages Rebuild
22

33
on:
44
push:
55
branches:
66
- main
7-
repository_dispatch:
8-
types: [docs-updated]
97
workflow_dispatch:
108

11-
permissions:
12-
contents: read
13-
pages: write
14-
id-token: write
15-
16-
concurrency:
17-
group: "pages"
18-
cancel-in-progress: false
19-
209
jobs:
21-
build:
22-
runs-on: ubuntu-latest
23-
steps:
24-
- name: Checkout
25-
uses: actions/checkout@v4
26-
27-
- name: Setup mise
28-
uses: jdx/mise-action@v2
29-
with:
30-
experimental: true
31-
32-
- name: Install tools via mise
33-
run: mise install
34-
35-
- name: Build the site
36-
run: mise run build
37-
38-
- name: Clone docs repo
39-
run: git clone --depth 1 --recurse-submodules https://github.com/arcanist-sh/hx.arcanist.sh-docs.git /tmp/docs
40-
41-
- name: Build docs
42-
run: |
43-
cd /tmp/docs
44-
mise install
45-
mise run build
46-
47-
- name: Copy docs to public
48-
run: |
49-
mkdir -p ./public/docs
50-
# Copy docs landing page (from content/_index.md)
51-
cp /tmp/docs/public/index.html ./public/docs/
52-
# Copy docs subsections directly, flattening the nested docs/docs structure
53-
cp -r /tmp/docs/public/docs/* ./public/docs/
54-
55-
- name: Setup Pages
56-
uses: actions/configure-pages@v4
57-
58-
- name: Upload artifact
59-
uses: actions/upload-pages-artifact@v3
60-
with:
61-
path: ./public
62-
63-
deploy:
64-
environment:
65-
name: github-pages
66-
url: ${{ steps.deployment.outputs.page_url }}
10+
trigger:
6711
runs-on: ubuntu-latest
68-
needs: build
6912
steps:
70-
- name: Deploy to GitHub Pages
71-
id: deployment
72-
uses: actions/deploy-pages@v4
13+
- name: Trigger CF Pages rebuild (www.arcanist.sh)
14+
if: github.ref == 'refs/heads/main'
15+
run: curl -X POST "${{ secrets.CF_DEPLOY_HOOK_URL }}"

config.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Zola configuration for hx website
22
# https://www.getzola.org/documentation/getting-started/configuration/
33

4-
base_url = "https://hx.arcanist.sh"
4+
base_url = "https://arcanist.sh/hx"
55
title = "hx"
66
description = "An extremely fast Haskell package and project manager, written in Rust."
77
default_language = "en"
@@ -45,7 +45,7 @@ mode = "product"
4545
author = "arcanist.sh"
4646
author_type = "Organization"
4747
github_repo = "https://github.com/arcanist-sh/hx"
48-
docs_url = "https://hx.arcanist.sh/docs/"
48+
docs_url = "https://docs.arcanist.sh/hx/"
4949

5050
# SEO metadata
5151
keywords = "haskell, package manager, project manager, rust, cabal, stack, fast, hx"
@@ -80,7 +80,7 @@ features_subtitle = "Everything you need to build Haskell projects. No more jugg
8080
[[extra.product.install_methods]]
8181
id = "script"
8282
label = "Script"
83-
command = "curl -fsSL https://hx.arcanist.sh/install.sh | sh"
83+
command = "curl -fsSL https://arcanist.sh/hx/install.sh | sh"
8484
icon = """<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2"/><path d="m10 8 4 4-4 4"/></svg>"""
8585
default = true
8686

content/blog/hx-0-6-0-zero-config-bhc.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,12 @@ Five commands. No configuration files to edit, no version matrices to look up, n
118118
hx self-update
119119

120120
# Or install fresh
121-
curl -fsSL https://hx.arcanist.sh/install.sh | sh
121+
curl -fsSL https://arcanist.sh/hx/install.sh | sh
122122
```
123123

124124
## Resources
125125

126-
- [BHC Platform Snapshots](/docs/features/bhc-platform) — Curated package set guide
127-
- [Compiler Backends](/docs/features/compiler-backends) — GHC vs BHC comparison
128-
- [hx toolchain install](/docs/commands/toolchain) — Toolchain management reference
129-
- [hx new](/docs/commands/new) — Project template reference
126+
- [BHC Platform Snapshots](@/docs/features/bhc-platform.md) — Curated package set guide
127+
- [Compiler Backends](@/docs/features/compiler-backends.md) — GHC vs BHC comparison
128+
- [hx toolchain install](@/docs/commands/toolchain.md) — Toolchain management reference
129+
- [hx new](@/docs/commands/new.md) — Project template reference

content/blog/using-the-bhc-compiler-backend.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ For general-purpose Haskell development, GHC remains the recommended choice.
250250

251251
## Resources
252252

253-
- [Compiler Backends](/docs/features/compiler-backends) — Full GHC vs BHC comparison
254-
- [BHC Platform](/docs/features/bhc-platform) — Curated snapshot guide
255-
- [hx bhc-platform](/docs/commands/bhc-platform) — CLI command reference
256-
- [hx new](/docs/commands/new) — Project templates
257-
- [hx.toml Reference](/docs/configuration/hx-toml) — Configuration details
253+
- [Compiler Backends](@/docs/features/compiler-backends.md) — Full GHC vs BHC comparison
254+
- [BHC Platform](@/docs/features/bhc-platform.md) — Curated snapshot guide
255+
- [hx bhc-platform](@/docs/commands/bhc-platform.md) — CLI command reference
256+
- [hx new](@/docs/commands/new.md) — Project templates
257+
- [hx.toml Reference](@/docs/configuration/hx-toml.md) — Configuration details

content/docs/_index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ Welcome to the hx documentation. hx is a fast, opinionated, batteries-included t
99

1010
## Quick Links
1111

12-
- [Installation](/docs/installation) - Get hx installed on your system
13-
- [Quick Start](/docs/quickstart) - Your first hx project
14-
- [CLI Reference](/docs/commands) - All available commands
15-
- [Configuration](/docs/configuration) - Customize hx with `hx.toml`
16-
- [Guides](/docs/guides) - Tutorials and workflow guides
12+
- [Installation](@/docs/installation.md) - Get hx installed on your system
13+
- [Quick Start](@/docs/quickstart.md) - Your first hx project
14+
- [CLI Reference](@/docs/commands/_index.md) - All available commands
15+
- [Configuration](@/docs/configuration/_index.md) - Customize hx with `hx.toml`
16+
- [Guides](@/docs/guides/_index.md) - Tutorials and workflow guides
1717

1818
## What is hx?
1919

content/features.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,4 +538,4 @@ hx build
538538
hx run
539539
```
540540

541-
See the [Documentation](/docs/) for complete guides and reference.
541+
See the [Documentation](@/docs/_index.md) for complete guides and reference.

content/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,5 +438,5 @@ Submit test improvements: [GitHub PRs](https://github.com/arcanist-sh/hx/pulls)
438438

439439
## Related Pages
440440

441-
- [Benchmarks](/benchmarks/) — Performance measurements
441+
- [Benchmarks](@/benchmarks.md) — Performance measurements
442442
- [Contributing](https://github.com/arcanist-sh/hx/blob/main/CONTRIBUTING.md) — How to contribute

static/CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

static/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# hx installer script
33
#
44
# Usage:
5-
# curl -fsSL https://hx.arcanist.sh/install.sh | sh
5+
# curl -fsSL https://arcanist.sh/hx/install.sh | sh
66
#
77
# Options (via environment variables):
88
# HX_VERSION - Specific version to install (default: latest)

themes/purple-haze/templates/landing.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ <h3 class="feature__title">{{ feature.title }}</h3>
151151
</div>
152152

153153
<div class="features__cta">
154-
<a href="/features/" class="btn btn--ghost">
154+
<a href="{{ get_url(path='features') | safe }}" class="btn btn--ghost">
155155
Explore all features
156156
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
157157
<path d="M5 12h14"/>
@@ -229,7 +229,7 @@ <h2 class="benchmarks__title">{{ config.extra.product.benchmarks.title | safe }}
229229
<div class="container">
230230
<h2 class="next-steps__title">Next Steps</h2>
231231
<div class="next-steps__grid">
232-
<a href="/docs/" class="next-steps__card">
232+
<a href="{{ get_url(path='docs') | safe }}" class="next-steps__card">
233233
<div class="next-steps__icon">
234234
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
235235
<path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20"/>
@@ -238,7 +238,7 @@ <h2 class="next-steps__title">Next Steps</h2>
238238
<h3 class="next-steps__card-title">Read the docs</h3>
239239
<p class="next-steps__card-desc">Learn all hx commands and configuration options</p>
240240
</a>
241-
<a href="/features/" class="next-steps__card">
241+
<a href="{{ get_url(path='features') | safe }}" class="next-steps__card">
242242
<div class="next-steps__icon">
243243
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
244244
<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/>
@@ -315,7 +315,7 @@ <h2 class="bhc-promo__title">
315315
</div>
316316
</div>
317317
<div class="bhc-promo__cta">
318-
<a href="https://bhc.arcanist.sh" target="_blank" rel="noopener" class="bhc-promo__btn">
318+
<a href="https://arcanist.sh/bhc" target="_blank" rel="noopener" class="bhc-promo__btn">
319319
Explore BHC
320320
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
321321
<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>
@@ -340,7 +340,7 @@ <h2 class="bhc-promo__title">
340340
<h4 class="landing-footer__title">{{ group.title }}</h4>
341341
<ul class="landing-footer__links">
342342
{% for link in group.links %}
343-
<li><a href="{{ link.url }}"{% if link.external %} target="_blank" rel="noopener"{% endif %}>{{ link.text }}</a></li>
343+
<li><a href="{% if link.url is starting_with(pat='http') or link.external %}{{ link.url }}{% else %}{{ get_url(path=link.url | trim_start_matches(pat='/')) | safe }}{% endif %}"{% if link.external %} target="_blank" rel="noopener"{% endif %}>{{ link.text }}</a></li>
344344
{% endfor %}
345345
</ul>
346346
</div>

0 commit comments

Comments
 (0)