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
This commit is contained in:
1 parent
3c510ba92e
commit
e739c7cf8c
3 files changed
+5
-3
No files matched your search
@@ -58,7 +58,6 @@ from the library — not something an embedding page needs to bring along.
|
||||
│ ├── toc.css # Auto-generated table of contents
|
||||
│ └── author-profile.css # Author profile card (avatar, bio, social links)
|
||||
├── js/
|
||||
│ ├── marked.min.js # marked.js (local copy, loaded as a global)
|
||||
│ ├── config.js # BASE_URL, MARKED_URL (all via import.meta.url)
|
||||
│ ├── frontmatter.js # parseFrontmatter() — pure YAML-front parser
|
||||
│ ├── templates.js # loadTemplates(), templates cache
|
||||
@@ -68,6 +67,8 @@ from the library — not something an embedding page needs to bring along.
|
||||
│ ├── i18n.js # t(), loadStrings(), getLocale() — UI string lookup
|
||||
│ ├── views.js # loadArticleList, loadArticle, loadAuthorView, loadCategoryView, loadSearch
|
||||
│ └── router.js # Hash router and app entry point
|
||||
├── vendor/
|
||||
│ └── marked.min.js # marked.js (local copy, loaded as a global) — the only 3rd-party code
|
||||
├── strings/
|
||||
│ ├── en.json # UI strings (default/fallback locale) — see "Translations" below
|
||||
│ ├── cs.json # Czech translation
|
||||
|
||||
+3
-2
@@ -5,5 +5,6 @@
|
||||
// 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 (bundled alongside this file)
|
||||
export const MARKED_URL = new URL('marked.min.js', 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;
|
||||
File renamed without changes.
Reference in new issue
Block a user