mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-07 10:08:50 -05:00
Brings the TinyTorch lab guide's Quarto project in line with
book/quarto/, the only other in-tree Quarto publication that builds
both web and PDF outputs from a single source. The previous name had
three redundancies:
- already under tinytorch/, so "site-" prefix wasn't disambiguating
- also produces the PDF lab guide, so "site-" was misleading
- the top-level site/ dir made "site-quarto" read as "the site's
quarto config" rather than "the tinytorch site, in quarto"
After this rename the convention is straightforward:
book/quarto/ -> the textbook (web + PDF)
tinytorch/quarto/ -> the TinyTorch lab guide (web + PDF)
mlsysim/docs/ -> mlsysim API reference (kept as docs/, since it
really is API reference, not a publication)
Touches 7 GitHub workflows, both .gitignore files, the rename target's
own self-references (Makefile, _quarto.yml configs, STYLE.md,
measure-pdf-images.py), and 6 copies of subscribe-modal.js plus a few
shared scripts/configs whose comments documented the old path.
Verified: rebuilt pdf/TinyTorch-Guide.pdf (2.1M) cleanly from the new
location with 'make pdf' from tinytorch/quarto/.
21 lines
849 B
JavaScript
21 lines
849 B
JavaScript
// Configuration
|
|
export const SUPABASE_URL = "https://zrvmjrxhokwwmjacyhpq.supabase.co/functions/v1";
|
|
export const SUPABASE_PROJECT_URL = "https://zrvmjrxhokwwmjacyhpq.supabase.co";
|
|
export const SUPABASE_ANON_KEY = "sb_publishable_AP2UzNWC3T1GQGjtuTr_PQ_9q6l7AC0";
|
|
export const NETLIFY_URL = "https://tinytorch.netlify.app";
|
|
|
|
// URL Base Path Logic for Community Site Hosting
|
|
export function getBasePath() {
|
|
let basePath = '';
|
|
const hostname = window.location.hostname;
|
|
|
|
if (hostname === 'mlsysbook.ai') {
|
|
basePath = '/tinytorch/community';
|
|
} else if (hostname === 'tinytorch.ai' || (hostname === 'localhost' && window.location.port === '8000')) {
|
|
basePath = '/community';
|
|
} else if (hostname === 'harvard-edge.github.io') {
|
|
basePath = '/cs249r_book_dev/tinytorch/community';
|
|
}
|
|
return basePath;
|
|
}
|