Skip to content

Asset Handling

Kenneth J. Yang edited this page Jun 11, 2022 · 13 revisions

Assets Handling

In General

  • Text content are stored in the src/content folder
  • Binary content are stored in my Google Drive
    • Google Drive can create public URLs for files, acting like a CDN

What it goes where?

src/content

  • Artifact text and info (content.tsv)
  • Artifact metadata (metas/{name}.tsv)

Google Drive

  • 3D models as GLB files
  • Fonts (including JSON conversions)
  • Website Favicon (favicon.svg)
  • Artifact images
  • Artifact thumbnails

Google Drive organization (does not affect code)

  • Folders called {name} hold any assets, arbitrarily organized
  • All files are then given a publicly accessible shared link

metas/{name}.tsv files

  • Holds image dimensions, name, and description
  • PhotoSwipe (image gallery extension used) requires image dimensions
  • The file and web optimized images are generated using a macOS Shortcut
Clone this wiki locally