视觉画布设计
canvas-design
基于设计原则创作静态视觉作品,用于海报与品牌图形。
render-puzzle-docs【文档与办公】Render the jigsawR Quarto documentation site for GitHub Pages. Supports fresh renders (clearing cache), cached renders (faster), and single-page renders. Uses the bundled render script or direct quarto.exe invocation from WSL. Use when building the full site after content changes, rendering a single page during iterative editing, preparing documentat…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Render the jigsawR Quarto documentation site.
fresh, cached, or single)| Mode | Command | Duration | Use when |
|---|---|---|---|
| Fresh | bash inst/scripts/render_quarto.sh | ~5-7 min | Content changed, cache stale |
| Cached | bash inst/scripts/render_quarto.sh --cached | ~1-2 min | Minor edits, cache valid |
| Single | Direct quarto.exe | ~30s | Iterating on one page |
Expected: Render mode selected based on the current situation: fresh for content changes or stale cache, cached for minor edits, single for iterating on one page.
On failure: If unsure whether the cache is stale, default to fresh render. It takes longer but guarantees correct output.
Fresh render (clears _freeze and _site, re-executes all R code):
cd /mnt/d/dev/p/jigsawR && bash inst/scripts/render_quarto.sh
Cached render (uses existing _freeze files):
cd /mnt/d/dev/p/jigsawR && bash inst/scripts/render_quarto.sh --cached
Single page (render one .qmd file directly):
QUARTO_EXE="/mnt/c/Program Files/RStudio/resources/app/bin/quarto/bin/quarto.exe"
"$QUARTO_EXE" render quarto/getting-started.qmd
Expected: Render completes without errors. Output in quarto/_site/.
On failure:
#| label: markers)RSTUDIO_PANDOC env varrm -rf quarto/_freeze quarto/_sitels -la /mnt/d/dev/p/jigsawR/quarto/_site/index.html
Confirm the site structure:
quarto/_site/index.html existsExpected: index.html exists and is non-empty. Navigation links resolve, and images/SVGs render correctly in the browser.
On failure: If index.html is missing, the render likely failed silently. Re-run with verbose output and check for R code errors in .qmd chunks. If only some pages are missing, verify those .qmd files are listed in _quarto.yml.
Open in Windows browser:
cmd.exe /c start "" "D:\\dev\\p\\jigsawR\\quarto\\_site\\index.html"
Expected: The documentation site opens in the Windows default browser for visual inspection.
On failure: If the cmd.exe /c start command fails from WSL, try explorer.exe "D:\\dev\\p\\jigsawR\\quarto\\_site\\index.html" instead. Alternatively, navigate to the file manually in the browser.
quarto/_site/index.html exists and is non-empty#| label: on code chunks for clean output_freeze filesRSTUDIO_PANDOC is set in .Renviron#| label: for clean renderinggenerate-puzzle — generate puzzle output referenced in documentationrun-puzzle-tests — ensure code examples in docs are correctcreate-quarto-report — general Quarto document creation