Files
cmkiss/js/config.js
T
biosiasandClaude Sonnet 5 e739c7cf8c Move marked.min.js into its own vendor/ folder (AI)
Third-party code is now kept separate from the app's own js/ modules.
Updated js/config.js's MARKED_URL to the new sibling-directory path
(../vendor/marked.min.js) and the README's project structure diagram
accordingly.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AXSVPS3UmmASiiprPfcnUd
2026-09-12 15:28:35 +02:00

11 lines
595 B
JavaScript

// All paths are derived from this module's own location via import.meta.url,
// so they resolve correctly regardless of where the embedding HTML page lives.
// Base URL of the repo root — articles/, strings/, and templates/ all live
// here, one level up from this file (e.g. https://example.com/).
export const BASE_URL = new URL('../', import.meta.url).href;
// Path to the marked.js vendor script — lives in vendor/, a sibling of this
// file's own js/ directory, not alongside the app's own modules.
export const MARKED_URL = new URL('../vendor/marked.min.js', import.meta.url).href;