Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

artifacts

Static hosting for published HTML artifacts, served by GitHub Pages from the main branch root at https://mphinance.github.io/artifacts/.

Layout

/index.html          auto-generated index of all artifacts, newest first
/a/<slug>/index.html one directory per published artifact
/publish.sh          publish an HTML file and push it live
/_build_index.py     regenerates /index.html from the /a/ directory
/.nojekyll           tell Pages to serve files verbatim

Publish

./publish.sh path/to/file.html [slug]
  • With no slug, one is derived from the filename (lowercased, hyphenated, extension stripped).
  • The file is copied to a/<slug>/index.html, the index is regenerated, and the change is committed and pushed to main.
  • Re-publishing the same slug overwrites it — same URL, new content.
  • Prints the public URL: https://mphinance.github.io/artifacts/a/<slug>/

Rebuild the index only

python3 _build_index.py

Scans a/*/index.html, reads each <title> (falling back to the slug), stamps each with its last git commit date, and writes a minimal dark-themed index.html.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages