feat(site): add Longshot button and website build integration #1
Loading…
Reference in a new issue
No description provided.
Delete branch "bibiburl/Site:feat/longshot-link"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The MagicBean homepage has no direct route into Longshot's player website. Add a Longshot button alongside Git and Discord, using the supplied hook icon, and package the built Longshot website at
/Longshot/so that button has a destination.Changes
public/index.html: Longshot button and matching icon styling;public/longshot.pngcopies the existing supplied artwork unchanged.scripts/prepare-longshot.mjs: copy a supplied Longshot build into generated, ignoredpublic/Longshot/. Validate required pages, base path and search output; reject symlinks and overlapping source/target paths before replacing output.LONGSHOT_DIST. README documents building the separate Longshot repository and preparing the combined site. Maintained documentation is not duplicated in this repository.Local preview
First build
bibiburl/Longshot, branchdocs/longshot-website(companion PR targetingMagicBeanDev/Longshot):Then from this repository:
Open the local URL Wrangler prints, inspect the Longshot button, and follow it through to the site, manual, team and About pages. There is no hosted PR preview.
Validation
/Longshot/and its destination exists.LONGSHOT_DISTfails without deleting previously prepared output.Review and deployment notes
Ready for review at the author's request. Review the homepage button's placement, icon and spacing, then test navigation on desktop and phone before approval. The validation limitations above remain outstanding.
The companion Longshot website source must be available and built before deploying this PR.
npm run deploynow intentionally requires that build. For production, set Longshot's source edit-link variables to the intended repository/branch. Review the new build dependency before merging; reverting this commit restores the previous homepage/deployment behavior.Base:
MagicBeanDev/Sitemain @fd63cdd. Head:bibiburl/Sitefeat/longshot-link @dd4d257. The validation above records the earlier tested implementation; newer commits have not been revalidated in this status-only update. Changes were prepared with OpenAI Codex assistance. No pushes target Hookshot.WIP: feat(site): add Longshot button and website build integrationto feat(site): add Longshot button and website build integrationPreview: https://pr-1-magicbean-site.hckr-5e0.workers.dev
This commit (
eed2f54552) on its own: https://01954fd2-magicbean-site.hckr-5e0.workers.devWe will put this directly in Longshot repo at longshot.magicbean.dev, so feel free to change this PR into just a link to that
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.