!doc: Restructure document pages

Restructuring round 1
it is in scala