rookiehpc.github.io
rookiehpc.github.io copied to clipboard
Navigation path incorrect for exercises.
When accessing an exercise, such as the MPI hello world, the navigation path shows ... > Exercises > undefined.
The reason is the rk.js script loads the property RK.NamePN, which, for exercises, does not exist as they have a RK.TitlePN property instead.
A solution would be to either:
- Try
RK.NamePNand revert toRK.TitlePNif it failed. - Change the exercise JSON record structure to use a
RK.NamePNproperty instead ofRK.TitlePNone.
In addition, this check could be added to the rk.js script to prevent similar mistakes in future.