Fix: Adjust how the <labels> element from organizations was being detected. The initial impl was improperly reporting that an org that didn't include the labels element was using custom labels.
Fix: Ensure that purpose types align with Torus purpose types for page_link instances, if not, set it to none.
Enhancement: Add a utility script to allow validation of all pages. Usage npm run validate <the directory to torus schemas>. This will validate all pages found in JSON files within the ./out directory.
Enhancement: Adds support for the <extra><anchor/><pronunciation/><translation/></extra> variant of the <extra> tag that is used by modern language courses to show a popup with an optional audio clip that auto-plays.
This PR includes two fixes and two enhancements:
<labels>
element from organizations was being detected. The initial impl was improperly reporting that an org that didn't include the labels element was using custom labels.page_link
instances, if not, set it tonone
.npm run validate <the directory to torus schemas>
. This will validate all pages found in JSON files within the./out
directory.<extra><anchor/><pronunciation/><translation/></extra>
variant of the<extra>
tag that is used by modern language courses to show a popup with an optional audio clip that auto-plays.