Skip to content

docs: render preferred meteorology variables in bold - #4277

Open
pranshup04 wants to merge 1 commit into
PecanProject:developfrom
pranshup04:docs-preferred-meteorology-variables
Open

pranshup04 wants to merge 1 commit into
PecanProject:developfrom
pranshup04:docs-preferred-meteorology-variables

Conversation

@pranshup04

Copy link
Copy Markdown

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. Includes an Unreleased changelog entry.

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 and CHANGELOG.md.
  • 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

### 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.

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.

2 participants