This directory contains DITA source content and Oxygen WebHelp template for the Sonar Quiz System training materials.
dita/- DITA source files (topics, maps, images)Pages/- Quiz and analysis pagespage-index.dita- Main navigation index
template/- Oxygen WebHelp Responsive template customizationresources/- Static assets (JS, CSS, fonts, images)xslt/- XSL transforms for custom outputpage-templates/- HTML page structure templates
Before publishing DITA content with Oxygen XML WebHelp, ensure the Sonar Quiz System bundle is up to date:
# From project root
npm run build:ditaThis will:
- Build the TypeScript source (
tsc) - Bundle with Vite (IIFE format)
- Copy
dist/sonar-quiz.iife.jstodita/template/resources/
The bundle will then be included in the published WebHelp output.
When publishing with Oxygen, ensure these parameters are set in your transformation scenario:
instructor.password.hash- 12-character hash of instructor password- Default Value:
5e884898da28 - Description: Default hash for password "password" (change for production)
- Generate Custom Hash: Open
generate-password-hash.htmlin a browser, enter your password, copy the 12-char hash - How to set: In Oxygen transformation scenario → Parameters tab → Add parameter
- Purpose: XSL template injects this into a hidden span for instructor authentication
- Default Value:
webhelp.show.protection- Set toyesto show protection header (default: no)webhelp.protection.text- Classification banner text (e.g., "COMMERCIAL IN CONFIDENCE")webhelp.protection.background.color- CSS color for protection banner background
- Open transformation scenario (Configure Transformation Scenario)
- Click Parameters tab
- Click New to add
instructor.password.hash - Set Value to the SHA-256 hash above
- Apply and run transformation
See CLAUDE.md in project root for:
- Quiz table structure (
qd-quizclass) - Analysis table structure (
qd-analysisclass) - Home page badge markers (
quizPageBtnclass) - MCQ format (1-indexed
<ol>lists) - Numeric question format (tolerance values)