Merge pull request #285 from reuters-graphics/mf-docs-fixes

Docs fixes
This commit is contained in:
MinamiFunakoshiTR 2025-04-22 15:17:54 -05:00 committed by GitHub
commit 04754fcd8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 23 additions and 21 deletions

View file

@ -40,18 +40,14 @@ With the graphics kit, you'll likely get your text value from an ArchieML doc.
```yaml
# Archie ML doc
[timeline]
type: timeline
# Optional
class: timeline
id: timeline-1
symbolColour: var(--theme-colour-brand-rules, grey)
dateColour: var(--theme-colour-accent, red)
[.dates]
# date object with events
date: May 18
[.events]
title: Mariupol defenders surrender to Russia but their fate is uncertain
context: More than 250 Ukrainian fighters surrendered to Russian forces at the Azovstal steelworks in Mariupol after weeks of desperate resistance, bringing an end to the most devastating siege of Russia's war in Ukraine and allowing President Vladimir Putin to claim a rare victory in his faltering campaign.
titleLink: https://www.reuters.com/world/europe/ukrainian-troops-evacuate-mariupol-ceding-control-russia-2022-05-17/
# More events...
[]
date: May 10
[.events]
title: U.S. House passes $40 bln bill to bolster Ukraine against Russian invasion
@ -72,7 +68,13 @@ titleLink: https://www.reuters.com/world/us-house-vote-40-billion-ukraine-aid-pa
import content from '$locales/en/content.json';
</script>
<EndNotes SimpleTimeline={content.timeline} />
<SimpleTimeline
dates={block.dates}
class={block.class}
symbolColour={block.symbolColour}
id={block.id}
dateColour={block.dateColour}
/>
```
<Canvas of={SimpleTimelineStories.Demo} />

View file

@ -58,8 +58,8 @@ updated:
sectionUrl={content.sectionUrl}
hed={content.hed}
authors={content.authors.split(',')}
publishTime={content.published}
updateTime={content.updated}
publishTime={content.publishTime}
updateTime={content.updatTime}
/>
```