Shorten install one-liner to lyh.maxlv.net - #44
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 thelyh.maxlv.netGitHub Pages custom domain.base:/LianYaoHu/→/(custom-domain root).website/public/CNAME=lyh.maxlv.netso GitHub Pages serves the site at the domain.npm run docs:preparecopiesscripts/{install,uninstall}.shintowebsite/public/, so Pages serves them atlyh.maxlv.net/install.sh— the copies are gitignored,scripts/stays the single source of truth.deploy-docs.ymlalso triggers on those two scripts so edits redeploy.https://lyh.maxlv.net/.uninstall.sh's internal fetch ofuninstall-helper.shstays on raw GitHub, so helper teardown works regardless of the docs domain.Required DNS (one record)
Until that resolves, the short URL 404s; the raw-GitHub scripts still work.
Testing
npm run docs:build: CNAME,install.sh,uninstall.shland at the dist root; served scripts are byte-identical toscripts/; built HTML references assets at/(base root).bash -non both scripts; generatedpublic/scripts confirmed gitignored (onlyCNAME/.gitignoretracked).🤖 Generated with Claude Code