Skip to content

Fix FLoRA citation update to support repeated runs#688

Merged
LukasWallrich merged 2 commits intomasterfrom
fixflora
Mar 6, 2026
Merged

Fix FLoRA citation update to support repeated runs#688
LukasWallrich merged 2 commits intomasterfrom
fixflora

Conversation

@richarddushime
Copy link
Copy Markdown
Contributor

@richarddushime richarddushime commented Mar 6, 2026

Description

This PR fixes the FLoRA citation update script to allow repeated updates without losing the placeholder markers.

The previous implementation used a {{flora-ref}} placeholder that was replaced with the citation content.
After the first run, the placeholder was gone and subsequent runs could not update the citation.

Solution:

Use block markers (<!-- flora-citation-start --> and <!-- flora-citation-end -->) that persist across updates
Replace only the content between {{< alert note >}} {{< /alert >}} inside the block

Type of Change

  • Content/documentation update
  • Bug fix

Testing

Checklist

  • Self-reviewed my changes
  • Verified links and formatting are correct
  • No new warnings or errors

Notes

@richarddushime richarddushime requested a review from a team as a code owner March 6, 2026 14:17
LukasWallrich and others added 2 commits March 6, 2026 15:22
- Extend update_fred_citation.py to replace {{flora-ref}} placeholder in
  content/replication-hub/flora/_index.md with the HTML-formatted citation
- Add content/replication-hub/flora/_index.md (source file with placeholder)
- Update data-processing workflow to stage and commit the resolved _index.md
  to the build-resources branch alongside fred_citation.txt

The citation update already ran weekly on Sundays; the new _index.md replacement
runs on the same schedule with no additional triggers needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 6, 2026

📝 Spell Check Results

Found 8 potential spelling issue(s) in this PR:

📄 content/clusters/cluster7.md

Line Issue
130 Tham ==> Than
171 Tham ==> Than
201 Tham ==> Than

📄 content/educators-corner/004-Teaching-why-how-replication/index.md

Line Issue
94 pre-selected ==> preselected

📄 content/glossary/english/statistical_significance.md

Line Issue
5 pre-selected ==> preselected

📄 content/pedagogies/003-CREP/index.md

Line Issue
86 pre-selected ==> preselected
126 pre-selected ==> preselected
134 pre-selected ==> preselected

ℹ️ How to address these issues:

  1. Fix the typo: If it's a genuine typo, please correct it.
  2. Add to whitelist: If it's a valid word (e.g., a name, technical term), add it to .codespell-ignore.txt
  3. False positive: If this is a false positive, please report it in the PR comments.

🤖 This check was performed by codespell

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 6, 2026

👍 All image files/references (if any) are in webp format, in line with our policy.

@LukasWallrich
Copy link
Copy Markdown
Contributor

Staging Deployment Status

This PR has been successfully deployed to staging as part of an aggregated deployment.

Deployed at: 2026-03-06 14:29:05 UTC
Staging URL: https://staging.forrt.org

The staging site shows the combined state of all compatible open PRs.

@richarddushime
Copy link
Copy Markdown
Contributor Author

@LukasWallrich

Copy link
Copy Markdown
Contributor

@LukasWallrich LukasWallrich left a comment

Choose a reason for hiding this comment

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

Looks good - thanks for sorting it out so quickly!

@LukasWallrich LukasWallrich merged commit 5dc3261 into master Mar 6, 2026
5 checks passed
@LukasWallrich LukasWallrich deleted the fixflora branch March 6, 2026 14:53
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