From 15afc1287ecbdc030e8d7c74df75b0a4cef471a8 Mon Sep 17 00:00:00 2001 From: stephenleo Date: Sat, 28 Mar 2026 18:18:47 +0800 Subject: [PATCH 1/2] feat(docs): update PowerShell installer one-liner to use cship.dev URL Replace raw GitHub URLs for install.ps1 with https://cship.dev/install.ps1 in README.md and docs/index.md. Add a docs.yml build step to copy install.ps1 and install.sh from the repo root into docs/public/ so both scripts are served from the branded cship.dev domain. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/docs.yml | 5 +++++ README.md | 4 ++-- docs/index.md | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 99e0a2e..8d237a4 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -38,6 +38,11 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v4 + - name: Copy installer scripts to public + run: | + cp install.ps1 docs/public/install.ps1 + cp install.sh docs/public/install.sh + - name: Build with VitePress run: npm run docs:build working-directory: docs diff --git a/README.md b/README.md index 658a5f6..d7a6d40 100644 --- a/README.md +++ b/README.md @@ -34,12 +34,12 @@ Auto-detects your OS and architecture (macOS arm64/x86_64, Linux x86_64/aarch64) Run this one-liner in PowerShell (5.1 or later): ```powershell -irm https://raw.githubusercontent.com/stephenleo/cship/main/install.ps1 | iex +irm https://cship.dev/install.ps1 | iex ``` Installs to `%LOCALAPPDATA%\Programs\cship\cship.exe`, writes config to `%USERPROFILE%\.config\cship.toml`, and registers the statusline in `%APPDATA%\Claude\settings.json`. -> You can inspect the script before running: [install.ps1](https://raw.githubusercontent.com/stephenleo/cship/main/install.ps1) +> You can inspect the script before running: [install.ps1](https://cship.dev/install.ps1) ### 📦 Method 2: cargo install diff --git a/docs/index.md b/docs/index.md index 2b127a8..1e15018 100644 --- a/docs/index.md +++ b/docs/index.md @@ -51,12 +51,12 @@ Auto-detects your OS and architecture (macOS arm64/x86_64, Linux x86_64/aarch64) Run this one-liner in PowerShell (5.1 or later): ```powershell -irm https://raw.githubusercontent.com/stephenleo/cship/main/install.ps1 | iex +irm https://cship.dev/install.ps1 | iex ``` Installs to `%LOCALAPPDATA%\Programs\cship\cship.exe`, writes config to `%USERPROFILE%\.config\cship.toml`, and registers the statusline in `%APPDATA%\Claude\settings.json`. -> You can inspect the script before running: [install.ps1](https://raw.githubusercontent.com/stephenleo/cship/main/install.ps1) +> You can inspect the script before running: [install.ps1](https://cship.dev/install.ps1) ### Cargo Install {#install-cargo} From 0fd90870c94008e94e30dcffba326c9b90cac31a Mon Sep 17 00:00:00 2001 From: stephenleo Date: Sat, 28 Mar 2026 18:22:22 +0800 Subject: [PATCH 2/2] fix(docs): add public/install.ps1 to docs .gitignore The docs workflow copies install.ps1 into docs/public/ at build time. Without this gitignore entry, a local build leaves an untracked file that could be accidentally committed. Co-Authored-By: Claude Sonnet 4.6 --- docs/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/.gitignore b/docs/.gitignore index 9eefe5c..2ab3fd6 100644 --- a/docs/.gitignore +++ b/docs/.gitignore @@ -2,4 +2,5 @@ node_modules .vitepress/dist .vitepress/cache public/install.sh +public/install.ps1 public/examples