Skip to content

Commit d2d351d

Browse files
committed
Update preview architecture doc with frontmatter and review fix
Add YAML frontmatter (main_commit, analyzed_date, key_files) per llm-docs maintenance rules. Update cleanupFileInformationCache description to reflect delegation to invalidateForFile.
1 parent 26d5d36 commit d2d351d

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

llm-docs/preview-architecture.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
---
2+
main_commit: 94ebb7f79
3+
analyzed_date: 2026-03-31
4+
key_files:
5+
- src/command/preview/cmd.ts
6+
- src/command/preview/preview.ts
7+
- src/project/serve/serve.ts
8+
- src/project/serve/watch.ts
9+
- src/project/project-shared.ts
10+
- src/execute/jupyter/jupyter.ts
11+
- src/execute/engine.ts
12+
---
13+
114
# Preview Architecture
215

316
How `quarto preview` works, from CLI entry through rendering and file watching.
@@ -113,7 +126,7 @@ Without step 1, the Jupyter engine's `target()` function sees the old file on di
113126

114127
### cleanupFileInformationCache()
115128

116-
Called at project cleanup (preview exit). Iterates ALL cache entries and removes transient files. This is the final cleanup`invalidateForFile()` handles per-render cleanup.
129+
Called at project cleanup (preview exit). Delegates to `invalidateForFile()` for each cache entry, removing all transient files and clearing the cache. This is the final cleanup`invalidateForFile()` handles per-render cleanup for individual files.
117130

118131
## Transient Notebook Lifecycle (.quarto_ipynb)
119132

0 commit comments

Comments
 (0)