Skip to content

Shorten install one-liner to lyh.maxlv.net - #44

Merged
madeye merged 1 commit into
mainfrom
docs/short-install-url
Jul 9, 2026
Merged

Shorten install one-liner to lyh.maxlv.net#44
madeye merged 1 commit into
mainfrom
docs/short-install-url

Conversation

@madeye

@madeye madeye commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Summary

Shortens the install/uninstall one-liners to https://lyh.maxlv.net/install.sh (and /uninstall.sh) and hosts them by moving the VitePress docs to the lyh.maxlv.net GitHub Pages custom domain.

curl -fsSL https://lyh.maxlv.net/install.sh | bash
curl -fsSL https://lyh.maxlv.net/uninstall.sh | bash
  • README + docs guide use the short URLs.
  • VitePress base: /LianYaoHu// (custom-domain root).
  • website/public/CNAME = lyh.maxlv.net so GitHub Pages serves the site at the domain.
  • npm run docs:prepare copies scripts/{install,uninstall}.sh into website/public/, so Pages serves them at lyh.maxlv.net/install.sh — the copies are gitignored, scripts/ stays the single source of truth.
  • deploy-docs.yml also triggers on those two scripts so edits redeploy.
  • README "Documentation" link → https://lyh.maxlv.net/.
  • uninstall.sh's internal fetch of uninstall-helper.sh stays on raw GitHub, so helper teardown works regardless of the docs domain.

Required DNS (one record)

lyh.maxlv.net  CNAME  madeye.github.io

Until that resolves, the short URL 404s; the raw-GitHub scripts still work.

Testing

  • npm run docs:build: CNAME, install.sh, uninstall.sh land at the dist root; served scripts are byte-identical to scripts/; built HTML references assets at / (base root).
  • bash -n on both scripts; generated public/ scripts confirmed gitignored (only CNAME/.gitignore tracked).

🤖 Generated with Claude Code

The install/uninstall one-liners now use https://lyh.maxlv.net/install.sh
and .../uninstall.sh instead of the long raw.githubusercontent path, in the
README and docs guide.

To host them, the VitePress docs move to the lyh.maxlv.net custom domain:
- base changed from /LianYaoHu/ to /;
- website/public/CNAME pins the domain for GitHub Pages;
- npm run docs:prepare copies scripts/{install,uninstall}.sh into
  website/public so Pages serves them at the domain root (the copies are
  gitignored — scripts/ stays the single source of truth);
- deploy-docs runs on changes to those two scripts so edits redeploy;
- the README documentation link points at https://lyh.maxlv.net/.

uninstall.sh still fetches uninstall-helper.sh from raw GitHub for the helper
teardown, so that path stays reliable regardless of the docs domain.

Requires one DNS record: CNAME lyh.maxlv.net -> madeye.github.io.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@madeye
madeye merged commit 8b326cd into main Jul 9, 2026
2 checks passed
@madeye
madeye deleted the docs/short-install-url branch July 9, 2026 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant