Skip to content

terawan014/angeloveart

Repository files navigation

Angel Yu Portfolio

Static GitHub Pages version of https://angeloveart.cargo.site/.

What is included

  • index.html contains the exported Cargo page shell, preloaded page data, and styles.
  • 404.html mirrors index.html so GitHub Pages can fall back to the same app shell for direct links.
  • assets/ contains localized Cargo runtime files, stylesheets, fonts, icons, and media assets used by the site.
  • scripts/localize-assets.mjs can rebuild assets/ from the public Cargo site export.
  • scripts/harden-offline.mjs removes Cargo-hosted runtime metadata and forces generated Cargo media URLs back to local files.
  • scripts/offline-check.mjs opens every site route while blocking non-localhost requests.
  • .nojekyll disables Jekyll processing on GitHub Pages.

Offline Independence Check

Start the preview server first:

npm run preview

Then, in another terminal, run:

npm run offline-check

The check opens every known route from the exported Cargo data and fails if the page tries to load anything outside localhost, including Cargo, Freight, Google Fonts, or other CDNs.

Local Preview

Run:

npm run preview

Then open the URL printed in the terminal. It defaults to http://localhost:4173/, and automatically tries the next port if that one is already in use.

Rebuild Local Assets

Run:

npm run localize

This downloads the currently referenced Cargo/Freight/CDN resources again, rewrites local paths, and reapplies the offline hardening step.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors