Skip to content

Skip .qmd generation for .Rd files that didn't change.#360

Open
gustavdelius wants to merge 1 commit into
etiennebacher:mainfrom
gustavdelius:skip_unchanged_Rd
Open

Skip .qmd generation for .Rd files that didn't change.#360
gustavdelius wants to merge 1 commit into
etiennebacher:mainfrom
gustavdelius:skip_unchanged_Rd

Conversation

@gustavdelius
Copy link
Copy Markdown

When I render the documentation website with quarto with altdoc::render_docs(freeze = TRUE) it re-processes all man pages even though none of them have changed. The mechanism for skipping the generation of new .qmd files for man pages whose .Rd file had not changed is not working. There are two issues:

  1. Wrong output file extension in .is_frozen() call
  2. render_docs() deletes _quarto/man/ before the freeze check can run

This pull request fixes both these issues.

Copy link
Copy Markdown
Owner

@etiennebacher etiennebacher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, and sorry for the delay to review this. I'll try to test this locally by the end of the week but in the meantime can you address the comment?

Also, you need to format this with Air and to add an item in NEWS.md.

Comment thread R/render_docs.R
Comment on lines +103 to +106
rd_stems <- fs::path_ext_remove(basename(
list.files(fs::path_join(c(path, "man")),
pattern = "\\.Rd$"
)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you extract an intermediate object from this? It's quite hard to read as-is.

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.

2 participants