Skip to content

docs: render preferred meteorology variables in bold - #4277

Merged
infotroph merged 3 commits into
PecanProject:developfrom
pranshup04:docs-preferred-meteorology-variables
Dec 4, 2026
Merged

infotroph merged 3 commits into
PecanProject:developfrom
pranshup04:docs-preferred-meteorology-variables

Conversation

@pranshup04

@pranshup04 pranshup04 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Description

The meteorological input standards table says preferred variables are bold, but currently displays literal <b>...</b> tags. escape = FALSE is nested inside the JavaScript DataTables options instead of being passed to R's DT::datatable().

Move that existing setting to the correct argument. This restores the intended emphasis for eight preferred variables; the 18 rows, seven columns, units, and source mappings are unchanged.

Related to the documentation improvement discussion: #3689

Validation

  • Rendered the original and corrected table chunks from the R Markdown source with R 4.4.3 in the existing PEcAn Docker environment.
  • Confirmed the original render contains escaped bold tags and the corrected widget contains bold markup for all eight preferred variables.
  • Compared both rendered widget payloads: all 18 rows, seven columns, units, source mappings, extensions, and table controls are preserved.
  • Browser check: the original table shows literal tags; corrected names have font weight 700. Searching for air_pressure returns the expected single row.
  • git diff --check passes.

Only the affected table section was rendered locally; the full book build and scientific workflow tests were not run. No permanent tests were added for this presentation-only correction.

Review Time Estimate

  • Immediately
  • Within one week
  • When possible

Types of changes

  • Bug fix (documentation rendering)
  • New feature
  • Breaking change

Checklist

  • I have read CONTRIBUTING.md.
  • I have updated the documentation.
  • I agree that PEcAn Project may distribute my contribution under the same license as the existing code and/or the BSD 3-clause license.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Comment thread CHANGELOG.md Outdated

### Fixed
- `PEcAn.uncertainty::read.ensemble.output()` uses `NA` for missing variables, so each member’s result uses only its own output (#4204).
- The meteorological input standards table now renders preferred variable names in bold instead of displaying HTML tags.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For this type of doc changes there is no need for CHANGELOG entry.

@pranshup04

Copy link
Copy Markdown
Contributor Author

Removed the changelog entry in 5daac58. The PR now changes only the documentation table.

Comment on lines +67 to +72
datatable(in_tab, escape = FALSE, extensions = c('FixedColumns',"Buttons"),
options = list(
dom = 'Bfrtip',
scrollX = TRUE,
fixedColumns = TRUE,
buttons = c('copy', 'csv', 'excel', 'pdf', 'print'),
escape = FALSE
buttons = c('copy', 'csv', 'excel', 'pdf', 'print')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
datatable(in_tab, escape = FALSE, extensions = c('FixedColumns',"Buttons"),
options = list(
dom = 'Bfrtip',
scrollX = TRUE,
fixedColumns = TRUE,
buttons = c('copy', 'csv', 'excel', 'pdf', 'print'),
escape = FALSE
buttons = c('copy', 'csv', 'excel', 'pdf', 'print')
datatable(in_tab,
escape = FALSE,
extensions = c("FixedColumns","Buttons"),
options = list(
dom = "Bfrtip",
scrollX = TRUE,
fixedColumns = TRUE,
buttons = c("copy", "csv", "excel", "pdf", "print")

@infotroph
infotroph self-requested a review December 2, 2026 06:06

@S1DDHEY S1DDHEY left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@infotroph

Copy link
Copy Markdown
Member

@pranshup04 looks like you've turned off "allow edits by maintainers", so you'll need to apply my suggested indenting fix before we can merge this.

@pranshup04

Copy link
Copy Markdown
Contributor Author

Applied the suggested formatting manually. Thanks for reviewing!

@infotroph
infotroph added this pull request to the merge queue Dec 4, 2026
Merged via the queue into PecanProject:develop with commit 390ea24 Dec 4, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants