Static GitHub Pages site for biomedical AI paper notes. https://coco2sun.github.io/medical-ai-paper-notes/
- Put the new standalone HTML note in
incoming/. - Add one item to
notes.config.json. - Run:
node scripts/build-notes.mjsThe build script copies the HTML into notes/<slug>/index.html, rewrites local assets/... references to ../../assets/..., and regenerates assets/notes-data.js for the homepage.
incoming/ is a local-only staging area and is ignored by Git except for incoming/.gitkeep. After running the build, commit the generated notes/<slug>/... files, notes.config.json, and assets/notes-data.js; do not commit the original incoming HTML or attachment folder.
{
"title": "New paper note title",
"type": "论文精读",
"date": "2026-06-02",
"slug": "new-paper-note",
"source": "incoming/New_Paper_Note.html",
"assetsDir": "incoming/New_Paper_Note_files",
"summary": "One sentence summary.",
"tags": ["medical imaging", "foundation model", "multimodal"],
"visible": true,
"accent": false
}slugmust use lowercase letters, numbers, and hyphens.sourcecan point toincoming/...for a new note or an existingnotes/<slug>/index.html.assetsDiris optional. Use it when the HTML has an attachment folder, such asincoming/New_Paper_Note_files.visibleis optional and defaults totrue. Set it tofalseto hide a note from the homepage while keepingnotes/<slug>/index.htmldirectly accessible.accentcontrols the homepage card button color in the latest-notes area:trueuses the wine accent button,falseuses the default blue button. It does not affect the all-notes list.- The homepage shows the latest 6 notes and all notes based on
notes.config.json.
When assetsDir is set, the build script copies that folder into notes/<slug>/assets/ and rewrites references like src="New_Paper_Note_files/figure1.png" to src="assets/figure1.png".
If source or assetsDir no longer exists because incoming/ was not synced, the build still works as long as the generated notes/<slug>/index.html and any generated notes/<slug>/assets/ files are already present.
scripts/build-notes.mjsautomatically injects a floating← 首页link into every generated article page.- The link is inserted into
notes/<slug>/index.htmlduring build and points to../../. - Original
incoming/HTML files do not need to include this link. - The injected block is wrapped with
sun-blog-home-linkmarkers, so repeated builds replace the old block instead of duplicating it.
scripts/build-notes.mjsreadsnotes.config.json, sorts notes bydatedescending, and writes the result toassets/notes-data.js.index.htmlloadsassets/notes-data.js, sorts the notes bydatedescending again, and renders:最新笔记: the first 6 notes from the sorted list.全部笔记: every note from the sorted list.
- If multiple notes share the same date, their relative order follows their order in
notes.config.json.
arxiv-paper-html-notes: generates polished Chinese static HTML notes from one or more arXiv papers. https://github.com/coco2sun/arxiv-paper-html-cn-notes-skill