add swap for docs url; hook it