8000 GitHub - EvotecIT/CDNHFX · GitHub
[go: up one dir, main page]

Skip to content
EvotecITPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

CDNHFX - HtmlForgeX CDN Assets

CDNHFX hosts the Scripts/Styles/Images/Fonts used by HtmlForgeX. It is a mirror repository that is published to multiple CDNs so HtmlForgeX can serve assets reliably worldwide.

CDN endpoints

Versioning model

  • Latest (unversioned): /Scripts, /Styles, /Images, /Fonts
  • Versioned: /v/<VERSION>/Scripts, /v/<VERSION>/Styles, /v/<VERSION>/Images, /v/<VERSION>/Fonts

HtmlForgeX defaults to versioned URLs using the HfxVersion baked into the library.

Examples

Versioned:

Latest:

jsDelivr:

Sync model

  • Assets are synced from the HtmlForgeX repository (HtmlForgeX/Resources/**).
  • GitHub Actions copies assets to both the latest (root) and versioned (/v/<VERSION>) paths.
  • Manual export uses Build/ExportCdn.ps1 from the HtmlForgeX repo when needed.

Static origin build

The root pipeline.json stages the public CDN files into _site through PowerForge.Web. The build requires PowerShell 7 (pwsh).

powerforge-web pipeline --config ./pipeline.json --mode ci

The host-initiated powerforge-site-pull-deploy lane builds this pipeline and packages _site for promotion. HtmlForgeX releases continue to supply the assets. Staging preserves every latest, versioned, and preview path and copies file bytes unchanged. Only Fonts, Images, Scripts, Styles, v, preview, index.html, and .nojekyll enter the artifact.

For CI artifact staging or local qualification, select a fresh output directory.

./Build/Stage-CdnSite.ps1 -OutputPath ../cdnhfx-artifact

The destination must be absent or empty. Linked paths and source-overlapping destinations other than _site are rejected. A failed build requires a fresh destination before retrying.

Why this repo exists

Some HtmlForgeX assets are large, customized, or not hosted elsewhere. CDNHFX keeps a single source of truth and provides consistent URLs for HtmlForgeX.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages

0