VermontDepartmentOfHealth / covid-bot

A knowledge base & automated chatbot from the Vermont Department of Health with info for the COVID-19 response
https://vermontdepartmentofhealth.github.io/covid-bot/
MIT License
3 stars 2 forks source link

show revision history in FAQ #18

Closed KyleMit closed 4 years ago

KyleMit commented 4 years ago

be able to compare deltas and show insert / delete text from previous day or over time

We can use some semantic demarcating edits tags:

A couple potential vehicles:

  1. Build daily site output with the date timestamped and keep built version. Possibly add revision controls. This allows for exploring previous days, but no succinct diff.
  2. During update data - move existing data to faqs-prev.json and new data to faqs-cur.json. Then when building site, grab both data sets (IDs must match) and build updated markdown with diffs
KyleMit commented 4 years ago

Asked about diff library that can markup the delta between two strings to look for prior art.

Instead, looking to publish diffing as md-diff

Would like to validate edge cases via a js test framework, but don't have any defacto framework to leverage. Possible frameworks include: mocha, jest, jasmine, or karma