Added theme registry alter and preprocess function for proper book navigation links (eg skip over invalid relatives in the flat menu).