move logic for site docs and news to site model