Skip to content

Document previously undocumented features - #132

Open
yihui wants to merge 1 commit into
mainfrom
docs-complete-undocumented
Open

Document previously undocumented features#132
yihui wants to merge 1 commit into
mainfrom
docs-complete-undocumented

Conversation

@yihui

@yihui yihui commented Jul 8, 2026

Copy link
Copy Markdown
Owner

Summary

Read the full package source (R/*.R) and cross-checked it against the book chapters under docs/. This PR fills the gaps — features that existed in code but had no documentation in the book.

Changes

  • docs/02-fuse.Rmd — new "Helper functions" section for get_context(), fuse_env(), fuse_exit(), raw_text(), timing_data(); exec engine ext chunk option.
  • docs/04-mark.Rmdcross_refs option; plain-title and generator HTML meta variables; full YAML format fields (template, keep_md, keep_tex, latex_engine, citation_package).
  • docs/08-site.Rmd — top-level type field; book time field; numeric rebuild value; new "Default assets and layout" section (auto nav menu, copyright footer, default css/js, css2/js2, absolute-path rewriting).
  • docs/07-editor.Rmd — new-file wizard (feature checkboxes, filename datalist, auto .Rmd, seeded YAML) and rendering a whole project.
  • examples/027-raw-text.{Rmd,md} — new rendered example demonstrating raw_text(), wired into the docs via .ex(27).

Verification

fuse_book() builds to HTML with no new errors; example 027 renders correctly; the additions introduce zero new unresolved cross-references.

🤖 Generated with Claude Code

Complete documentation for features that existed in the source code but were
missing from the book chapters under docs/:

- 02-fuse: add a "Helper functions" section covering get_context(), fuse_env(),
  fuse_exit(), raw_text(), and timing_data(); document the exec engine's `ext`
  chunk option.
- 04-mark: document the cross_refs option, the plain-title and generator HTML
  meta variables, and the full set of format fields (template, keep_md,
  keep_tex, latex_engine, citation_package).
- 08-site: document the top-level `type` field, the book `time` field, the
  numeric `rebuild` value, and a new "Default assets and layout" section (auto
  nav menu, copyright footer, default css/js, css2/js2, absolute-path
  rewriting).
- 07-editor: document the new-file wizard (feature checkboxes, filename
  datalist, auto .Rmd extension, seeded YAML) and rendering a whole project.
- examples: add 027-raw-text to demonstrate raw_text().

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant